Ask Your Question
0

use devstack vm can not get fixed ip

asked 2012-09-19 07:08:09 -0600

ricky99-wang gravatar image

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-4b48-4d6a-8a08-aed87f20922c Bridge br-ex Port "qg-c69aa6e2-3d" Interface "qg-c69aa6e2-3d" type: internal Port br-ex Interface br-ex type: internal Bridge br-int Port "qvo756286e1-d2" tag: 1 Interface "qvo756286e1-d2" Port "qr-a629fd5f-d7" tag: 1 Interface "qr-a629fd5f-d7" type: internal Port br-int Interface br-int type: internal Port "tapf2e57c04-62" tag: 1 Interface "tapf2e57c04-62" type: internal ovs_version: "1.4.0+build0"

rick@/opt/vdisk$ ip l 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 2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc mq state UP qlen 1000 link/ether 00:24:e8:83:56:7c brd ff:ff:ff:ff:ff:ff 3: eth1: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether c4:17:fe:c3:c5:35 brd ff:ff:ff:ff:ff:ff 5: br-ex: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN link/ether 6e:b0:99:0b:1a:4d brd ff:ff:ff:ff:ff:ff 9: virbr0: <no-carrier,broadcast,multicast,up> mtu 1500 qdisc noqueue state DOWN link/ether fe:2d:cc:55:60:3f brd ff:ff:ff:ff:ff:ff 16: br-int: <broadcast,multicast> mtu 1500 qdisc noop state DOWN link/ether e6:41:49:84:0f:44 brd ff:ff:ff:ff:ff:ff 25: qbr756286e1-d2: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UP link/ether b6:89:70:da:f4:7a brd ff:ff:ff:ff:ff:ff 26: qvo756286e1-d2: <broadcast,multicast,promisc,up,lower_up> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fe:0d:f0:fb:24:3f brd ff:ff:ff:ff:ff:ff 27: qvb756286e1-d2: <broadcast,multicast,promisc,up,lower_up> mtu 1500 qdisc pfifo_fast master qbr756286e1-d2 state UP qlen 1000 link/ether b6:89:70:da:f4:7a brd ff:ff:ff:ff:ff:ff 28: vnet0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast master qbr756286e1-d2 state UNKNOWN qlen 500 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 qvo756286e1-d2 tapf2e57c04-62 qbr756286e1-d2 8000.b68970daf47a no qvb756286e1-d2 vnet0 virbr0 8000.000000000000 yes

rick@/opt/vdisk$ ip netns qrouter-c7808ea1-ac21-43b7-a278-c122d01a5d7d qdhcp-8393d883-3b8b-4464-9822-1440e76cd49e rick@/opt/vdisk$ ip netns exec qdhcp-8393d883-3b8b-4464-9822-1440e76cd49e ip a 18: tapf2e57c04-62: <broadcast,multicast,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN 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:3eff:fec6:4f14/64 scope link valid_lft forever preferred_lft forever 19: lo: <loopback,up,lower_up> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00 ... (more)

edit retag flag offensive close merge delete

5 answers

Sort by » oldest newest most voted
0

answered 2012-09-21 01:46:19 -0600

gongysh gravatar image

Are u using xen? can u print the iptables-save?

edit flag offensive delete link more
0

answered 2012-09-21 08:03:35 -0600

gongysh gravatar image

and see if this bug https://bugs.launchpad.net/quantum/+bug/1053312 (https://bugs.launchpad.net/quantum/+b...) describes your problem.

edit flag offensive delete link more
0

answered 2012-09-24 01:20:33 -0600

ricky99-wang gravatar image

It's my mistake, to set 'base_mac=fe:16:xx:xx' in the quantum.conf. It shouldn't be starting with 'fe', which conflicts with libvirt. Tanks gonysh, it's ok.

edit flag offensive delete link more
0

answered 2012-09-21 01:29:26 -0600

ricky99-wang gravatar image

quantum-dhcp-agent has already been running. I can get the arp reply in the bridge ''qbr756286e1-d2" and "qvb756286e1-d2" one of the veth ports, but the vnet0 in the same bridge "qbr756286e1-d2" can not get the reply. I have executed "ebtable -t nat -F".

edit flag offensive delete link more
0

answered 2012-09-20 10:48:10 -0600

gongysh gravatar image

can u use udhcpc to get the ip for vm since we have enabled the dhcp server on the network?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-09-19 07:08:09 -0600

Seen: 39 times

Last updated: Sep 24 '12