start_if.<interface> comments
Jordi Espasa Clofent
jespasac at minibofh.org
Tue Dec 9 09:58:57 PST 2008
Hi all,
I'm testing the use of /etc/start_if.<interface> instead the classical
'ifconfig....' in /etc/rc.conf. All seems work fine, but if I comment a
line in /etc/start_if.<interface>, any interface is loaded by the system!
If I use
$ cat /etc/start_if.nfe0
/sbin/ifconfig $1 inet <public_ip> netmask 255.255.254.0
/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff
/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff
all works fine. But if I use
$ cat /etc/start_if.nfe0
/sbin/ifconfig $1 inet <public_ip> netmask 255.255.254.0
#/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff
/sbin/ifconfig $1 alias <public_ip> netmask 0xffffffff
any nfe0 associated interface is loaded!
I don't understand this issue, because according to rc.conf:
"If the /etc/start_if.<interface> file is present, it is read and
executed by the sh(1) interpreter before configuring the interface as
specified in the ifconfig_<interface> and ifconfig_<interface>_alias<n>
variables."
and all of us know that sh(1) symbol of comment is always '#'
¿Is it normal or is it a bug?
--
Thanks,
Jordi Espasa Clofent
More information about the freebsd-net
mailing list