[Gllug] adding multiple IP's to one interface?

Steve Nicholson steve.nicholson at yoursolutions.com
Thu Nov 15 15:20:25 UTC 2001


> I do it by adding an ifup entry to the iface line for eth0:
>
> 	ifup /usr/local/sbin/eth0up
>
> and put the ip line from my previous message (and any other associated
> tasks) in the eth0up script.

Done a bit of searching round and looks like the way below is how it is
done on Debian in
/etc/network/interfaces

iface eth0 inet static
    address x.x.x.x
    network x.x.x.x
    netmask x.x.x.x
    broadcast x.x.x.x
    gateway x.x.x.x

iface eth0:0 inet static
    address x.x.x.x
    network x.x.x.x
    netmask x.x.x.x
    broadcast x.x.x.x
    gateway x.x.x.x

this file is read by ifup/ifdown which are called in the init.d scripts
at start up.

thanks for all the pointers.

Steve.


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list