Ask Your Question
2

How to create the connection between OVS bridge and the linux bridge?

asked 2013-08-20 06:09:40 -0600

rever gravatar image

updated 2013-08-23 15:38:00 -0600

smaffulli gravatar image

I have a networking problem because my VMs are unable to get an IP from the DHCP. I have been investigating and I have found that when I type:

brctl show

I see the qbr bridge with the tap and the qvb interface. However, I am missing the connection from that bridge to the OVS bridge switch (the so-called veth). In the OVS I have the br-int bridge configured.

Do I have to manually create the conection between OVS bridge and the linux bridge or should it be created automatically and I am missing something in the config files? Is there any way to check the veth configuration?

Thanks

edit retag flag offensive close merge delete

Comments

This blog may be useful:http://www.google.com/url?sa=t&rct=j&q=&esrc=s&frm=1&source=web&cd=1&ved=0CCoQFjAA&url=%68%74%74%70%3a%2f%2f%74%65%63%68%62%61%63%6b%67%72%6f%75%6e%64%2e%62%6c%6f%67%73%70%6f%74%2e%63%6f%6d%2f%32%30%31%33%2f%30%35%2f%64%65%62%75%67%67%69%6e%67%2d%71%75%61%6e%74%75%6d%2d%64%68%63%70%2d%61%6e%64%2d%6f%70%65%6e%2d%76%73%77%69%74%63%68%2e%68%74%6d%6c&ei=bZ1cUoToHKHZigeurIBI&usg=AFQjCNHF7o3si8X6ihQo05Ekxhpy_oeXbA&sig2=ReIRsxFRXQcbmVPRQx1sqg&bvm=bv.53899372,d.aGc&cad=rjt

SnowWolf gravatar imageSnowWolf ( 2013-10-14 21:17:13 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-18 10:07:56 -0600

osdiaj gravatar image

A veth pair is generally used to connect a linux bridge to OVS bridge (or vice-versa). Usually in OpenStack, the veth between the qvbXXXX (belongs to qbrXXXX) and qvoXXXX (belongs to br-int) should be setup automatically. Have a look at http://docs.openstack.org/admin-guide-cloud/content/under_the_hood_openvswitch.html#under_the_hood_openvswitch_scenario1_compute (http://docs.openstack.org/admin-guide...) .

There are ways to check this (assuming you have a single instance for simplicity) :-

(1) Note the qvbXXXX in brctl show and do ip link show qvbXXXX. Note the index(a number) before colon e.g. 3180 below

[root@compute ]# ip link show qvb016ef9bc-ba

3180: qvb016ef9bc-ba: <broadcast,multicast,promisc,up,lower_up> mtu 1500 qdisc pfifo_fast master qbr016ef9bc-ba state UP mode DEFAULT qlen 1000 link/ether f2:8f:48:f2:01:2a brd ff:ff:ff:ff:ff:ff

(2) Note the qvoXXXX in ovs-vsctl list-ifaces br-int and do ip link show qvoXXXX. Note the index before colon

(3) Now do ethtool -S qvoXXXX | grep peer_ifindex* and ethtool -S qvbXXXX | grep peer_ifindex. They should be showing each other's indices, if configured properly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-20 06:09:40 -0600

Seen: 2,506 times

Last updated: Feb 18 '15