What command to use inside /etc/network/interfaces to take an interface down

Thomas Hood jdthood at yahoo.co.uk
Wed Jul 13 08:57:06 UTC 2005


On Tue, 12 Jul 2005 21:41:05 +0100, Jaime wrote:
> I'd like to use a command inside my /etc/network/interfaces to
> automatically take down the eth0 interface before I "ifup" another
> interface called rausb0. I realize the place to put it is inside the
> "iface rausb0" stanza, and it should listed after the "pre-up" command
> option.


You can't run ifup or ifdown via command-option lines in
/etc/network/interfaces.  Trying to do so will result in lockup.

Simply write a script that does ifdown and then ifup.

-- 
Thomas Hood





More information about the ubuntu-users mailing list