ifconfig won't allow me to change ether address and inet
address in the same command
Christopher Cowart
ccowart at rescomp.berkeley.edu
Tue Oct 21 20:59:13 UTC 2008
Eduardo Meyer wrote:
> # 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
Somebody might have a hint for a single ifconfig command, but you can
also create the file /etc/start_if.rl0 with any additional commands to
be run by rc. This will get sourced automatically by rc _before_ the
value of ifconfig_rl0 in /etc/rc.conf.
For example, in /etc/rc.conf, leave
| ifconfig_rl0="inet 192.168.2.12 netmask 255.255.255.0"
And in /etc/start_if.rl0, add:
| ifconfig rl0 ether 00:02:4f:0a:ce:f3
--
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20081021/136f6c9c/attachment.pgp
More information about the freebsd-net
mailing list