[ovs-discuss] GRE key rules
William Tu
u9012063 at gmail.com
Tue May 29 01:25:38 UTC 2018
On Mon, May 28, 2018 at 1:33 PM, Bilal Saleem <mbs10 at nyu.edu> wrote:
> Hi,
>
> I am working on simple topology as follows:
> C
> / | \
> Veth ports-----S1 -- S2 -- S3 ---- H1
> \ /
> S4
> I am sending raw packets cooked with GRE headers on Veth ports. I want to
> create rules based on GRE key value like this:
> match2 = parser.OFPMatch(in_port=2, eth_dst=dst, eth_type=0x0800,
> ip_proto=47, grekey=XXXXX)
> S1 will decide where to send the packet based on gre key information.
>
I'm not familiar with ryu controller, but OVS supports GRE key options,
you can set it using ovs-vsctl, for example:
ovs-vsctl add-port br0 gre123 -- set Interface gre123 type=gre \
options:remote_ip=1.1.2.92 options:key=456
ofport_request=3
for creating an OpenFlow rule matching gre key,
see Tunnel ID field in man ovs-fields(7)
for example:
ovs-ofctl add-flow br0 "in_port=2,tunnel_id=456, actions=1"
Regards,
William
More information about the discuss
mailing list