[ovs-discuss] Trying to setup a VLAN with virtual guests

Abhishek Chanda abhishek.lists at gmail.com
Wed Jun 13 18:30:52 UTC 2012


Hi all,

I am trying to setup a VLAN with a number of VMs (hosted on Virtualbox) on
a blade server host. Here is what I did:
1. Installed the OVS kernel module and setup the server
2. Created a bridge and two tap devices on the host
# ovs-vsctl add-br br0
3. Connected the the tap devices to the bridge with a VLAN tag
# ovs-vsctl add-port br0 tap0 tag=34
# ovs-vsctl add-port br0 tap1 tag=34
4. Configured the VMs in bridged mode to use tap0 and tap1 respectively
5. Assigned IP addresses to the VMs

But now when I try to ping one VM from another, it succeeds at first and
then says "Network is unreachable". Initially, both VMs have a routing
table populated but after some time the table becomes empty automatically,
that is when ping fails. Has this got something to do with my setup? Do I
need to load the brcompat module too?

When ping works fine, I ran ovs-dpctl dump-flows on the host and this was
the output:
in_port(2),eth(src=08:00:27:ba:33:7c,dst=33:33:ff:ba:33:7c),eth_type(0x86dd),ipv6(src=::,dst=ff02::1:ffba:337c,label=0,proto=58,tclass=0,hlimit=255,frag=no),icmpv6(type=135,code=0),nd(target=fe80::a00:27ff:feba:337c),
packets:0, bytes:0, used:never, actions:push_vlan(vid=34,pcp=0),0,pop_vlan,1
in_port(2),eth(src=08:00:27:ba:33:7c,dst=33:33:00:00:00:16),eth_type(0x86dd),ipv6(src=::,dst=ff02::16,label=0,proto=58,tclass=0,hlimit=1,frag=no),icmpv6(type=143,code=0),
packets:0, bytes:0, used:never, actions:push_vlan(vid=34,pcp=0),0,pop_vlan,1
in_port(1),eth(src=08:00:27:b2:b6:c3,dst=33:33:00:00:00:16),eth_type(0x86dd),ipv6(src=fe80::a00:27ff:feb2:b6c3,dst=ff02::16,label=0,proto=58,tclass=0,hlimit=1,frag=no),icmpv6(type=143,code=0),
packets:0, bytes:0, used:never, actions:2,push_vlan(vid=34,pcp=0),0
in_port(1),eth(src=08:00:27:b2:b6:c3,dst=33:33:00:00:00:fb),eth_type(0x86dd),ipv6(src=fe80::a00:27ff:feb2:b6c3,dst=ff02::fb,label=0,proto=17,tclass=0,hlimit=255,frag=no),udp(src=5353,dst=5353),
packets:12, bytes:3465, used:1.560s, actions:2,push_vlan(vid=34,pcp=0),0
in_port(2),eth(src=08:00:27:ba:33:7c,dst=33:33:00:00:00:fb),eth_type(0x86dd),ipv6(src=fe80::a00:27ff:feba:337c,dst=ff02::fb,label=0,proto=17,tclass=0,hlimit=255,frag=no),udp(src=5353,dst=5353),
packets:0, bytes:0, used:never, actions:push_vlan(vid=34,pcp=0),0,pop_vlan,1
in_port(2),eth(src=08:00:27:ba:33:7c,dst=ff:ff:ff:ff:ff:ff),eth_type(0x0800),ipv4(src=0.0.0.0,dst=255.255.255.255,proto=17,tos=0x10,ttl=128,frag=no),udp(src=68,dst=67),
packets:0, bytes:0, used:never, actions:push_vlan(vid=34,pcp=0),0,pop_vlan,1
in_port(2),eth(src=08:00:27:ba:33:7c,dst=33:33:00:00:00:16),eth_type(0x86dd),ipv6(src=fe80::a00:27ff:feba:337c,dst=ff02::16,label=0,proto=58,tclass=0,hlimit=1,frag=no),icmpv6(type=143,code=0),
packets:0, bytes:0, used:never, actions:push_vlan(vid=34,pcp=0),0,pop_vlan,1

Please let me know if I am missing something obvious here

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120613/8e90b044/attachment.html>


More information about the discuss mailing list