1, Ryu controller modify the listening port
The ofproto_common.py under the Ryu/ryu/ofproto
The following changes, thank you @ BEIJING-Otaku small @ Lone Shrimp
2, mininet in custom self-built topology and connect to the specified controller command interpretation
If you want a simple self-built topology on the mininet, just build it under Mininet/custom, and you can finally name the. py file.The command running is MN--custom self-built topology file name--topo Mytopo If you specify a controller that needs to be connected, you can add a connection parameter mn--custom self-built topology file name--topo Mytopo--controller Remote,ip=ipa Ddr,port=port, that's it. Another detailed step for a self-built topology can be found in the links: http://www.muzixing.com/pages/2013/12/06/ Yuan-chuang-mininetda-jian-zi-ding-yi-wang-luo-tuo-bu-by-muzi.html
One thing to note is that MN is the command to start Mininet,--topo,--custom,--controller are the options you want to configure, and--test and so on, and the parameters followed by these configuration items are the detailed parameters of the configuration options. For example, the parameters behind--controller include the remote,ip=ipaddr,port=port number, note: Only in the form of remote front there are spaces, there is absolutely no space between the parameters. Otherwise it will be an error.
Ryu Modify the listener port Mininet in the custom self-built topology and connect to the specified controller command to interpret