use devstack vm can not get fixed ip
OS: ubuntu(x86_64) 12.04
in vm:
ifconfig eth0 192.168.2.3 netmask 255.255.255.0 up
route add default gw 192.168.2.2
then:
ping 192.168.2.2
but:
no reply
why?
rick@/opt/vdisk$ ovs-vsctl show
7e359060-
Bridge br-ex
Port "qg-c69aa6e2-3d"
Port br-ex
Bridge br-int
Port "qvo756286e1-d2"
tag: 1
Port "qr-a629fd5f-d7"
tag: 1
Port br-int
Port "tapf2e57c04-62"
tag: 1
ovs_version: "1.4.0+build0"
rick@/opt/vdisk$ ip l
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,
link/ether 00:24:e8:83:56:7c brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,
link/ether c4:17:fe:c3:c5:35 brd ff:ff:ff:ff:ff:ff
5: br-ex: <BROADCAST,
link/ether 6e:b0:99:0b:1a:4d brd ff:ff:ff:ff:ff:ff
9: virbr0: <NO-CARRIER,
link/ether fe:2d:cc:55:60:3f brd ff:ff:ff:ff:ff:ff
16: br-int: <BROADCAST,
link/ether e6:41:49:84:0f:44 brd ff:ff:ff:ff:ff:ff
25: qbr756286e1-d2: <BROADCAST,
link/ether b6:89:70:da:f4:7a brd ff:ff:ff:ff:ff:ff
26: qvo756286e1-d2: <BROADCAST,
link/ether fe:0d:f0:fb:24:3f brd ff:ff:ff:ff:ff:ff
27: qvb756286e1-d2: <BROADCAST,
link/ether b6:89:70:da:f4:7a brd ff:ff:ff:ff:ff:ff
28: vnet0: <BROADCAST,
link/ether fe:16:3e:44:cc:ca brd ff:ff:ff:ff:ff:ff
rick@/opt/vdisk$ brctl show
bridge name bridge id STP enabled interfaces
br-ex 0000.6eb0990b1a4d no qg-c69aa6e2-3d
br-int 0000.e64149840f44 no qr-a629fd5f-d7
qbr756286e1-d2 8000.b68970daf47a no qvb756286e1-d2
vnet0
virbr0 8000.000000000000 yes
rick@/opt/vdisk$ ip netns
qrouter-
qdhcp-8393d883-
rick@/opt/vdisk$ ip netns exec qdhcp-8393d883-
18: tapf2e57c04-62: <BROADCAST,
link/ether fe:16:3e:c6:4f:14 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.2/24 brd 192.168.2.255 scope global tapf2e57c04-62
inet6 fe80::fc16:
valid_lft forever preferred_lft forever
19: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
rick@/opt/vdisk$ ip netns exec qrouter-
20: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
29: qr-a629fd5f-d7: <BROADCAST,
link/ether fe:16:3e:12:4d:f9 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 brd 192.168.2.255 scope global qr-a629fd5f-d7
inet6 fe80::fc16:
valid_lft forever preferred_lft forever
30: qg-c69aa6e2-3d: <BROADCAST,
link/ether fe:16:3e:23:88:6e brd ff:ff:ff:ff:ff:ff
inet 172.24.254.2/24 brd 172.24.254.255 scope global qg-c69aa6e2-3d
inet6 fe80::fc16:
valid_lft forever preferred_lft forever
rick@/opt/vdisk$ sudo tcpdump -i qvb756286e1-d2 -n
tcpdump: WARNING: qvb756286e1-d2: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on qvb756286e1-d2, link-type EN10MB (Ethernet), capture size 65535 bytes
14:44:45.877851 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:44:45.878252 ARP, Reply 192.168.2.2 is-at fe:16:3e:c6:4f:14, length 28
14:44:46.877159 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:44:46.877220 ARP, Reply 192.168.2.2 is-at fe:16:3e:c6:4f:14, length 28
14:44:47.877855 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:44:47.877919 ARP, Reply 192.168.2.2 is-at fe:16:3e:c6:4f:14, length 28
^C
rick@/opt/vdisk$ sudo tcpdump -i vnet0 -n
tcpdump: WARNING: vnet0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vnet0, link-type EN10MB (Ethernet), capture size 65535 bytes
14:46:20.312699 IP 0.0.0.0 > 224.0.0.1: igmp query v2
14:46:20.312723 IP6 fe80::2039:
14:46:20.993181 IP6 :: > ff02::1:ff44:ccca: HBH ICMP6, multicast listener reportmax resp delay: 0 addr: ff02::1:ff44:ccca, length 24
14:46:21.316698 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:46:21.316730 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:46:22.313076 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:46:22.313107 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:46:23.313042 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
14:46:23.313072 ARP, Request who-has 192.168.2.2 tell 192.168.2.3, length 28
^C
=======
rick@/opt/vdisk$ cat /etc/quantum/
[DEFAULT]
rabbit_password = 123456
rabbit_host = localhost
auth_strategy = keystone
verbose = True
debug = True
bind_host = 0.0.0.0
bind_port = 9696
core_plugin = quantum.
api_paste_config = api-paste.ini
base_mac = fe:16:3e:00:00:00
control_exchange = quantum
notification_driver = quantum.
list_notifier_
[QUOTAS]
rick@/opt/vdisk$ cat /etc/quantum/
[DEFAULT]
external_
use_namespaces = True
metadata_ip =
debug = True
verbose = True
interface_driver = quantum.
auth_url = http://
auth_region = RegionOne
admin_tenant_name = service
admin_user = quantum
admin_password = 999888777666
root_helper = sudo
rick@/opt/vdisk$ cat /etc/quantum/
[DEFAULT]
admin_password = 999888777666
admin_user = quantum
admin_tenant_name = service
auth_url = http://
use_namespaces = True
debug = True
verbose = True
state_path = /opt/stack/data
interface_driver = quantum.
dhcp_driver = quantum.
root_helper = sudo
rick@/opt/vdisk$ cat /etc/quantum/
[DATABASE]
sql_connection = mysql:/
reconnect_interval = 2
[OVS]
[AGENT]
polling_interval = 2
root_helper = sudo
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- neutron Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Chongyang Wang
- Solved:
- Last query:
- Last reply: