Kapil Bhalla rearranged electrons thusly:

> On Wed, Oct 04, 2000 at 04:12:41PM +0500, you wrote:

> >  iss there any way i can configure two ip addresses for the same 
> > interface card , say eth0?

> You can use ip-aliasing. 
> # ifconfig eth0:0 other_ip
 
 Better:

 # cp /etc/sysconfig/network-scripts/ifcfg-eth0 ifcfg-eth0:1

 Edit the file :

DEVICE="eth0"   <= change to eth0:0
BOOTPROTO="none"
IPADDR="192.168.1.34"  <= different ip address
NETMASK="255.255.255.0" <= different netmask

you can remove the rest of these - as they are assumed by default - or just
leave them there.

ONBOOT="yes"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"

8< list

Then bring up this interface with /sbin/ifup eth0:1

Put this in rc.local or somewhere so that it is taken in at startup.

        -suresh

----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to