On 01/25/2011 07:25 AM, Ramana Reddy wrote:
Hi Everyone,
This is setup I tested:
Linux(eth0) --------------(eth1) Linux machine
(eth0)-------------(eth0)Linux
Machine1 with OVS +2
NIC Machine2
eth0.100 ( vlan
100) eth0.100 (
vlan 100)
The Linux Machine1 and Machine2 are configured with VLAN tag 100
respectively.
I set up bridge in OVS, and added eth0 and eth1 as ports using
ovs-vsctl.
Now I can ping eth0 in Linux machine1 with eth0 in Linux machine2, but
when I ping eth0.100 with eth0.100 of machine 2, it is not working.
The OVS simple droping the packets.
How to give tagging so that eth0.100s ping each other
My guess is you should set ports of OVS to trunk port given you want to
pass through the VLAN traffic.
You may see vlan stuff at http://openvswitch.org/ovs-vswitchd.conf.db.5.pdf
try:
ovs-vsctl set port your_port_name_or_uuid turnks=100
How to enable all ports connected to OVS so that all vlan traffic
should pass through OVS.
given ovs has a default flow "normal" makes it work as a L2/L3 switch, I
think you need not do anything specific.
if it won't work, you can set a flood flow or a flow allows port-to-port
traffic.
for example:
ovs-ofctl add-flows your_bridge "idle_timeout=0 hard_timeout=0
priority=1000 in_port=ofport_of_your_interface actions=flood"
if you don't want traffic goes out to a output port(sometimes this
avoids a loop), you can set the port to noflood
ovs-ofctl mod-port your_bridge your_port_name_or_ofport_number noflood
see http://openvswitch.org/cgi-bin/ovsman.cgi?page=utilities/ovs-ofctl.8
for details.
hope that's helpful
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org