How to mark an interace as 'down' at boot time?
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sun Mar 28 10:33:30 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 28/03/2010 09:51:50, Modulok wrote:
> Trivial question,
>
> Is there an rc.conf way to mark a network interface as being 'down' at
> boot time? I could do it with a cron job, or a kernel rebuild, but I
> thought there'd be some nifty rc.conf syntax. I tried this:
>
> ifconfig_bge0="down"
>
> The interface is marked as down in the dmesg output, but it's still up
> when the boot cycle completes.
Hmmm... normally, you'ld just leave any extra NICs unconfigured. Not
plugging a cable in generally makes the OS believe the NIC is down.
You can tell the OS the i/f shouldn't be configured by:
ifconfig_bge0="NOAUTO"
but that will probably still leave the i/f up if a cable is attached.
In this case, you could try using both of:
ifconfig_bge0="down"
ipv6_ifconfig_bge0="ifdisabled down"
(rc.conf syntax for IPv6 is different in CURRENT, but I assume you're
not using that.)
Cheers,
Matthew
- --
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuvMHUACgkQ8Mjk52CukIy8VQCfc3SscGvP7qiQX7bfcyzK2vGg
/bAAni5N/FRil82YtLcLPcf6CDuXcqiz
=vLKH
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list