Hi Eswar, You can try the below commands for flow based tunneling.
ovs-vsctl add-port br-int tun-port -- set Interface tun-port type=vxlan options:key=flow options:remote_ip=flow ofport_request=10 options:dst_port=5000 ovs-ofctl add-flow br-int "in_port=1 actions=set_field:10->tun_id,set_field:10.10.10.10->tun_dst,output:10" ovs-ofctl add-flow br-int "in_port=10 actions=output:2" Note: You can change the "dst_port" , "in_port" and "output" based on your requirement. Also if don't give dst_port it will be taken as default port while creating tunnelport in the switch. Regards, Balaji.P From: [email protected] [mailto:[email protected]] On Behalf Of ESWAR RAO Sent: Friday, October 25, 2013 8:16 AM To: Jesse Gross Cc: [email protected] Subject: Re: [ovs-discuss] Reg. flow based tunneling Hi Jesse, Thanks for the mail. Please correct me if my below understanding is wrong. VM port: 1, tunnel port:2 , needs to send broadcast flow to remote machines with remoteIP_1 and remoteIP_2 # ovs-ofctl add-flow br-tun in_port=1 actions=set_field:<remoteIP-1> ->tun_dst, set_field:<vni>->tun_id, output:2 Can I add the flow as : # ovs-ofctl add-flow br-tun in_port=1 actions=set_field:<remoteIP-1> ->tun_dst, set_field:<vni>->tun_id, set_field:<remoteIP-2> ->tun_dst, set_field:<vni>->tun_id output:2 I thought I can add 2 flows with in_port as 1 and actions with remote ips respectively. But if the flow matches to first entry it will not adhere to 2nd flow and doesn't send to remoteIP_2. Thanks Eswar On Fri, Oct 25, 2013 at 12:03 AM, Jesse Gross <[email protected]<mailto:[email protected]>> wrote: On Thu, Oct 24, 2013 at 9:53 AM, ESWAR RAO <[email protected]<mailto:[email protected]>> wrote: > Hi all, > > Can someone please help me in below scenario?? > > I have launched VMs of same subnet on 3 different machines. > By using flow based tunneling, I created only 1 tunnel port on each node. > > #ovs-vsctl add-port br-tun vxlan0 -- set Interface vxlan0 type=vxlan > options:remote_ip=flow options:key=flow > > Now I need to add broadcast flows (2 is tunnel port , 1 is the VM port) > # ovs-ofctl add-flow br-tun in_port=1 > actions=set_field:<remoteIP-1>->tun_dst,set_field:<vni>->tun_id,output:2 > > Can I add additional tunnel-destination and tunnel-id to the above flow so > that the packet goes to other machine also?? Yes, you can have multiple output actions.
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
