Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mininet@mininet-vm:~$ sudo mn --custom 2swCon.py --topo=mytopo --controller=remote,ip=192.168.57.1,port=6653 --switch=ovsk --mac
- *** Creating network
- *** Adding controller
- *** Adding hosts:
- h1 h2
- *** Adding switches:
- s1 s2
- *** Adding links:
- (h1, s1) (s1, s2) (s2, h2)
- *** Configuring hosts
- h1 h2
- *** Starting controller
- c0
- *** Starting 2 switches
- s1 s2
- *** Starting CLI:
- mininet> h1 ping -c 4 h2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- ^C
- --- 10.0.0.2 ping statistics ---
- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms
- mininet> h1 ping -c 4 h2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.466 ms
- 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.120 ms
- 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.096 ms
- 64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.095 ms
- --- 10.0.0.2 ping statistics ---
- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms
- rtt min/avg/max/mdev = 0.095/0.194/0.466/0.157 ms
- mininet> xterm h1
- Error: Cannot connect to display
- mininet> iperf
- *** Iperf: testing TCP bandwidth between h1 and h2
- Waiting for iperf to start up...*** Results: ['239 Kbits/sec', '850 Kbits/sec']
- mininet> h1 ping -c 4 h2
- PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
- 64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.420 ms
- 64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.103 ms
- 64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.102 ms
- 64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.104 ms
- --- 10.0.0.2 ping statistics ---
- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms
- rtt min/avg/max/mdev = 0.102/0.182/0.420/0.137 ms
- mininet> iperf
- *** Iperf: testing TCP bandwidth between h1 and h2
- *** Results: ['9.51 Mbits/sec', '12.5 Mbits/sec']
- mininet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement