Re: [ovs-discuss] add-flow based on dest-ip and dest-port

2018-12-19 Thread Sara Gittlin
Thank you Mark
-Sara

On Tue, Dec 18, 2018 at 8:55 PM Mark Michelson  wrote:

> On 12/18/18 8:33 AM, Sara Gittlin wrote:
> > Hello
> > can you give the correct syntax to use "ovs-ofctl add-flow" for packet
> > destined to ip=x and dest-port=y, the action should be output to port z
> > Thank you
> > -Sara
>
> In order to add such a flow, you will need to have a switch to add the
> flow to. In addition, when you say "dest-port" you'll need to be sure to
> specify tcp or udp.
>
> Assuming that the switch you want to add the flow to is "br0" and that
> you want to match on both TCP and UDP traffic, then you could add the
> following two flows:
>
> ovs-ofctl add-flow br0 ip,nw_dst=x,tcp,tp_dest=y,actions=output:z
> ovs-ofctl add-flow br0 ip,nw_dst=x,udp,tp_dest=y,actions=output:z
>
> These commands will add the flows to table 0, with a priority of 0. If
> you want to add the flows to specific tables and with specific
> priorities, you can add "table=" and "priority=" to the flow
> as well.
>
> I suggest you read the following manpages to learn more:
>
> ovs-fields(7): Tells all of the fields that can be used in an openflow
> match.
>
> ovs-ofctl(8): Tells the syntax and lots of extra information for the
> "ovs-ofctl add-flow" command. Also tells all the actions that can be
> used in an openflow flow.
>
>
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] add-flow based on dest-ip and dest-port

2018-12-18 Thread Sara Gittlin
Hello
can you give the correct syntax to use "ovs-ofctl add-flow" for packet
destined to ip=x and dest-port=y, the action should be output to port z
Thank you
-Sara
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss