Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Verifying the OSPF configuration for R2

The following example shows the output of the show ip route command for R2. The output shows that routes to 10.0.0.1/32, 10.0.0.3/32, 10.0.20.0/24, 10.0.30.0/24, and 10.0.60.0/24, which have been learned through OSPF processes 4 and 5, are present in the routing table and are the selected routes that are copied to the FIB. The 10.0.0.2/32, 10.0.40.0/24, and 10.0.50.0/24 networks are directly connected to R2. Directly connected routes have a preference over OSPF-discovered routes.

vyatta@R2:~$ 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    *> 10.0.0.1/32 [110/1] via 10.0.40.1, dp0p0p5, 00:36:37
C    *> 10.0.0.2/32 is directly connected, lo
O    *> 10.0.0.3/32 [110/1] via 10.0.50.3, dp0p0p6, 00:26:45
O E2 *> 10.0.20.0/24 [110/20] via 10.0.40.1, dp0p0p5, 00:36:37
O E2 *> 10.0.30.0/24 [110/20] via 10.0.40.1, dp0p0p5, 00:36:37
C    *> 10.0.40.0/24 is directly connected, dp0p0p5
C    *> 10.0.50.0/24 is directly connected, dp0p0p6
O E2 *> 10.0.60.0/24 [110/20] via 10.0.50.3, dp0p0p6, 00:26:45
C    *> 127.0.0.0/8 is directly connected, lo
vyatta@R2:~$

The following example shows the output of the show ip ospf neighbor command. The output shows that there are no OSPF neighbors in the default process (process 0).

vyatta@R2:~$ show ip ospf neighbor
Total number of full neighbors: 0
OSPF process 0 routing-instance(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface

The following example shows the output of the show ip ospf process 4 neighbor command. The output shows that there is only one OSPF neighbor for OSPF process 4.

vyatta@R2:~$ show ip ospf process 4 neighbor
Total number of full neighbors: 1
OSPF process 4 routing-instance(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface
10.0.0.1          1   Full/Backup      00:00:36    10.0.40.1       dp0p0p5

The following example shows the output of the show ip ospf process 5 neighbor command. The output shows that there is only one OSPF neighbor for the configured OSPF process 5.

vyatta@R2:~$ show ip ospf process 5 neighbor
Total number of full neighbors: 1
OSPF process 5 routing-instance(default):
Neighbor ID     Pri   State            Dead Time   Address         Interface
10.0.0.3          1   Full/DR          00:00:38    10.0.50.3       dp0p0p6

The following example shows the output of the show ip route ospf command. The output shows the OSPF routes in the routing table.

vyatta@R2:~$ show ip route ospf
IP Route Table for Routing-instance "default"
O    *> 10.0.0.1/32 [110/1] via 10.0.40.1, dp0p0p5, 00:36:45
O    *> 10.0.0.3/32 [110/1] via 10.0.50.3, dp0p0p6, 00:26:53
O E2 *> 10.0.20.0/24 [110/20] via 10.0.40.1, dp0p0p5, 00:36:45
O E2 *> 10.0.30.0/24 [110/20] via 10.0.40.1, dp0p0p5, 00:36:45
O E2 *> 10.0.60.0/24 [110/20] via 10.0.50.3, dp0p0p6, 00:26:53

The following example shows the output of the show ip ospf route command. The output shows that no routes have been learned by the default OSPF process (process 0).

vyatta@R2:~$ show ip ospf route
        vyatta@R2:~$

The following example shows the output of the show ip ospf process 4 route command. The output shows the routes that have been learned by OSPF process 4.

vyatta@R2:~$ show ip ospf process 4 route

OSPF process 4 routing-instance: default
Codes: C - connected, D - Discard, 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

O  10.0.0.1/32 [1] via 10.0.40.1, dp0p0p5, Area 0.0.0.0
C  10.0.0.2/32 [0] is directly connected, lo, Area 0.0.0.0
E2 10.0.20.0/24 [1/20] via 10.0.40.1, dp0p0p5
E2 10.0.30.0/24 [1/20] via 10.0.40.1, dp0p0p5
C  10.0.40.0/24 [1] is directly connected, dp0p0p5, Area 0.0.0.0

The following example shows the output of the show ip ospf process 5 route command. The output shows the routes that have been learned by OSPF process 5.

vyatta@R2:~$ show ip ospf process 5 route
OSPF process 5 routing-instance: default
Codes: C - connected, D - Discard, 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

O  10.0.0.3/32 [1] via 10.0.50.3, dp0p0p6, Area 0.0.0.0
C  10.0.50.0/24 [1] is directly connected, dp0p0p6, Area 0.0.0.0
E2 10.0.60.0/24 [1/20] via 10.0.50.3, dp0p0p6