/
run show ospf route
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.
Command Syntax
run show ospf [vrf <vrf-name>] route
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
Related content
Copyright © 2025 Pica8 Inc. All Rights Reserved.