Ask Your Question
0

GRE Tunnels and VLANs on OVS

asked 2013-02-09 20:41:29 -0600

dsmith4546 gravatar image

Very simple question. I used this guide to install folsom: http://docs.openstack.org/folsom/basic-install/content/basic-install_intro.html (http://docs.openstack.org/folsom/basi...) . I am not using namespaces. I am using the gre tenant_network_type. The interface that dnsmasq hands out ip addresses on, and the gateway interface that the vm uses to leave the subnet, are in completely different vlans than any of the vm interfaces on the ovs on the compute node. I made an entry here: http://visualne.wordpress.com/2013/02/09/quantum-gre-tunnels-ovs/ (http://visualne.wordpress.com/2013/02...) . I guess my question is, do the gateway and dnsmasq interface need to be in the same vlan as the vm interface?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2013-02-15 19:38:58 -0600

dsmith4546 gravatar image

I guess I need to understand ovs a little better. How do two ovs's connected together with a gre tunnel know what to do with a broadcast frame from a particular vlan? How does the ovs make a layer 2 decision if the frame isn't tagged with a vlan id?

edit flag offensive delete link more
0

answered 2013-02-14 12:57:59 -0600

dsmith4546 gravatar image

Thanks GMi, that solved my question.

edit flag offensive delete link more
0

answered 2013-02-19 15:20:45 -0600

gmi gravatar image

If you take a look at the flows (defined and learned) by the openvswitch, you will see get a better understanding of how openvwitch operates.

Use the following commands to see the flows:

ovs-appctl bridge/dump-flows br-int ovs-dpctl dump-flows br-int

edit flag offensive delete link more
0

answered 2013-02-12 16:37:36 -0600

gmi gravatar image

The VLAN ID you see in the output of "ovs-vsctl show" are only locally significant and they are not really layer 2 tags added to the frames leaving on the physical interface. They are only used by openvswitch to separate traffic on the br-int, so the different tap interfaces corresponding to different quantum subnets do not see each other's traffic.

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-02-09 20:41:29 -0600

Seen: 38 times

Last updated: Feb 19 '13