On Fri, Jan 27, 2012 at 5:20 PM, senthil arumugam
<[email protected]> wrote:
>
> Experts
>
> I have set up a GRE tunnel between 2 hosts and tried to ping from VM in host1 
> to VM in host2.
>
>
> VM1-->vswitch -eth0======GRE tunnel=====eth0- Vswitch--->VM2
>
> Command to set up GRE tunnel used:
>    sudo ovs-vsctl add-port br0 gre0 -- set interface gre0 type=gre 
> optiosns:remote_ip=10.0.0.2 options:key=0xf1
>
> From wireshark decode, I could see GRE header has '0xf1'
>
> The ping from vm1-.>vm2 works.
>
> Now I added a flow on host 2 that drops packets received from the GRE port.
>
> sudo ovs-ofctl  add-flow br0 "in_port=3 actions=drop"
>
> Now ping from VM1-->VM2 fails as expected.
>
> Now I deleted the above and added an another flow with tun-id.
>
> sudo ovs-ofctl  add-flow br0 "in_port=3 tun-id=0xf1 actions=drop"
>
> The PING (vm1-->vm2) works contrary to the expectations..
>
> Looks like tun-id  does  have any effect on the actions..
>
> Any pointers what I am missing?

You need to set the key to 'flow', as is mentioned in the GRE
documentation.  It does not make sense to match the key as part of the
port and the flow.

Also, please stop including images in your email.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to