Result and verification

We can now test for connectivity to spine-1 and leaf-1, as well as to the gateway of the leaf-1 block:

# connectivity to spine-1 loopback
mininet> h1 ping -c 3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=254 time=11.0 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=254 time=2.39 ms

# connectivity to leaf-1 loopback
mininet> h1 ping -c 3 192.168.0.5
PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
64 bytes from 192.168.0.5: icmp_seq=1 ttl=253 time=9.91 ms
64 bytes from 192.168.0.5: icmp_seq=2 ttl=253 time=5.28 ms

# connectivity to leaf-1 server block
mininet> h1 ping -c 3 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=253 time=5.49 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=253 time=5.23 ms

Success! In order to establish reachability to the server, we need to add a route from the server to our new rack. This is strictly a VIRL auto-config setting.

. In the real world, you would not need to do this:

@server-1:~$ sudo bash
[sudo] password for cisco:

root@server-1:~# route add -net 10.20.1.0 netmask 255.255.255.0 gw 10.0.0.1
root@server-1:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.255.0.1 0.0.0.0 UG 0 0 0 eth0
...
10.20.1.0 10.0.0.1 255.255.255.0 UG 0 0 0 eth1
...

Now we can reach server-1 from h1 in Mininet:

mininet> h1 ping -c 3 10.0.0.2
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=61 time=13.3 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=61 time=3.48 ms
...
mininet> h1 ssh [email protected]
[email protected]'s password:

Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-52-generic x86_64)

Last login: Thu Apr 20 21:18:13 2017 from 10.20.1.10
cisco@server-1:~$ exit
logout
Connection to 10.0.0.2 closed.
mininet>

How cool is that! We now have an OpenFlow SDN rack replacing a traditional gear with all the flexibility and modularity that we could not have achieved otherwise. We are on a roll, so let's look at more BGP examples.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.199.184