- Configure mininet and create a topology:
$ sudo mn --custom /home/mininet/mininet/custom/topo-2sw-2host.py --controller=remote,ip=10.100.9.61 --topo mytopo mininet> net s1 lo: s1-eth1:h1-eth0 s1-eth2:s2-eth1 s2 lo: s2-eth1:s1-eth2 s2-eth2:h2-eth0 h1 h1-eth0:s1-eth1 h2 h2-eth0:s2-eth2
*Generate traffic by pinging between hosts h1 and h2 after configuring the portmaps respectively
mininet> h1 ping h2 PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. 64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=16.7 ms 64 bytes from 10.0.0.2: icmp_req=2 ttl=64 time=13.2 ms