Johann Spies <jsp...@sun.ac.za> writes:

>Apparently '/etc/init.d/networking restart' is depricated.  It is not
>doing the job any more on squeeze. 

>'/etc/init.d/ifplugd restart' ignores virtual interfaces defined in
>/etc/network/interfaces.

>So how do I get my virtual interfaces active after a reboot or restart of the
>network without having to do 'ifup eth0:0' by hand?

One way is to stop using the long-deprecated interface aliases and
instead add secondary addresses to the single interface:

iface eth0 inet dhcp
        up   ip addr add W.X.Y.Z/N dev $IFACE
        down ip addr del W.X.Y.Z/N dev $IFACE

That way, you can let ifplugd start eth0, and the above commands will
add/remove the additional IP address you had set up on eth0:0

The ip(8) command is in the iproute package.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/573e.4c33c014.de...@getafix.xdna.net

Reply via email to