run show ospf route
Run the command run show ospf route to display OSPF routes in the routing table.
If OSPF is running in the default VRF then no need to specify the VRF but if OSPF is running in a user defined VRF then you need to specify the VRF by using the vrf parameter.
Add the optional parameter instance-id to show routes of a specific OSPF instance in the default VRF.
Command Syntax
run show ospf [instance-id <instance-id> | vrf <vrf-name>] route
Parameters
Parameter | Description |
instance-id <instance-id> | Optional. Specifies the OSPF instance ID in the default VRF. The value is an integer that ranges from 1 to 8. |
vrf <vrf-name> | Optional. Specifies the VRF name. The value is a string. |
Example
- Â Display OSPF routes of switch1 in vrf1.
admin@switch1# run show ospf vrf vrf1 route VRF Name: vrf1 ============ OSPF network routing table ============ N 10.251.201.0/24 [10] area: 0.0.0.0 directly attached to vlan10 N 11.251.201.0/24 [10] area: 1.1.1.1 directly attached to vlan11 ============ OSPF router routing table ============= R 3.3.3.3 [10] area: 1.1.1.1, ASBR via 11.251.201.4, vlan11 ============ OSPF external routing table =========== N E2 0.0.0.0/0 [10/1] tag: 0 via 11.251.201.4, vlan11 admin@Xorplus# run show ospf instance-id 1 route OSPF Instance: 1 ============ OSPF network routing table ============ N 192.168.1.0/24 [10] area: 1.1.1.1 directly attached to vlan111 N 192.168.11.0/24 [10] area: 0.0.0.0 directly attached to vlan1111
Copyright © 2024 Pica8 Inc. All Rights Reserved.