To display the OSPF-related information, use the show ip ospf command in Privileged EXEC Mode.
Parameter | Type | Description |
---|---|---|
area-id |
Enter to configure the area associated with the OSPF address range to be displayed. It will be specified as an IP address | |
database |
Enter to display OSPF Database summary for the LSA type. | |
asbr-summary |
Enter to display information only about the Autonomous System Boundary Router (ASBR) summary LSAs. | |
external |
Enter to display information only about the external LSAs. | |
network |
Enter to display information only about the network LSAs. | |
nssa-external |
Enter to display information only about the external LSAs. | |
opaque-area |
Enter to display information only about the network LSAs. | |
opaque-as |
Enter to display information only about the external LSAs. | |
opaque-as |
Enter to display information only about the network LSAs. | |
router |
Enter to display information only about the router LSAs. | |
summary |
Enter to display information only about the summary LSAs. | |
link-state-id |
Enter to display the portion of the Internet environment that is being described by the advertisement. The value entered depends on the type of the LSA. The value must be entered in the form of an IP address. | |
adv-router |
Enter to display all specified router link-state advertisements (LSAs). If no IP address is included, the information is about the local router itself. | |
<ip-address> |
Enter to display only information only about this Ip Address. | |
cybsec | Enter to display the OSPF neighborship or database from the cyber security space, or the route learnt by the OSPF which runs in the cyber security space. | |
database-summary |
Enter to display the total number of each type of LSA for each area there are in the database, and the total number of LSA type. | |
self-originate |
Enter to display only self-originated LSAs (from the local router). | |
adv-router |
Enter to display all specified router link-state advertisements (LSAs). If no IP address is included, the information is about the local router itself. | |
<ip-address> |
Enter to display only information only about this Ip Address. | |
border-routers |
Enter to display the internal OSPF routing table entries to an Area Border Router and Autonomous System Boundary Router. | |
interface |
Enter the general information of OSPF routing processes for the specified interface. | |
<vlan-id/vfi-id> |
Enter to specify the range of the specified VLAN ID to be displayed. This is a unique value that represents the specific VLAN created and activated. The range (1-4094) is for VLAN ID and the range (4096 - 65535) is for VFI. Note that if router ports are used then correspondingly the last set of vlans will not be available. For example, if router ports is 24, then max VLAN number will be 4070 only. | |
switch |
Enter to configure name of the switch to be displayed. | |
<switch-name> |
Enter a name for the switch to be displayed. | |
Gigabitethernet <interface-id> |
Enter to select Gigabit Ethernet interface to be displayed. Gigabit Ethernet interface is a version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
Extreme-Ethernet <interface-id> |
Enter to select Extreme Ethernet interface to be displayed. Extreme Ethernet interface is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
<IP-interface-type> |
Enter to display the IP ARP information for the specified L3 Pseudo wire interface in the system. | |
<IP-interface-number> |
Enter to display the IP ARP information for the specified
L3 Pseudo wire interface identifier. This is a unique value that
represents the specific interface. This value ranges from 1 to 65535
for Pseudowire interface. Note:
Maximum number of Pseudowire interfaces supported in the system is 100. |
|
ppp |
Enter to display the PPP related information. | |
<1-128> |
Enter to display the PPP interface ID. | |
neighbor |
Enter to display the OSPF neighbor information list and the neighbor data structure. | |
<vlan-id/vfi-id> |
Enter to specify the range of the specified VLAN ID to be displayed. This is a unique value that represents the specific VLAN created and activated. The range (1-4094) is for VLAN ID and the range (4096 - 65535) is for VFI. Note that if router ports are used then correspondingly the last set of vlans will not be available. For example, if router ports is 24, then max VLAN number will be 4070 only. | |
switch |
Enter to configure name of the switch to be displayed. | |
<switch-name> |
Enter a name for the switch to be displayed. | |
Gigabitethernet <interface-id> |
Enter to select Gigabit Ethernet interface to be displayed. Gigabit Ethernet interface is a version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
Extreme-Ethernet <interface-id> |
Enter to select Extreme Ethernet interface to be displayed. Extreme Ethernet interface is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
<IP-interface-type> |
Enter to display the IP ARP information for the specified L3 Pseudo wire interface in the system. | |
<IP-interface-number> |
Enter to display the IP ARP information for the specified
L3 Pseudo wire interface identifier. This is a unique value that
represents the specific interface. This value ranges from 1 to 65535
for Pseudowire interface. Note:
Maximum number of Pseudowire interfaces supported in the system is 100. |
|
Neighbor ID |
Enter to display OSPF request LSAs for the specified neighbor router ID. | |
detail |
Enter to display the OSPF Link state request list advertisements (LSAs) requested by a router and debugging OSPF routing operations. | |
request-list |
Enter to display the OSPF Link state request list advertisements (LSAs) requested by a router and debugging OSPF routing operations. | |
<neighbor-id> |
Enter to display OSPF request LSAs for the specified neighbor router ID. | |
<vlan-id/vfi-id> |
Enter to specify the range of the specified VLAN ID to be displayed. This is a unique value that represents the specific VLAN created and activated. The range (1-4094) is for VLAN ID and the range (4096 - 65535) is for VFI. Note that if router ports are used then correspondingly the last set of vlans will not be available. For example, if router ports is 24, then max VLAN number will be 4070 only | |
switch |
Enter to configure name of the switch to be displayed. | |
<switch-name> |
Enter a name for the switch to be displayed. | |
Gigabitethernet <interface-id> |
Enter to select Gigabit Ethernet interface to be displayed. Gigabit Ethernet interface is a version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
Extreme-Ethernet <interface-id> |
Enter to select Extreme Ethernet interface to be displayed. Extreme Ethernet interface is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
<IP-interface-type> |
Enter to display the IP ARP information for the specified L3 Pseudo wire interface in the system. | |
<IP-interface-number> |
Enter to display the IP ARP information for the specified
L3 Pseudo wire interface identifier. This is a unique value that
represents the specific interface. This value ranges from 1 to 65535
for Pseudowire interface. Note:
Maximum number of Pseudowire interfaces supported in the system is 100. |
|
retransmission-list |
Enter to display list of all OSPF Link state retransmission list information waiting to be resent. This value is also used while retransmitting database description and link-state request packets. | |
Neighbor ID |
Enter to display OSPF request LSAs for the specified neighbor router ID. | |
<vlan-id/vfi-id> |
Enter to specify the range of the specified VLAN ID to be displayed. This is a unique value that represents the specific VLAN created and activated. The range (1-4094) is for VLAN ID and the range (4096 - 65535) is for VFI. Note that if router ports are used then correspondingly the last set of vlans will not be available. For example, if router ports is 24, then max VLAN number will be 4070 only. | |
switch |
Enter to configure name of the switch to be displayed. | |
<switch-name> |
Enter a name for the switch to be displayed. | |
Gigabitethernet <interface-id> |
Enter to select Gigabit Ethernet interface to be displayed. Gigabit Ethernet interface is a version of Ethernet that supports data transfer up to 10 Gigabits per second. This Ethernet supports only full duplex links. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
Extreme-Ethernet <interface-id> |
Enter to select Extreme Ethernet interface to be displayed. Extreme Ethernet interface is a version of LAN standard architecture that supports data transfer up to 1 Gigabit per second. Specify the interface ID with a format <0>/<1-28>—slot number/port number. | |
<IP-interface-type> |
Enter to display the IP ARP information for the specified L3 Pseudo wire interface in the system. | |
<IP-interface-number> |
Enter to display the IP ARP information for the specified
L3 Pseudo wire interface identifier. This is a unique value that
represents the specific interface. This value ranges from 1 to 65535
for Pseudowire interface. Note:
Maximum number of Pseudowire interfaces supported in the system is 100. |
|
route |
Enter to display the routes learnt by OSPF process. | |
virtual-links |
Enter to display the parameters and the current state of OSPF virtual links. | |
summary |
Enter to display OSPF summary-address redistribution information configured under an OSPF process. | |
area-range |
Enter to display the area associated with the OSPF address range. | |
summary-address |
Enter to display the aggregate addresses for OSPF. |
Privileged EXEC Mode
iS5Comm # show ip ospf
OSPF Router with ID (0.0.0.0)
Supports only single TOS(TOS0) route O
paque LSA Support : Disabled
ABR Type supported is Standard ABR
Autonomous System Boundary Router : Disabled
P-Bit setting for the default Type-7 LSA that needs to be generated by the ASBR(which is not ABR) is disabled
Non-Stop Forwarding disabled
Restart-interval limit: 120
Grace LSA Retransmission Count: 2
Helper Grace LSA ACK :Required
Restart Reason is:
Unknown
Helper is Giving Support for:
Unknown
Software Restart
Software Reload/Upgrade
Switch To Redundant
Helper Grace Time Limit: 0
Strict LSA checking State Is: Disabled
Route calculation staggering is enabled
Route calculation staggering interval is -1718520588 milliseconds Redistributing External Routes is disabled
Default passive-interface Disabled
Rfc1583 compatibility is enabled
Administrative Distance is 110
Number of Areas in this router is 0
Default information originate is disabled
BFD is disabled
show ip ospf database external
OSPF Router with ID (10.0.0.1)
Summary Link States (Area 33.0.0.12) ---------------------------------------
LS age : 300
Options : (No ToS Capability, DC)
LS Type : Summary Links(Network)
Link State ID : 10.0.0.0
Advertising Router : 10.0.0.1
LS Seq Number : 0x80000002
Checksum : 0xae77
Length : 28
iS5Comm# show ip ospf database database-summary
OSPF Router with ID (12.0.0.1)
Router Link States (Area 0.0.0.0) --------------------------------------
Link ID ADV Router Age Seq# Checksum Link count------- ---------- --- ---- -------- -----
12.0.0.1 12.0.0.1 48 0x80000002 0xd129 112.0.0.2 12.0.0.2 50 0x80000002 0xcf28 1 Network Link States (Area 0.0.0.0) ---------------------------------------
Link ID ADV Router Age Seq# Checksum
------- ---------- --- ---- ------12.0.0.2 12.0.0.2 49 0x80000001 0x629f
OSPF Router with ID (14.0.0.1)
iS5Comm# show ip ospf border-routers
OSPF Process Border Router Information
Destination TOS Type Next Hop Cost Rt. Type Area
----------- --- ---- ------- ---- ------- ----
12.0.0.2 0 ASBR 12.0.0.2 1 intra Area 0.0.0.0
iS5Comm# show ip ospf interface vlan 1
Vlan1 is line protocol is up
Internet Address 13.0.0.1, Mask 255.0.0.0, Area 0.0.0.0
AS 1, Router ID 12.0.0.2, Network Type BROADCAST, Cost 1
demand circuit is disabled
Transmit Delay is 1 sec, State 4, Priority 1
Designated Router ID 12.0.0.2, Interface address 13.0.0.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 1 sec
Neighbor Count is 0, Adjacent neighbor count is 0
sha-1 authentication enabled
sha-1 authentication key is configured
Youngest key id is 1
Key Start Accept Time is 26-Jun-2013,02:50
Key Start Generate Time is 26-Jun-2013,02:50
Key Stop Generate Time is 06-Feb-2136,06:28
Key Stop Accept Time is 06-Feb-2136,06:28
Simple Authentication Key is not Configured
Bfd Enable
iS5Comm# show ip ospf neighbor
Neighbor-ID Pri State DeadTime Address
Interface Helper HelperAge HelperER Bfd
----------- --- ----- -------- -------
--------- --------- ------------ --------- -----
12.0.0.1 1 FULL/BACKUP 30 20.0.0.1
vlan2 Not Helping 0 None Enabled
iS5Comm# show ip ospf request-list vlan 1
OSPF Router with ID (20.0.0.2)
Neighbor 10.0.0.1, interface vlan1 address 40.0.0.1
Type LS-ID ADV-RTR Seq No Age Checksum
---- ---- ------- ----- --- --------
Neighbor 20.0.0.2, interface vlan1 address 40.0.0.2
Type LS-ID ADV-RTR Seq No Age Checksum
---- ---- ------- ----- --- --------
iS5Comm# show ip ospf retransmission-list vlan 1
OSPF Router with ID (20.0.0.2)
Neighbor 10.0.0.1, interface vlan1 address 10.0.0.2
Queue length 3
Type LS-ID ADV-RTR Seq No Age Checksum
1 20.0.0.2 20.0.0.2 0x80000006 0 0x522f
iS5Comm# show ip ospf route
OSPF Routing Table
Dest/Mask TOS Next Hop/Interface Cost Rt. Type Area
--------- --- -------/--------- ---- -------
12.0.0.0/255.0.0.0 0 0.0.0.0/vlan1 1 Intra Area 0.0.0.0
20.0.0.0/255.0.0.0 0 12.0.0.2/vlan1 10 Type2Ext 0.0.0.0
iS5Comm# show ip ospf virtual-links
Virtual Link to router 10.0.0.1, Interface State is DOWN
Transit Area 33.0.0.12
Transmit Delay is 1 sec, Neighbor State DOWN
Timer intervals configured, Hello 10, Dead 60, Retransmit 5
iS5Comm# show ip ospf redundancy
Redundancy Summary ------------------ Hot standby admin status : Enabled Hot standby state : Active and Standby Up Hot standby bulk update status : Completed Number of hello PDUs synced : 0 Number of LSAs synced : 0
iS5Comm# show ip ospf area-range
Display of Summary addresses for Type3 and Translated Type5
Summary Address
----------------------------------------------
Network Mask LSA Type Area Effect Tag
------- ------- ---- ------ ---
10.0.0.0 255.0.0.0 Summary 33.0.0.12 Advertise 1074636208
iS5Comm# show ip ospf neighbor cybsec
Neighbor-ID Pri State DeadTime Address Interface Helper HelperAge HelperER Bfd
----------- --- ----- -------- ------- --------- ---------
------------------- -----
iS5Comm# show ip ospf database cybsec
OSPF Router with ID (11.11.11.11)
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 562 0x8000000b 0xae39 1
11.11.11.11 11.11.11.11 561 0x80000003 0x565f 1
Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
192.168.50.1 1.1.1.1 562 0x80000001 0xd88f
ospfd#
iS5Comm# show ip ospf route cybsec
EXEC commands :
show ip ospf [vrf <name>] route [cybsec]
# show ip ospf route cybsec
Dest/Mask NextHop/Interface Cost Area
--------- -------/--------- ---- ----
192.168.50.0/24 0.0.0.0/vlan50 10 0.0.0.0