To check the flow paths
#from the shell prompt
$ sudo ovs-ofctl dump-flows s1
#from the Mininet prompt is
mininet> dpctl dump-flows s1
or
mininet> s1 ovs-ofctl dump-flows s1
or
mininet> sh ovs-ofctl dump-flows s1
To Add flows paths (From shell prompt)
Check the destination and add the flow
$ sudo ovs-ofctl add-flow s1 ip,nw_dst=10.0.0.1,actions=output:1
or
$ sudo ovs-ofctl add-flow s1 eth_type=0x800,nw_dst=10.0.0.1,actions=output:1
To Remove flows paths (From shell prompt)
Check the source and remove the flow
$ sudo ovs-ofctl del-flows s1 ip,nw_src=10.0.0.1,actions=output:1
If you are trying to communicate using IP addresses, make sure to handle ARPs
$ sudo ovs-ofctl add-flow s1 eth_type=0x806,actions=output:ALL
#from the shell prompt
$ sudo ovs-ofctl dump-flows s1
#from the Mininet prompt is
mininet> dpctl dump-flows s1
or
mininet> s1 ovs-ofctl dump-flows s1
or
mininet> sh ovs-ofctl dump-flows s1
To Add flows paths (From shell prompt)
Check the destination and add the flow
$ sudo ovs-ofctl add-flow s1 ip,nw_dst=10.0.0.1,actions=output:1
or
$ sudo ovs-ofctl add-flow s1 eth_type=0x800,nw_dst=10.0.0.1,actions=output:1
To Remove flows paths (From shell prompt)
Check the source and remove the flow
$ sudo ovs-ofctl del-flows s1 ip,nw_src=10.0.0.1,actions=output:1
If you are trying to communicate using IP addresses, make sure to handle ARPs
$ sudo ovs-ofctl add-flow s1 eth_type=0x806,actions=output:ALL
No comments:
Post a Comment