Hi there,
We have been trying to do IP aliasing on one of the machines. I went thro'
the mini-HOWTO/IP-alaiasing document and found these commands. Here
163.122.6.186 is the primary address (that our machine is already having)
and 163.122.6.253 is the one that I want to add to the machine.
The set of commands I follow are:-

/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth0 163.122.6.186
/sbin/ifconfig eth0:0 163.122.6.253

/sbin/route add -net 127.0.0.0
/sbin/route add -net 163.122.6.186 dev eth0
/sbin/route add -host 163.122.6.186 dev eth0
/sbin/route add -host 163.122.6.253 dev eth0:0
/sbin/route add default gw 163.122.6.200

at the execution of 
/sbin/route add -net 127.0.0.0
/sbin/route add -net 163.122.6.186 dev eth0
an error occurs
SIOCADDRT: Invalid argument
SIOCADDRT: Invalid argument

The output of ifconfig -a after that is :-

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:0.0.0.0  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:1855 dropped:29 overruns:0 carrier:0 coll:0

eth0      Link encap:Ethernet  HWaddr 00:80:48:85:1E:47  
          inet addr:163.122.6.186  Bcast:163.122.6.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:188599 errors:0 dropped:0 overruns:0 frame:0
          TX packets:184041 errors:427723 dropped:5805 overruns:0 carrier:0 coll:0
          Interrupt:10 Base address:0x300 

eth0:0    Link encap:Ethernet  HWaddr 00:80:48:85:1E:47  
          inet addr:163.122.6.253  Bcast:163.122.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0
          Interrupt:10 Base address:0x300 

The problem is like this:-
No machine is able to identify the machinine afterwards. So we have to
reboot the machine for the machine to get to its original IP address
163.122.6.186. Can you please suggest a better method of doing the IP
aliasing? Also please tell me if I can reset the error without rebooting.
Thanks in Advance,
Bye,
Vinay
PS:-can you please cc the reply to me

Reply via email to