Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Add flow but not working on vSwitch

asked 2016-07-07 23:17:52 -0700

HitsuYaga gravatar image

Dear all, I'm newbie about SDN and OpenDaylight. Now I use OpenDaylight for simple example. 1. Using ODL to control vSwitch. I have just install odl-restconfig-all, odl-openflowplugin-flow-services module in ODL 2. Using mininet with topology: 1 switch and 2 host (mn --topo single,2 --mac --switch ovsk --controller=remote,ip=<ip-controller>,port=6633 --switch ovs,protocols=OpenFlow13)

I using Postman to add flow to vSwitch for 2 host can ping together. After I finished, vSwitch receives flow as below:

root@SDN-LAB:~# ovs-ofctl dump-flows s1 NXSTFLOW reply (xid=0x4): cookie=0x0, duration=179.296s, table=1, npackets=0, nbytes=0, idleage=179, priority=2,ip,dlsrc=00:00:00:00:00:01,dldst=00:00:00:00:00:02 actions=output:2 cookie=0x0, duration=3.159s, table=2, npackets=0, nbytes=0, idleage=3, priority=2,ip,dlsrc=00:00:00:00:00:02,dl_dst=00:00:00:00:00:01 actions=output:1

But 2 host can not ping to other. Please help me to resolve it. Many thanks.

edit retag flag offensive close merge delete


try table 0

karthik330 ( 2016-07-08 00:28:56 -0700 )edit

Dear Karthik. Thanks for your answer. I found that with two flow, two host can not ping together. I just add the third flow for arp searching with action: flood. afterthat everything is ok.

HitsuYaga ( 2016-07-08 01:40:47 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-08 07:42:02 -0700

monicarajasekaran gravatar image

You need to add a flow for ARP packets in order to get ICMP packets flowing. A flow similar to this will work:

ovs-ofctl add-flow <br-name> dl_type=0x806,dl_dst=ff:ff:ff:ff:ff:ff,actions=Flood

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-07-07 23:17:52 -0700

Seen: 96 times

Last updated: Jul 08 '16