Mininet
mn -c Clear the configuration information (when an error occurs, the configuration resources may not be released)
sudo mn --custom file.py --topo mytopo
file.py Under the /mininet/custom directory, if not, give absolute path
mininet command
Network construction parameters
-top
–custom
-Switch
OVS definitions used, the default OVSK (OpenVSwitch)
–controller
sudo mn --controller=remote,–ip=[controller ip],–port=[port] (6653/6633)
-Mac Automatically set the mac of the device
to sort the MAC and IP addresses from small to large, making it easier to read
Internal interactive commands
net
nodes
links
pingall
py extended topology
View py help information
py help(s1)
py help(h1)
py dir (s1) 也可以看可以使用哪些函数
py modify host ip
mininet visualization
/mininet/examples/miniedit.py
Exception: Error creating interface pair (s11-eth2,s12-eth2): RTNETLINK answers: File exists
Solution: mn -c clear configuration information