[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Multiple IPs on one NIC



On Thu, Jul 24, 2003 at 07:05:52PM -0600, Francisco Castellon wrote:
> auto eth0
> iface eth0 inet static
> 	address 192.168.1.8
> 	netmask 255.255.255.0
> 	network 192.168.1.0
> 	broadcast 192.168.1.255
> 	gateway 192.168.1.1
> 
> auto eth0:0
> iface eth0:0 inet static
> 	address 192.168.1.15
> 	netmask 255.255.255.0
> 	network 192.168.1.0
> 	broadcast 192.168.1.255
> 	gateway 192.168.1.1
> 
> Would this work? In order for me to use the 192.168.1.8 and 192.168.1.15
> IPs for the one network card?

You don't need the eth0:0 gateway item, as that route has already been
added to the system from the first interface.

Just use ifup eth0:0 and you will be all set!

-- 
:wq!

  Matthew Daubenspeck
  http://www.oddprocess.org

Attachment: pgpoCMmo3JwlX.pgp
Description: PGP signature


Reply to: