- mininet: mn --controller=remote,ip=127.0.0.1 --topo topo --custom topo.py
- h1 ping h4
- open other terminal
- type "ovs-ofctl dump-flows s2" to make sure the flow is pass through s2.
- type "ifocnfig s1-eth1" to shutdown the link between s1 and s2
- The result in the mininet promt:
64 bytes from 10.0.0.4: icmp_req=71 ttl=64 time=0.028 ms
64 bytes from 10.0.0.4: icmp_req=72 ttl=64 time=195 ms
64 bytes from 10.0.0.4: icmp_req=73 ttl=64 time=0.157 ms
64 bytes from 10.0.0.4: icmp_req=74 ttl=64 time=0.023 ms
64 bytes from 10.0.0.4: icmp_req=75 ttl=64 time=0.025 ms
64 bytes from 10.0.0.4: icmp_req=76 ttl=64 time=0.023 ms
64 bytes from 10.0.0.4: icmp_req=77 ttl=64 time=0.041 ms
64 bytes from 10.0.0.4: icmp_req=78 ttl=64 time=10.2 ms
64 bytes from 10.0.0.4: icmp_req=79 ttl=64 time=0.320 ms
64 bytes from 10.0.0.4: icmp_req=84 ttl=64 time=118 ms
64 bytes from 10.0.0.4: icmp_req=85 ttl=64 time=0.290 ms
64 bytes from 10.0.0.4: icmp_req=86 ttl=64 time=0.038 ms
64 bytes from 10.0.0.4: icmp_req=87 ttl=64 time=0.031 ms
64 bytes from 10.0.0.4: icmp_req=88 ttl=64 time=0.032 ms
64 bytes from 10.0.0.4: icmp_req=89 ttl=64 time=0.033 ms
According to the above result, you can see i shutdown the interface on icmp_req=79, and the ping will work again after icmp_req=85. 7. type "ovs-ofctl dump-flows s3" to make sure the flow is pass through s3 now.