[ovs-discuss] can't match vlan packet in OVS

Ben Pfaff blp at nicira.com
Mon Apr 27 17:15:45 UTC 2015


On Mon, Apr 27, 2015 at 10:58:01AM +0000, Duankebo (Frank) wrote:
>     I have a VM(virtual machine) connected to an OVS vSwitch through a port. I set the port's vlan tag(1 in the following example). So when VM send out a packet, vSwitch will 
> attach a vlan tag(vlan id = 1) to the packet. But It seems the vlan tag is attached only when the packet is sent out by vSwitch to physical network. 
> 	I want to add some openflow entries to OVS, which need to match packet by what network it come from, I use dl_vlan to mach in the openflow entries, 
> Unfortunately, the match doesn't work, because the vlan tag has not be attached yet. Are there some other ways to match a specific vlan packet in the vSwitch?

You can match on the input port (in_port).



More information about the discuss mailing list