Hi, all
We are the same person. For I have not received the emails from this mailing 
list, so I used another email to subscribe.
I have solved this problem based on this email 
http://openvswitch.org/pipermail/discuss/2015-March/016892.html
In order to avoid loop, the in_port should not be the same with out_port.
So you should use output:in_port instead.
Thanks

Zhao Jun

From: zhaoju...@outlook.com
To: discuss@openvswitch.org
Date: Tue, 1 Mar 2016 12:24:43 +0800
Subject: [ovs-discuss] question about flow based tunneling




Hi, all
I have a question about flow based tunneling.
In VM, I add a flow based tunnel port using "ovs-vsctl add-port wan-br tunnel 
-- set interface tunnel ofport-request=2 type=gre options:remote_ip=flow 
options:key=flow"
And add the following flow rule "cookie=0x0, duration=2950.033s, table=0, 
n_packets=2381, n_bytes=233338, idle_age=547, 
ip,tun_id=0x1389,tun_src=52.193.10.12,in_port=2,nw_src=10.0.1.0/24,nw_dst=10.0.3.0/24
 actions=set_tunnel:0x1389,load:0x3421e8c7->NXM_NX_TUN_IPV4_DST[],output:2"
The VM receives tunnel traffic from 52.193.10.12 and redirect the traffic to 
0x3421e8c7 using gre tunnel.
As above shows, the VM has received the traffic, but without redirecting, 
because I do not capture traffic with dest ip = 0x3421e8c7.
So I want to ask what is wrong with the above command I used?
Thanks!

Zhao Jun                                          

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss
                                          
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to