[ovs-discuss] VYOS under Libvirt connected to OpenVswitch as internal 8021q subinterfaces

Chris Boley ilgtech75 at gmail.com
Sat Mar 10 19:27:03 UTC 2018


I'm aware of how to define an edge port under the libvirt network XML file
and make that guest VM assign itself to the openvswitch as an access port
assigned to a specific vlan like:

On a cisco switch this:

<portgroup name='vnic3-tag3'>
    <vlan>
      <tag id='3'/>
    </vlan>
  </portgroup>

 is the equivalent of:

switchport mode access
switchport access vlan 3


====================================
So this:
<portgroup name='TRUNK1'>
    <vlan trunk='yes'>
      <tag id='2'/>
      <tag id='3'/>
    </vlan>
  </portgroup>

 is the equivalent of:

switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 2,3
=====================================

So I could create dot1q based subinterfaces on a guest VM interface
with the ( vlan trunk='yes' ) syntax?

Would that assumption be correct?

I was thinking VyOS in router-on-a-stick topology just in case anybody
wants to know why I'm asking.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180310/42a6851c/attachment-0001.html>


More information about the discuss mailing list