On Tue, Jun 5, 2012 at 5:26 AM, ravi kerur <rke...@gmail.com> wrote:
> Hi, I see some discussion on ovs + gre but not sure what the solution
> is. I am facing some what similar issue w.r.t configuration and flow
> matching.
>
> On host-1, gre0 interface is configured via
>
> ovs-vsctl add-br br0
> ovs-vsctl add-port br0 eth0
> ovs-vsctl add-port br0 gre0 -- set interface gre0 type=gre
> options:remote_ip=10.0.0.7
>
> ifconfig eth0 0
> ifconfig br0 10.0.0.3 netmask 255.255.255.0 up
>
> gre0 is added to br0 port table and I have verified using
> ovs-[vs/dp/of]ctl show commands
>
> however, gre0 interface is not in the interface table i.e. if I do
> "ifconfig -a" I don't see gre interface.

It's not supposed to be.  You can run tcpdump on the physical interface.

> Now, I configure flows for transmit and receive packets via gre0
> tunnel as follows
>
> on host-1:
>
> ovs-ofctl add-flow br0
> priority=104,idle_timeout=50000,dl_type=0x0800,nw_proto=1,nw_src=10.0.0.3/32,nw_dst=10.0.0.7/32,actions=mod_vlan_vid:300,mod_vlan_pcp:3,set_tunnel:111,2
>
> ovs-ofctl add-flow br0
> priority=104,idle_timeout=50000,tun_id=222,dl_vlan=200,actions=strip_vlan,NORMAL
>
> on host-2:
>
> ovs-vsctl add-br br0
> ovs-vsctl add-port br0 eth0
> ovs-vsctl add-port br0 gre0 -- set interface gre0 type=gre
> options:remote_ip=10.0.0.3
>
> ifconfig eth0 0
> ifconfig br0 10.0.0.7 netmask 255.255.255.0 up
>
> ovs-ofctl add-flow br0
> priority=104,idle_timeout=50000,dl_type=0x0800,nw_proto=1,nw_src=10.0.0.7/32,nw_dst=10.0.0.3/32,actions=mod_vlan_vid:200,mod_vlan_pcp:3,set_tunnel:222,2
>
> ovs-ofctl add-flow br0
> priority=104,idle_timeout=50000,tun_id=111,dl_vlan=300,actions=strip_vlan,NORMAL
>
>
> When I ping from host-1 to host-2,
>
> on host-1, i see ICMP packets matching first entry, however, I am not
> able to capture packets going out since tcpdump won't work due to gre0
> not in interface table.
>
> on host-2, packets are not matched at all.
>
> My question is, any additional configuration needed to get icmp
> packets go through tunnel interface?

What do you see if you run tcpdump on eth0 on the receiving system?
What about ovs-dpctl dump-flows?  If you're having a matching problem
you should try simplifying your flows to isolate the problem.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to