Wednesday, June 30, 2010

multihomed host e.g muliple ips on same NIC

1-under
/etc/hosts

enter an entry as follows
192.168.10.10 myhost

2-under
/etc/netmasks

add an entry as follows
192.168.10.0 255.255.255.0

3-create a file point to your NIC for example
#touch /etc/hostname.e1000g0:1

add hostname for example
myhost

4-type the following command
#ifconfig e1000g0:1 plumb


5- assign ips
#ifconfig e1000g0:1 192.168.10.10 netmask 255.255.255.0 up

No comments:

Post a Comment