[ovs-discuss] Modify src_mac

George Papathanail papathanail24 at gmail.com
Tue Dec 11 22:26:29 UTC 2018


Hello,

I use Mininet to instantiate a topology with two switches and to hosts the
topology is like this:

H1---s1---s2---H3

H1
IP:10.0.0.1
MAC:00:00:00:00:00:01

H2
IP:10.0.0.2
MAC:00:00:00:00:00:02

What I want to do, is to add a flow with ovs-ofctl to modify the src_mac
and encode the output port of the switch for this topology the output port
of s1 is port2.

I use this command:

ovs-ofct add-flow s1,
dl_type=0x800,nw_dst=10.0.0.1,actions=mod_dl_src=00:00:00:00:00:02,output:2

Does this make sense?
I am newbie on this field so any help it would be good

Thanks

George

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Απαλλαγμένο
από ιούς. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181212/9eaab993/attachment.html>


More information about the discuss mailing list