[ovs-discuss] vlan in VMs of same host

Ben Pfaff blp at nicira.com
Fri Mar 23 16:52:31 UTC 2012


On Fri, Mar 23, 2012 at 02:42:56PM +0530, stephan wilson wrote:
>  I have one OVS machine (1.2.2) with two VMs. (VM1 and VM2)
> I am creating bridge and vlan tag on VMs by following commands-
>        ovs-vsctl add-br br0
>        ovs-vsctl add-port br0 eth0
>        ovs-vsctl add-port br0 vnet0 tag=2
>        ovs-vsctl add-port br0 vnet1 tag=2
> 
> when I am pinging VM2 from VM1 ,ping is successful in this case
> 
> Query:-
> 1. why we are "not"  getting these packets on br0 and eth0

Because it's a switched network.  Unicast packets between VM1 and VM2
won't ordinarily be sent to other ports.  That would just waste CPU
time and network bandwidth.

> 2. when I am using following command to make bridge as trunk for other
> vlans then also above ping is successful
> ovs-vsctl set port br0 trunks=3,4
> ovs-vsctl set port eth0 trunks=3,4

Ports br0 and eth0 aren't involved at all in traffic between ports
vnet0 and vnet1.

> Please send response, I am not able to figure out why it is not working.

What isn't working?



More information about the discuss mailing list