mininet

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

Insert picture description here
net
nodes
links
pingall
Insert picture description here

py extended topology

Insert picture description here

View py help information

py help(s1)
py help(h1)
py dir (s1) 也可以看可以使用哪些函数

Insert picture description here

py modify host ip

Insert picture description here

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

Guess you like

Origin blog.csdn.net/weixin_46239293/article/details/114671918