[ovs-discuss] VLAN configuration using openvswitch

Ben Pfaff blp at nicira.com
Thu Sep 19 17:00:01 UTC 2013


On Thu, Sep 19, 2013 at 05:53:38PM +0530, nisha goyal wrote:
> I am working on a project where we create multiple vms on a host machine.
> There are multiple hosts of this kind. These hosts are connected to a
> single LAN and the VMs are created using KVM. Qemu and libvirt are used
> alongwith. There is a requirement where I need to create multiple VLANs
> such that some VMs on a host can be a part of one VLAN and the rest could
> be a part of another VLAN. These VLANs are also spread across multiple
> hosts.
> 
> I was trying to achieve this using openvswitch but failed to succeed. I
> have followed many solutions available online but I am left in a confused
> state. Please help me.

There is no need to "create a VLAN" with Open vSwitch.  When you want
a particular port to be part of a particular VLAN, just set the "tag"
column on that port, e.g. "ovs-vsctl set port tap0 tag=123".



More information about the discuss mailing list