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

Anisha Kolasani akolasan at cse.unl.edu
Sun Jun 3 21:04:03 UTC 2012


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/ovs-discuss/attachments/20120603/f1201c3e/attachment.html>


More information about the discuss mailing list