ifconfig won't allow me to change ether address and inet address in the same command

Maciej Suszko maciej at suszko.eu
Wed Oct 22 04:54:46 UTC 2008


"Eduardo Meyer" <dudu.meyer at gmail.com> wrote:
> Hello :)
> 
> Please, follow:
> 
> # ifconfig rl0 ether 00:02:4f:0a:ce:f3 inet 192.168.2.12 netmask
> 255.255.255.0 ifconfig: can't set link-level netmask or broadcast
> 
> # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0 ether
> 00:02:4f:0a:ce:f3 ifconfig: ether: bad value
> 
> # ifconfig rl0 inet 192.168.2.12 netmask 255.255.255.0
> # ifconfig rl0 ether 00:02:4f:0a:ce:f3
> 
> I ask you some help, how can I accomplish both tasks with rc_ng?
> In /etc/rc.conf
> 
> ifconfig_rl0="inet 192.168.2.12 netmask 255.255.255.0 ether
> 00:02:4f:0a:ce:f3"
> 
> Won't allow me to do what I want. Any suggestions? I would like like
> to edit /etc/rc.local and any other kind of "workaround". Can rc.conf
> issue ifconfig twice for the same nic?
> 
> Or can ifconfig accomplish this task by someway else other than
> issuing the command twice?

Use ifconfig_rl0_alias0 for second task.
-- 
regards, Maciej Suszko.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20081022/fe014c7d/signature-0001.pgp


More information about the freebsd-net mailing list