0
Mininetを使用していて、Wiresharkを起動してホストに接続している特定のポートのすべてのトラフィックを複製するために、Switchを設定する方法がよくあります。すべてのトラフィック。助言がありますか?Mininetスイッチのポートミラーリングの設定
私の設定スクリプトがあります:
class MyTopo(Topo):
"Simple topology example."
def __init__(self):
"Create custom topo."
# Initialize topology
Topo.__init__(self)
# Add hosts and switches
leftHost = self.addHost('h1')
rightHost = self.addHost('h2')
idsHost = self.addHost('h3')
Switch = self.addSwitch('s1')
# Add links
self.addLink(leftHost,Switch)
self.addLink(rightHost, Switch)
self.addLink(Switch, idsHost)
topos = { 'mytopo': (lambda: MyTopo()) }