我如何在mininet python脚本中运行ARP

问题描述 投票:1回答:1

我从终端sudo mn --custom=~/myTopo.py --topo=myTopo --mac --arp --switch=ovsk --controller=remote通过此命令运行拓扑但是我怎么能在python sript中写同样的命令net = Mininet( topo=topo,switch=OVSSwitch, link=TCLink, controller=RemoteController( 'c0', ip='127.0.0.1', port=6633 ) )此代码是在脚本中编写的,但我无法在python脚本中包含ARP。它的语法写成什么

linux networking sdn arp mininet
1个回答
0
投票

您可以使用:

net = Mininet( topo=topo,switch=OVSSwitch, link=TCLink, controller=RemoteController( 'c0', ip='127.0.0.1', port=6633 ) )    
net.staticArp()
© www.soinside.com 2019 - 2024. All rights reserved.