June 2017
Intermediate to advanced
446 pages
10h 10m
English
Mininet provides a convenient way for building multi-device linear topologies with the --topo linear option:
$ sudo mn --topo linear,2 --mac --controller remote --switch ovsk ... mininet> links h1-eth0<->s1-eth1 (OK OK) h2-eth0<->s2-eth1 (OK OK) s2-eth2<->s1-eth2 (OK OK)
By default, the hosts were assigned the same IP addresses sequentially, similar to a single-switch topology:
mininet> dump <Host h1: h1-eth0:10.0.0.1 pid=29367> <Host h2: h2-eth0:10.0.0.2 pid=29375> <OVSSwitch s1: lo:127.0.0.1,s1-eth1:None,s1-eth2:None pid=29383> <OVSSwitch s2: lo:127.0.0.1,s2-eth1:None,s2-eth2:None pid=29386> <RemoteController c0: 127.0.0.1:6633 pid=29361>
We can easily change the IP addresses of the hosts according to our diagram:
mininet> ...
Read now
Unlock full access