run show ospf database
To display the OSPF database, run the command run show ospf database. To display OSPF database summary, add the argument summary to the command.
If OSPF is running in multiple VRFs then add the parameter VRF to display OSPF database for the specified VRF. If multi-instance OSPF is running then add the instance ID to check the OSPF database for that instance.
Command Syntax
run show ospf [instance-id <instance-id> | vrf<vrf-name>] database [summary]
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 the OSPF database for vrf1.
admin@switch1# run show ospf vrf vrf1 database VRF Name: vrf1 OSPF Router with ID (1.1.1.1) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum Link count 1.1.1.1 1.1.1.1 328 0x80000017 0xf095 1 2.2.2.2 2.2.2.2 405 0x80000018 0xadcf 1 Net Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum 10.251.201.3 2.2.2.2 345 0x80000014 0x89d6 Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum Route 11.251.201.0 1.1.1.1 388 0x80000014 0x80ea 11.251.201.0/24 ASBR-Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum 3.3.3.3 1.1.1.1 908 0x80000010 0xfa38 Router Link States (Area 1.1.1.1) Link ID ADV Router Age Seq# CkSum Link count 1.1.1.1 1.1.1.1 1058 0x8000001a 0x0779 1 3.3.3.3 3.3.3.3 1087 0x8000001b 0x8be0 1 Net Link States (Area 1.1.1.1) Link ID ADV Router Age Seq# CkSum 11.251.201.4 3.3.3.3 1067 0x80000014 0x86cf Summary Link States (Area 1.1.1.1) Link ID ADV Router Age Seq# CkSum Route 10.251.201.0 1.1.1.1 378 0x80000014 0x8dde 10.251.201.0/24 AS External Link States Link ID ADV Router Age Seq# CkSum Route 0.0.0.0 3.3.3.3 1607 0x80000010 0x7442 E2 0.0.0.0/0 [0x0]
To display OSPF database of an OSPF instance, run the command below
admin@Xorplus# run show ospf instance-id 1 database OSPF Instance: 1 OSPF Router with ID (41.41.41.41) Router Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum Link count 41.41.41.41 41.41.41.41 119 0x80000003 0x3454 1 Summary Link States (Area 0.0.0.0) Link ID ADV Router Age Seq# CkSum Route 192.168.1.0 41.41.41.41 159 0x80000001 0x4004 192.168.1.0/24 Router Link States (Area 1.1.1.1) Link ID ADV Router Age Seq# CkSum Link count 41.41.41.41 41.41.41.41 119 0x80000003 0xd9b8 1 Summary Link States (Area 1.1.1.1) Link ID ADV Router Age Seq# CkSum Route 192.168.11.0 41.41.41.41 159 0x80000001 0xd168 192.168.11.0/24
Copyright © 2024 Pica8 Inc. All Rights Reserved.