创建好物理topo后需要创建虚拟topo,虚拟topo需要用ovxctl.py命令,常用的ovxctl.py命令如下:
创建物理topo命令:
sudo mn --topo linear,3,2 --mac --controller remote,ip=127.0.0.1,port=6633
打开openvirtex/utils文件,开始创建虚拟网络
1、创建虚拟网络
createNetwork
eg:
python ovxctl.py -n createNetwork tcp:localhost:10000 10.0.0.0 16
2、创建虚拟交换机
createSwitch
eg:
python ovxctl.py -n createSwitch 1 00:00:00:00:00:00:00:01,00:00:00:00:00:00:00:01
3、创建虚拟端口
createPort
eg:
pyth