Revision history [back]

click to hide/show revision 1
initial version

To:Bernd Bausch: First,thnks for your help.

There isn't any flaotingIP.

1)I have two instances: vm-1 192.168.10.10 192.168.10.2 vm-2 192.168.10.11 The ip 192.168.10.10 is attached by nova interface-attach command. 2)On vm-1: host-192-168-10-2:~ # ip addr 1: lo: <loopback,up,lower_up> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:5d:f1:7d brd ff:ff:ff:ff:ff:ff inet 192.168.10.2/24 brd 192.168.10.255 scope global eth0 inet6 fe80::f816:3eff:fe5d:f17d/64 scope link valid_lft forever preferred_lft forever 3: eth1: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:5d:f1:80 brd ff:ff:ff:ff:ff:ff inet 192.168.10.10/24 brd 192.168.10.255 scope global eth1 inet6 fe80::f816:3eff:fe5d:f180/64 scope link valid_lft forever preferred_lft forever Here you can see there are two interfaces and each interface only has one IP.

3)Through eth1,it can ping 192.168.10.10: host-192-168-10-2:~ # ping -I eth1 192.168.10.11 PING 192.168.10.11 (192.168.10.11) from 192.168.10.10 eth1: 56(84) bytes of data. 64 bytes from 192.168.10.11: icmp_seq=1 ttl=64 time=2.71 ms 64 bytes from 192.168.10.11: icmp_seq=2 ttl=64 time=0.737 ms

4)But on vm-2 which has the ip 192.168.10.11: host-192-168-10-11:~ # arp Address HWtype HWaddress Flags Mask Iface host-192-168-10-2.opens ether fa:16:3e:5d:f1:7d C eth0 host-192-168-10-10.open ether fa:16:3e:5d:f1:7d C eth0

Here you can see the two interface and MAC are same.

click to hide/show revision 2
No.2 Revision

To:Bernd Bausch: First,thnks for your help.

There isn't any flaotingIP.

1)I have two instances:
    vm-1    192.168.10.10    192.168.10.2
     vm-2 192.168.10.11
The ip 192.168.10.10 is attached by nova interface-attach command.
 2)On vm-1:
host-192-168-10-2:~ # ip addr
1: lo: <loopback,up,lower_up> <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
    inet 127.0.0.2/8 brd 127.255.255.255 scope host secondary lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:5d:f1:7d brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.2/24 brd 192.168.10.255 scope global eth0
    inet6 fe80::f816:3eff:fe5d:f17d/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <broadcast,multicast,up,lower_up> <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether fa:16:3e:5d:f1:80 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.10/24 brd 192.168.10.255 scope global eth1
    inet6 fe80::f816:3eff:fe5d:f180/64 scope link 
       valid_lft forever preferred_lft forever
Here you can see there are two interfaces and each interface only has one IP.

IP. 3)Through eth1,it can ping 192.168.10.10: host-192-168-10-2:~ # ping -I eth1 192.168.10.11 PING 192.168.10.11 (192.168.10.11) from 192.168.10.10 eth1: 56(84) bytes of data. 64 bytes from 192.168.10.11: icmp_seq=1 ttl=64 time=2.71 ms 64 bytes from 192.168.10.11: icmp_seq=2 ttl=64 time=0.737 ms

ms 4)But on vm-2 which has the ip 192.168.10.11: host-192-168-10-11:~ # arp Address HWtype HWaddress Flags Mask Iface host-192-168-10-2.opens ether fa:16:3e:5d:f1:7d C eth0 host-192-168-10-10.open ether fa:16:3e:5d:f1:7d C eth0

eth0 Here you can see the two interface and MAC are same.

same.