[ovs-discuss] Problem with VLANs set up on OVS.

Anisha Kolasani anisha.kolasani at gmail.com
Mon Jun 4 01:40:11 UTC 2012


Hi,

I would like to update some additional ways in which i tried to solve the
problem I am having.
Assuming there might be a problem with my NIC drivers, I updated the vlan
packages and then I tried to insert the 8021q module:

modprobe 8021q

I am still not able to ping between VMs on two different machines. In fact,
I only have one VM per machine on VLAN 21. I am trying to ping between
these two VMs. But I am not able. I would be helpful if I could get any
pointers with regard to this problem.

Thank you,
Anisha.

On Sun, Jun 3, 2012 at 4:04 PM, Anisha Kolasani <akolasan at cse.unl.edu>wrote:

> Hi,
>
> I am trying to run the experiment in lines of the OVS configuration cook
> book on VLANs.
>
> I an using two machines, each with OVS 1.4.0 running on them and virtual
> michines are brought up using KVM.
>
> Machine 1:
>                br0, IP- 192.168.5.5
>
>                 VM 1: sudo kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:EE
> -net tap,script=/home/anisha/*ovs-ifup*,downscript=/home/anisha/ovs-ifdown
> -cdrom /media/Ubuntu12/ubuntu-12.04-desktop-i386.iso
>
>               VM2: sudo kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:E5
> -net tap,script=/home/anisha/ovs-ifupvaln,downscript=/home/anisha/ovs-ifdown
> -cdrom /media/Ubuntu12/ubuntu-12.04-desktop-i386.iso
>
>
> Machine 2:
>               br0, IP - 192.168.5.6
>
>               VM3: sudo kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:E6
> -net tap,script=/home/anisha/ovs-ifup,downscript=/home/anisha/ovs-ifdown
> -cdrom /media/Ubuntu12/ubuntu-12.04-desktop-i386.iso
>
>                VM4: sudo kvm -m 512 -net nic,macaddr=00:11:22:EE:EE:E7
> -net tap,script=/home/anisha/ovs-ifupvaln,downscript=/home/anisha/ovs-ifdown
> -cdrom /media/Ubuntu12/ubuntu-12.04-desktop-i386.iso
>
>
> Scripts:
>  ovs-ifup:
>              #!/bin/sh
>
>              switch='br0'
>              /sbin/ifconfig $1 0.0.0.0 up
>              ovs-vsctl add-port ${switch} $1
>
> ovs-ifupvaln:
>
>           #!/bin/sh
>
>          switch='br0'
>          /sbin/ifconfig $1 0.0.0.0 up
>          ovs-vsctl add-port ${switch} $1 tag=21
>
>
>
> The VM1 on machine 1 is able to ping VM3 on machine 2. The tap interfaces
> of VM1 and VM3 are not declared as access ports.
> But VM2 on machine 1 is not able to ping VM4 on machine 2. VM2 and VM4 are
> not declared to be on VLAN 21.
>
> Could you please let me know what the problem might be?
>
> Thank you,
> Anisha.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20120603/25d5923a/attachment.htm>


More information about the discuss mailing list