I downloaded mininet, opendaylight, etc.. and I wanted to add flow table to switches.I used dpctl
and sh ovs-ofctl
command. but it was too hard to add flow tables to each switches.
I want to add flow table on Dlux UI. But I don't know how to fill in that blank. I made a topology by:
sudo mn --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk --topo tree,2,2
I could see the Node Id of switches. it was "openflow:1","openflow:2","openflow:3"
So i input openflow:1.. but it occured an error! i don't know how to fill that blank
You need to add a flow manually through the Mininet terminal like this :
ovs-ofctl add-flow [SWITCH_NAME] ip,nw_dst=192.168.0.1,actions=drop
sh
before the command if it does not work. That was an example flow. See this link for the whole ovs commands reference.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.