[ovs-dev] Query regarding (Open vSwitch) 2.0.0 version

hardik soni hardiksk at gmail.com
Tue Jan 7 09:33:30 UTC 2014


I tried to inject a flow using Open vswitch Command.
I have been able to redirect it to proper Ethernet port. I checked through
wireshark and I am also receiving UDP packets at the intended machine's
receiver ethernet port.
However, IP and mac dest are not changed in the packets.
following is my added flow.

root at my-lap:~/mininetScripts$ sudo ovs-ofctl add-flow s1 "table=0,
priority=200, in_port=4, dl_vlan=65535, dl_src=9e:13:f8:e8:cb:c7
dl_dst=1e:f6:b5:ac:e9:b1,
actions=output:5,mod_nw_dst:10.0.0.6,mod_dl_dst=ea:70:c4:0b:15:cb"
root at my-lap:~/mininetScripts$ sudo ovs-ofctl dump-flows s1
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=118.034s, table=0, n_packets=124, n_bytes=5680,
idle_age=1,
priority=200,in_port=4,vlan_tci=0x0000,dl_src=9e:13:f8:e8:cb:c7,dl_dst=1e:f6:b5:ac:e9:b1
actions=output:5,mod_nw_dst:10.0.0.6,mod_dl_dst:ea:70:c4:0b:15:cb
root at my-lap:~/mininetScripts$





On 7 January 2014 01:23, hardik soni <hardiksk at gmail.com> wrote:

> Thanks Justin for giving the specific command.
> Thanks for L2 destination remark, I totally missed it.
>
> yes, I meant destination TCP/UDP port as destination transport.
>
>
> On 7 January 2014 01:03, Justin Pettit <jpettit at nicira.com> wrote:
>
>> If by "destination transport", you mean the TCP/UDP port, then you can do
>> what you describe.  It should be pretty clear how to do by reading the
>> ovs-ofctl man page.  Depending on where your new destination is, you may
>> need to update the L2 destination address, too.
>>
>> --Justin
>>
>>
>>
>>
>> On Mon, Jan 6, 2014 at 3:51 PM, hardik soni <hardiksk at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I am using Open vSwitch with version 2.0.0 with mininet simulator. I am
>>> trying to inject a flow which matches source IP and destination transport
>>> of the packet and on successful match switch should change destination IP
>>> and forward the packet to specified port.
>>>
>>> Does Open vSwitch support this?
>>>
>>> If anyone can tell me some command, such that I can check flows in the
>>> switch directly, without any other software.
>>>
>>> --
>>> Regards,
>>> Hardik Soni
>>>
>>>
>>> _______________________________________________
>>> dev mailing list
>>> dev at openvswitch.org
>>> http://openvswitch.org/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Regards,
> Hardik Soni
>
>



-- 
Regards,
Hardik Soni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20140107/ba8a2326/attachment-0003.html>


More information about the dev mailing list