Skip to content

Latest commit

 

History

History
329 lines (219 loc) · 9.27 KB

E08.md

File metadata and controls

329 lines (219 loc) · 9.27 KB

Documentation for E08

Goal

The goal of this assignment was to configure the OSPF within the network. To do so, I created links between routers and loopbacks for each router. Then, I ditched the static routing. In the end, I checked the connectivity by running such commands as show, traceroute, and ping.

Physical topology

Logical topology

I changed the network settings of Vyos 1,2 and 3 then I chose subnets 10 and 11 from the third exercise for configuring the routers

Tenth subnet ( R1 and R3)

Specification Subnet info
New subnet mask 255.255.255.240
Number of usable hosts in the subnet 13
Network address 10.12.24.144/28
First IP Host address 10.12.24.145
Last IP Host address 10.12.24.158
Broadcast address 10.12.24.159

Eleventh subnet (R2 and R3)

Specification Subnet info
New subnet mask 255.255.255.240
Number of usable hosts in the subnet 13
Network address 10.12.24.160/28
First IP Host address 10.12.24.161
Last IP Host address 10.12.24.174
Broadcast address 10.12.24.175

Setting new RtoR connections

Vyos 1

Vyos 2

Vyos 3

Addressing loopback interfaces

I used subnet calculated in the 4th exercise

Subnet mask Network address First host address Last host address Broadcast address Usable addresses
255.255.255.252 10.12.24.244/30 10.12.24.245 10.12.24.246 10.12.24.247 2

Then I distributed /32 adress for the routers

  • Vyos 1 - 10.12.24.245/32
  • Vyos 2 - 10.12.24.246/32
  • Vyos 3 - 10.12.24.247/32

Vyos 1

Vyos 2

Vyos 3

Ditching Static routing

Vyos 1

Vyos 2

Vyos 3

Enabling Dynamic Routing - OSPF

Vyos 1

Vyos 2

Vyos 3

Checking for routing table

show-interfaces

show ip ospf neighbor

show ip route ospf

show ip route

show ip ospf database

Verifying connectivity

ping Lubuntu 2 --> Lubuntu 1

lubuntu@lubuntu-virtualbox:~$ ping 192.168.15.2
PING 192.168.15.2 (192.168.15.2) 56(84) bytes of data.
64 bytes from 192.168.15.2: icmp_seq=1 ttl=61 time=25.3 ms
64 bytes from 192.168.15.2: icmp_seq=2 ttl=61 time=27.0 ms
64 bytes from 192.168.15.2: icmp_seq=3 ttl=61 time=26.0 ms
64 bytes from 192.168.15.2: icmp_seq=4 ttl=61 time=23.3 ms
64 bytes from 192.168.15.2: icmp_seq=5 ttl=61 time=19.2 ms
64 bytes from 192.168.15.2: icmp_seq=6 ttl=61 time=20.0 ms
64 bytes from 192.168.15.2: icmp_seq=7 ttl=61 time=22.9 ms
64 bytes from 192.168.15.2: icmp_seq=8 ttl=61 time=18.3 ms
64 bytes from 192.168.15.2: icmp_seq=9 ttl=61 time=17.7 ms
64 bytes from 192.168.15.2: icmp_seq=10 ttl=61 time=16.8 ms
64 bytes from 192.168.15.2: icmp_seq=11 ttl=61 time=6.58 ms
64 bytes from 192.168.15.2: icmp_seq=12 ttl=61 time=11.4 ms
^C
--- 192.168.15.2 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11024ms
rtt min/avg/max/mdev = 6.581/19.549/26.988/5.796 ms
lubuntu@lubuntu-virtualbox:~$ 

ping Lubuntu 3 --> Lubuntu 2

ubuntu@lubuntu-virtualbox:~$ ping 192.168.15.65
PING 192.168.15.65 (192.168.15.65) 56(84) bytes of data.
64 bytes from 192.168.15.65: icmp_seq=1 ttl=61 time=16.7 ms
64 bytes from 192.168.15.65: icmp_seq=2 ttl=61 time=19.5 ms
64 bytes from 192.168.15.65: icmp_seq=3 ttl=61 time=16.3 ms
64 bytes from 192.168.15.65: icmp_seq=4 ttl=61 time=21.0 ms
64 bytes from 192.168.15.65: icmp_seq=5 ttl=61 time=13.7 ms
64 bytes from 192.168.15.65: icmp_seq=6 ttl=61 time=10.1 ms
64 bytes from 192.168.15.65: icmp_seq=7 ttl=61 time=10.4 ms
64 bytes from 192.168.15.65: icmp_seq=8 ttl=61 time=11.0 ms
64 bytes from 192.168.15.65: icmp_seq=9 ttl=61 time=5.00 ms
64 bytes from 192.168.15.65: icmp_seq=10 ttl=61 time=7.38 ms
64 bytes from 192.168.15.65: icmp_seq=11 ttl=61 time=8.61 ms
64 bytes from 192.168.15.65: icmp_seq=12 ttl=61 time=6.89 ms
^C
--- 192.168.15.65 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11022ms
rtt min/avg/max/mdev = 4.995/12.206/20.952/4.953 ms
lubuntu@lubuntu-virtualbox:~$ 

ping Lubuntu 1 --> Lubuntu 3

ubuntu@lubuntu-virtualbox:~$ ping 192.168.15.130
PING 192.168.15.130 (192.168.15.130) 56(84) bytes of data.
64 bytes from 192.168.15.130: icmp_seq=1 ttl=61 time=4.61 ms
64 bytes from 192.168.15.130: icmp_seq=2 ttl=61 time=7.53 ms
64 bytes from 192.168.15.130: icmp_seq=3 ttl=61 time=5.73 ms
64 bytes from 192.168.15.130: icmp_seq=4 ttl=61 time=4.93 ms
64 bytes from 192.168.15.130: icmp_seq=5 ttl=61 time=4.63 ms
64 bytes from 192.168.15.130: icmp_seq=6 ttl=61 time=4.50 ms
64 bytes from 192.168.15.130: icmp_seq=7 ttl=61 time=5.84 ms
64 bytes from 192.168.15.130: icmp_seq=8 ttl=61 time=5.89 ms
64 bytes from 192.168.15.130: icmp_seq=9 ttl=61 time=6.91 ms
64 bytes from 192.168.15.130: icmp_seq=10 ttl=61 time=6.34 ms
64 bytes from 192.168.15.130: icmp_seq=11 ttl=61 time=6.18 ms
64 bytes from 192.168.15.130: icmp_seq=12 ttl=61 time=5.47 ms
^C
--- 192.168.15.130 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11017ms
rtt min/avg/max/mdev = 4.496/5.712/7.525/0.908 ms
lubuntu@lubuntu-virtualbox:~$ 

traceroute Lubuntu 1 --> Lubuntu 3

lubuntu@lubuntu-virtualbox:~$ traceroute 192.168.15.130
traceroute to 192.168.15.130 (192.168.15.130), 64 hops max
  1   192.168.15.62  7,684ms  1,292ms  0,928ms 
  2   10.12.24.158  2,246ms  2,946ms  2,213ms 
  3   10.12.24.161  3,945ms  5,373ms  4,561ms 
  4   192.168.15.130  4,921ms  19,870ms  4,357ms 

traceroute Lubuntu 3 --> Lubuntu 2

lubuntu@lubuntu-virtualbox:~$ traceroute 192.168.15.65
traceroute to 192.168.15.65 (192.168.15.65), 64 hops max
  1   192.168.15.129  9,331ms  0,820ms  0,625ms 
  2   10.12.24.174  2,737ms  0,828ms  1,399ms 
  3   10.12.24.145  2,894ms  3,628ms  3,719ms 
  4   192.168.15.65  7,563ms  4,305ms  4,318ms 
lubuntu@lubuntu-virtualbox:~$ 

traceroute Lubuntu 3 --> Lubuntu 1

ubuntu@lubuntu-virtualbox:~$ traceroute 192.168.15.2
traceroute to 192.168.15.2 (192.168.15.2), 64 hops max
  1   192.168.15.129  0,913ms  0,700ms  1,315ms 
  2   10.12.24.174  1,378ms  1,530ms  2,245ms 
  3   10.12.24.145  2,883ms  2,718ms  2,629ms 
  4   192.168.15.2  7,749ms  18,595ms  8,680ms 
lubuntu@lubuntu-virtualbox:~$ 

ping and traceroute Lubuntu 3 --> Vyos 1

ubuntu@lubuntu-virtualbox:~$ ping 192.168.15.126
PING 192.168.15.126 (192.168.15.126) 56(84) bytes of data.
64 bytes from 192.168.15.126: icmp_seq=1 ttl=62 time=87.6 ms
64 bytes from 192.168.15.126: icmp_seq=2 ttl=62 time=85.4 ms
64 bytes from 192.168.15.126: icmp_seq=3 ttl=62 time=41.4 ms
64 bytes from 192.168.15.126: icmp_seq=4 ttl=62 time=35.8 ms
64 bytes from 192.168.15.126: icmp_seq=5 ttl=62 time=132 ms
^C
--- 192.168.15.126 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 35.762/76.430/131.996/35.143 ms
lubuntu@lubuntu-virtualbox:~$ traceroute 192.168.15.126
traceroute to 192.168.15.126 (192.168.15.126), 64 hops max
  1   192.168.15.129  0,404ms  0,397ms  0,328ms 
  2   10.12.24.174  0,801ms  0,688ms  0,725ms 
  3   192.168.15.126  1,390ms  2,239ms  1,191ms 
lubuntu@lubuntu-virtualbox:~$ 

ping and traceroute Lubuntu 1 --> Vyos 2

lubuntu@lubuntu-virtualbox:~$ ping 192.168.15.129
PING 192.168.15.129 (192.168.15.129) 56(84) bytes of data.
64 bytes from 192.168.15.129: icmp_seq=1 ttl=62 time=2.81 ms
64 bytes from 192.168.15.129: icmp_seq=2 ttl=62 time=2.36 ms
64 bytes from 192.168.15.129: icmp_seq=3 ttl=62 time=3.10 ms
64 bytes from 192.168.15.129: icmp_seq=4 ttl=62 time=3.70 ms
64 bytes from 192.168.15.129: icmp_seq=5 ttl=62 time=2.38 ms
^C
--- 192.168.15.129 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 2.360/2.870/3.701/0.498 ms
lubuntu@lubuntu-virtualbox:~$ traceroute 192.168.15.129
traceroute to 192.168.15.129 (192.168.15.129), 64 hops max
  1   192.168.15.62  1,597ms  1,726ms  1,978ms 
  2   10.12.24.158  36,316ms  3,101ms  2,382ms 
  3   192.168.15.129  2,140ms  2,056ms  1,882ms 
lubuntu@lubuntu-virtualbox:~$