[Openstack] The same IP configured on different compute nodes
董建华
dongjh at nci.com.cn
Fri Oct 25 05:33:19 UTC 2013
Hi,
i have one controller and two compute nodes, running nova-network, i have created the following vmnet.
# nova network-create vmnet --fixed-range-v4=192.168.11.0/24 --bridge-interface=br100 --multi-host=T --
gateway=192.168.11.253 --dns1=192.168.11.36 --dns2=192.168.11.24
when i start the Cirros instances, the vmnet gateway IP address 192.168.11.253 will be configured on the bridge br100 on each compute node, however the VM's can comunicate with the external network. Will this be a problem?
root at compute1:~# ifconfig br100
br100 Link encap:Ethernet HWaddr b8:ca:3a:ec:66:8c
inet addr:192.168.11.253 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::baca:3aff:feec:668c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9043 errors:0 dropped:0 overruns:0 frame:0
TX packets:20972 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:903366 (903.3 KB) TX bytes:2504357 (2.5 MB)
root at compute1:~# 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 scope host lo
inet 169.254.169.254/32 scope link lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br100 state UP qlen 1000
link/ether b8:ca:3a:ec:66:8c brd ff:ff:ff:ff:ff:ff
inet6 fe80::baca:3aff:feec:668c/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether b8:ca:3a:ec:66:8e brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether b8:ca:3a:ec:66:90 brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether b8:ca:3a:ec:66:92 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:0a:f7:24:1e:40 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.182/24 brd 10.10.10.255 scope global eth4
inet6 fe80::20a:f7ff:fe24:1e40/64 scope link
valid_lft forever preferred_lft forever
7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:0a:f7:24:1e:42 brd ff:ff:ff:ff:ff:ff
8: br100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether b8:ca:3a:ec:66:8c brd ff:ff:ff:ff:ff:ff
inet 192.168.11.253/24 brd 192.168.11.255 scope global br100
inet 192.168.11.182/24 brd 192.168.11.255 scope global secondary br100
inet6 fe80::baca:3aff:feec:668c/64 scope link
valid_lft forever preferred_lft forever
10: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether d6:bd:23:e0:86:1f brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
11: vlan100 at br100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br100 state UP
link/ether fa:16:3e:94:98:cc brd ff:ff:ff:ff:ff:ff
inet6 fe80::f816:3eff:fe94:98cc/64 scope link
valid_lft forever preferred_lft forever
14: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br100 state UNKNOWN qlen 500
link/ether fe:16:3e:e9:73:2b brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fee9:732b/64 scope link
valid_lft forever preferred_lft forever
15: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br100 state UNKNOWN qlen 500
link/ether fe:16:3e:79:63:1a brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe79:631a/64 scope link
valid_lft forever preferred_lft forever
root at compute2:~# ifconfig br100
br100 Link encap:Ethernet HWaddr b8:ca:3a:ec:7b:3a
inet addr:192.168.11.253 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::baca:3aff:feec:7b3a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10420 errors:0 dropped:0 overruns:0 frame:0
TX packets:21246 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:997249 (997.2 KB) TX bytes:2545513 (2.5 MB)
root at compute2:~# 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 scope host lo
inet 169.254.169.254/32 scope link lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br100 state UP qlen 1000
link/ether b8:ca:3a:ec:7b:3a brd ff:ff:ff:ff:ff:ff
inet6 fe80::baca:3aff:feec:7b3a/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether b8:ca:3a:ec:7b:3c brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether b8:ca:3a:ec:7b:3e brd ff:ff:ff:ff:ff:ff
5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether b8:ca:3a:ec:7b:40 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
link/ether 00:0a:f7:24:25:a0 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.183/24 brd 10.10.10.255 scope global eth4
inet6 fe80::20a:f7ff:fe24:25a0/64 scope link
valid_lft forever preferred_lft forever
7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:0a:f7:24:25:a2 brd ff:ff:ff:ff:ff:ff
8: br100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether b8:ca:3a:ec:7b:3a brd ff:ff:ff:ff:ff:ff
inet 192.168.11.253/24 brd 192.168.11.255 scope global br100
inet 192.168.11.183/24 brd 192.168.11.255 scope global secondary br100
inet6 fe80::baca:3aff:feec:7b3a/64 scope link
valid_lft forever preferred_lft forever
10: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 22:8b:bd:c8:52:90 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
11: vlan100 at br100: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br100 state UP
link/ether fa:16:3e:6c:5b:1f brd ff:ff:ff:ff:ff:ff
inet6 fe80::f816:3eff:fe6c:5b1f/64 scope link
valid_lft forever preferred_lft forever
13: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br100 state UNKNOWN qlen 500
link/ether fe:16:3e:10:c8:29 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe10:c829/64 scope link
valid_lft forever preferred_lft forever
14: vnet1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br100 state UNKNOWN qlen 500
link/ether fe:16:3e:7d:78:56 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe7d:7856/64 scope link
valid_lft forever preferred_lft forever
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131025/ffd0a2a6/attachment.html>
More information about the Openstack
mailing list