Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2007 20:17:22 +0300
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: ifconfig seems to not accept inet and ether parameters on one line
Message-ID:  <f2i2n3$mbd$1@sea.gmane.org>
In-Reply-To: <1a5ccc3f5f40e0ec06a599a6aad2675e@uni-svishtov.bg>
References:  <1a5ccc3f5f40e0ec06a599a6aad2675e@uni-svishtov.bg>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Angelin Lalev wrote:
> Hi everyone, 
> 
> I'm running FreeBSD 6.2. and I'm trying in short to change the MAC address of my network interface at boot.
> So I wrote something like this in my rc.conf file:
> 
> ifconfig_xl0="inet 192.168.1.1 netmask 255.255.255.0 ether 00:00:11:11:22:22"
> 
> at next boot the interface was not configured at all, so I tried it manually: 
> 
> ifconfig xl0 inet 192.168.1.1 netmask 255.255.255.0 ether 00:00:11:11:22:22

'ether' is rather another address family for ifconfig. Try:

ifconfig_xl0="inet 192.168.1.1 netmask 0xffffff00"
ifconfig_xl0_alias0="ether 00:00:11:11:22:22"

-- 
Sphinx of black quartz judge my vow!




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?f2i2n3$mbd$1>