k_krish_rao |
10-22-2009 01:13 AM |
no error when assigning same virtual ip to two linux hosts
I have two linux Virtual machines. both have Red Hat Enterprise Linux Server release 5.2 installed on them
ifconfig on the first returns
Code:
[root@rh52-2 ~]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:148753 errors:0 dropped:0 overruns:0 frame:0
TX packets:148753 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9905997 (9.4 MiB) TX bytes:9905997 (9.4 MiB)
seth0 Link encap:Ethernet HWaddr 00:15:5D:98:49:03
inet addr:10.201.10.2 Bcast:10.201.255.255 Mask:255.255.0.0
inet6 addr: fe80::215:5dff:fe98:4903/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:245117 errors:0 dropped:0 overruns:0 frame:0
TX packets:299748 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:87997372 (83.9 MiB) TX bytes:51719749 (49.3 MiB)
ifconfig on the second returns
Code:
[root@rh52-3 ~]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:148275 errors:0 dropped:0 overruns:0 frame:0
TX packets:148275 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9875130 (9.4 MiB) TX bytes:9875130 (9.4 MiB)
seth0 Link encap:Ethernet HWaddr 00:15:5D:98:49:07
inet addr:10.201.10.3 Bcast:10.201.255.255 Mask:255.255.0.0
inet6 addr: fe80::215:5dff:fe98:4907/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:244497 errors:0 dropped:0 overruns:0 frame:0
TX packets:298271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:87106412 (83.0 MiB) TX bytes:51425677 (49.0 MiB)
I assign a virtual ip to the first
ifconfig seth0:1 10.201.10.10 netmask 255.255.0.0 up
I'am able to ping using 10.201.10.10
Now i try to assign the same virtual ip to the second linux vm
ifconfig seth0:1 10.201.10.10 netmask 255.255.0.0 up
It does not give me any errors. I was expecting an error
some thing like
Error, some other host already uses address 10.201.10.10.
|