[Gllug] adding multiple IP's to one interface?
Tom Gilbert
tom at linuxbrit.co.uk
Fri Nov 16 00:14:48 UTC 2001
* Steve Nicholson (steve.nicholson at yoursolutions.com) wrote:
> > 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.
Yep, but be aware that the device:number semantics are now depracated,
and that using the iproute2 toolset is the way to go from now on, see
Bruce's reply.
Tom.
--
.^. .-------------------------------------------------------.
/V\ | Tom Gilbert, London, England | http://linuxbrit.co.uk |
/( )\ | Open Source/UNIX consultant | tom at linuxbrit.co.uk |
^^-^^ `-------------------------------------------------------'
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list