Hi Guys, I am new to openvswitch here, and was trying to redirect a vxlan flow depending on tunnel id.
my setup is a two bridge setup where bridge2 has vxlan tunnels with remote ip set, and bridge1 (192.168.0.X) are directly connected to each other. two nodes with tunnel setup using commands: 1) on first vm sudo ovs-vsctl add-port br2 vxlan1 -- set interface vxlan1 type=vxlan options:remote_ip=192.168.0.2 options:key=20480 2) on second vm sudo ovs-vsctl add-port br2 vxlan1 -- set interface vxlan1 type=vxlan options:remote_ip=192.168.0.3 options:key=20480 sudo ovs-ofctl del-flows br1 sudo ovs-ofctl add-flow br1 "table=1 actions=NORMAL" sudo ovs-ofctl add-flow br1 "table=0 priority=100 actions=resubmit(,1)" sudo ovs-ofctl add-flow br1 "table=0 priority=200 tun_id=20480,actions=mod_nw_dst:192.168.0.5,resubmit(,1)" here the output of ofproto/trace is below: $ sudo ovs-appctl ofproto/trace br1 in_port=1,ip,nw_dst=192.168.0.3,tun_id=0x5000 Flow: ip,tun_id=0x5000,metadata=0,in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00, dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=192.168.0.3,nw_tos=0,nw_ecn=0,nw_ttl=0 Rule: table=0 cookie=0 priority=200,tun_id=0x5000 OpenFlow actions=mod_nw_dst:192.168.0.5,resubmit(,1) Resubmitted flow: ip,tun_id=0x5000,metadata=0,in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=192.168.0.5,nw_tos=0,nw_ecn=0,nw_ttl=0 Resubmitted regs: reg0=0x0 reg1=0x0 reg2=0x0 reg3=0x0 reg4=0x0 reg5=0x0 reg6=0x0 reg7=0x0 Resubmitted odp: drop Rule: table=1 cookie=0 OpenFlow actions=NORMAL no learned MAC for destination, flooding Final flow: unchanged Relevant fields: skb_priority=0,ip,in_port=1,vlan_tci=0x0000/0x1fff,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_frag=no Datapath actions: 1 which shows it should work, but when i send really traffic , it doesn't get through to 192.168.0.5 is there something i am missing here? Regards.
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss