sdn第一次作业
git clone https://github.com/mininet/mininet.git cd mininet/util ./install.sh sudo mn --topo linear,3 sudo mn --topo tree,fanout=3,depth=2 cd mininet cd examples sudo ./miniedit.py #!/usr/bin/python #创建网络拓扑 """Custom topology example Adding the 'topos' dict with a key/value pair to generate our newly defined topology enables one to pass in '--topo=mytopo' from the command line. """ from mininet.topo import Topo from mininet.net import Mininet from mininet.node import RemoteController,CPULimitedHost from mininet.link import TCLink from mininet.util import dumpNodeConnections class MyTopo( Topo