Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Verifying the OSPF configuration for R3

The following example shows the output of the show ip route command for R3. The output shows that routes to 10.0.0.1/32, 10.0.0.2/32, 10.0.20.0/24, 10.0.30.0/24, and 10.0.40.0/24 have been learned through OSPF (and are the selected routes). The 10.0.0.3/32, 10.0.50.0/24, and 10.0.60.0/24 networks are directly connected to R3. Directly connected routes are always preferred over OSPF-discovered routes.

vyatta@R3:~$ show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       L - LDP, V - RSVP-TE, I - IGP shortcut
       > - selected route, * - FIB route, p - stale info

IP Route Table for Routing-instance "default"
O E2 *> 10.0.0.1/32 [110/20] via 10.0.50.2, dp0p0p6, 00:14:26
O E2 *> 10.0.0.2/32 [110/20] via 10.0.50.2, dp0p0p6, 00:10:15
C    *> 10.0.0.3/32 is directly connected, lo
O E2 *> 10.0.20.0/24 [110/20] via 10.0.50.2, dp0p0p6, 00:14:26
O E2 *> 10.0.30.0/24 [110/20] via 10.0.50.2, dp0p0p6, 00:14:26
O E2 *> 10.0.40.0/24 [110/20] via 10.0.50.2, dp0p0p6, 00:10:15
C    *> 10.0.50.0/24 is directly connected, dp0p0p6
C    *> 10.0.60.0/24 is directly connected, dp0p0p7
C    *> 127.0.0.0/8 is directly connected, lo
vyatta@R3:~$

The following example shows the output of the show ip route ospf command for router R3. This output shows OSPF routes only.

vyatta@R3:~$ show ip route ospf
IP Route Table for Routing-instance "default"
O E2 *> 10.0.0.1/32 [110/20] via 10.0.50.2, dp0p0p6, 00:14:30
O E2 *> 10.0.0.2/32 [110/20] via 10.0.50.2, dp0p0p6, 00:10:19
O E2 *> 10.0.20.0/24 [110/20] via 10.0.50.2, dp0p0p6, 00:14:30
O E2 *> 10.0.30.0/24 [110/20] via 10.0.50.2, dp0p0p6, 00:14:30
O E2 *> 10.0.40.0/24 [110/20] via 10.0.50.2, dp0p0p6, 00:10:19
vyatta@R3:~$

The following example shows the output of the show ip ospf neighbor command for R3.

vyatta@R3:~$ show ip ospf neighbor

Total number of full neighbors: 1
OSPF process 0 routing-instance(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface
10.0.0.2          1   Full/Backup      00:00:33    10.0.50.2       dp0p0p6
vyatta@R3:~$

The following commands ping IP addresses of hosts in networks connected to R1. Pinging these hosts confirms that the OSPF configuration is working and that you can reach a remote network.

vyatta@R3:~$ ping 10.0.20.1
PING 10.0.20.1 (10.0.20.1) 56(84) bytes of data.
64 bytes from 10.0.20.1: icmp_seq=1 ttl=63 time=0.752 ms
64 bytes from 10.0.20.1: icmp_seq=2 ttl=63 time=0.595 ms
64 bytes from 10.0.20.1: icmp_seq=3 ttl=63 time=0.598 ms
^C
--- 10.0.20.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.595/0.648/0.752/0.076 ms

vyatta@R3:~$ ping 10.0.30.1
PING 10.0.30.1 (10.0.30.1) 56(84) bytes of data.
64 bytes from 10.0.30.1: icmp_seq=1 ttl=63 time=0.752 ms
64 bytes from 10.0.30.1: icmp_seq=2 ttl=63 time=0.993 ms
64 bytes from 10.0.30.1: icmp_seq=3 ttl=63 time=0.685 ms
^C
--- 10.0.30.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.685/0.810/0.993/0.132 ms