How to mark an interace as 'down' at boot time?
m.seaman at infracaninophile.co.uk
Sun Mar 28 10:33:30 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
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:
> 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:
but that will probably still leave the i/f up if a cable is attached.
In this case, you could try using both of:
(rc.conf syntax for IPv6 is different in CURRENT, but I assume you're
not using that.)
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
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/
-----END PGP SIGNATURE-----
More information about the freebsd-questions