[ovs-discuss] OVS portgroup configuration

Joe Tynan jtynan at tssg.org
Wed Nov 19 11:54:46 UTC 2014


Hi All, 

 

I have an OVS portgroup issue i am trying to resolve and was wonder if someone can help out. 

I have deployed OVS on a ubuntu 14.04 box, where i am testing a basic use case. The use case involves untagged frames originating externally to the server, using eth0 to bridge “ovsbr0” and then on to three VMs hosted on KVM ( all untagged frames ) .  I can get all the VMs to ping each other and i can access the host server via an ip address hosted on the bridge “ovsbr0”. But what i am having  issue with is if any external host tries to ping\connect the guest VM and vice versa the guest VM getting past the bridge to an external host/router.  There seems to be no path connecting  the “external” network to the “internal” network, something that i thought the bridge “ovsbr0” would do? 

 

Note 1 : shows how the port groups are defined. 

Note 2 : shows xml dump of each Guest VM (XML generated when vm running )  

Note 3 : shows OVS port members Guest VM 

 

Have I missed configuring something? 

 

Regards, 

Joe.  

 

Note 1 :

Portgroups are defined as : 

sudo vi  /etc/libvirt/qemu/networks/ovs-network.xml

<network>

 <name>ovs-network</name>

 <uuid>92c3c0f4-1643-4e1a-b75c-5155fdfcef3a</uuid>

 <forward mode='bridge'/>

 <bridge name='ovsbr0'/>

 <virtualport type='openvswitch'/>

 <portgroup name='no-vlan' default='yes'>

 </portgroup>

 <portgroup name='vlan-02'>

   <vlan>

     <tag id='2'/>

   </vlan>

 </portgroup>

 <portgroup name='vlan-03'>

   <vlan>

     <tag id='3'/>

   </vlan>

 </portgroup>

 <portgroup name='vlan-all'>

   <vlan trunk='yes'>

     <tag id='2'/>

     <tag id='3'/>

   </vlan>

 </portgroup>

</network>

 

Note 2 : 

sudo virsh dumpxml trusty

←-------------- cut ------------->

<interface type='bridge'>

     <mac address='52:54:00:f2:a8:2b'/>

     <source bridge='ovsbr0'/>

     <virtualport type='openvswitch'>

       <parameters interfaceid='028671a1-35be-40a5-89db-9c013dd6e314'/>

     </virtualport>

     <target dev='vnet0'/>

     <model type='virtio'/>

     <alias name='net0'/>

     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

   </interface>

←-------------- cut ------------->

 

sudo virsh dumpxml trusty1

←-------------- cut ------------->

<interface type='bridge'>

     <mac address='52:54:00:f2:a8:15'/>

     <source bridge='ovsbr0'/>

     <virtualport type='openvswitch'>

       <parameters interfaceid='c564ba7b-af03-4d04-8634-7ec83deedda1'/>

     </virtualport>

     <target dev='vnet1'/>

     <model type='virtio'/>

     <alias name='net0'/>

     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

   </interface>

←-------------- cut ------------->

 

sudo virsh dumpxml trusty2

←-------------- cut ------------->

<interface type='bridge'>

     <mac address='52:54:00:f2:a8:1b'/>

     <source bridge='ovsbr0'/>

     <virtualport type='openvswitch'>

       <parameters interfaceid='6adf1a74-980b-47e3-8d9c-cbb07a0a1f7a'/>

     </virtualport>

     <target dev='vnet2'/>

     <model type='virtio'/>

     <alias name='net0'/>

     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

   </interface>

←-------------- cut ------------->

 

Note 3 :

sudo ovs-vsctl show

2dc1d2e7-f01d-44f1-b35d-7bacad32c1e2

   Bridge "ovsbr0"

       Port "ovsbr0"

           Interface "ovsbr0"

               type: internal

       Port "eth0"

           Interface "eth0"

       Port "vnet3"

           tag: 2

           Interface "vnet3"

       Port "vnet0"

           Interface "vnet0"

       Port "vnet2"

           Interface "vnet2"

       Port "vnet1"

           Interface "vnet1"

   ovs_version: "2.0.2"





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20141119/7fc8720b/attachment-0002.html>


More information about the discuss mailing list