Syntax:
General output for the show ip ospf command
HP Switch(config)# show ip ospf general OSPF General Status OSPF protocol : enabled Router ID : 17.255.134.231 RFC 1583 compatability : compatible Intra-area distance : 110 Inter-area distance : 110 AS-external distance : 110 Default import metric : 10 Default import metric type : external type 2 Area Border : no AS Border : no External LSA Count : 0 External LSA Checksum Sum : 0 Originate New LSA Count : 0 Receive New LSA Count : 0 Graceful Restart Interval : 120 Graceful Restart Strict-Lsa Checking : Enabled Nonstop forwarding : Disabled Log Neighbor Adjacency Changes : Enabled SPF Throttling Start Interval : 3 Wait Interval : 3 Maximum Wait Time : 500 Current Wait Interval : 3
The show running-config
command also displays the SPF configuration information. The configured parameters for SPF are highlighted in bold below.
HP Switch(config)# show running-config
Running configuration:
; J8693A Configuration Editor; Created on release #K.15.07.0000x
; Ver #01:2f:2e
hostname "HP Switch"
module 1 type J86yyA
module 2 type J86xxA
vlan 1
name "DEFAULT_VLAN"
untagged 1-4,7-48,A1-A4
ipv6 address fe80::2 link-local
ip address dhcp-bootp
ipv6 enable
no untagged 5-6
exit
power-over-ethernet pre-std-detect
router ospf
spf-throttle start-interval 3 wait-interval 3 max-wait-time 500
exit
snmp-server community "public" unrestricted
The following fields are shown in the OSPF general status display:
CLI display of OSPF general information
Field | Content |
---|---|
OSPF protocol | Whether OSPF is currently enabled. |
Router ID | Router ID that this routing switch is currently using to identify itself. |
RFC 1583 compatibility | Whether the routing switch is currently using RFC 1583 (compatible) or RFC 2328 (non-compatible rules for calculating external routes. |
Intra-area distance | Administrative distance for routes within OSPF areas. |
Inter-area distance | Administrative distance for routes between areas within the same OSPF domain. |
AS-external | Administrative distance for routes between the OSPF domain and other, Exterior Gateway Protocol domains. |
Default import metric | Default metric that will be used for any routes redistributed into OSPF by this routing switch |
Default import metric type | Metric type (type 1 or type 2) that will be used for any routes redistributed into OSPF by this routing switch. |
Area Border | Whether this routing switch is currently acting as an area border router. |
AS Border | Whether this routing switch is currently acting as an AS border router (redistributing routes.) |
External LSA Count | Total number of external LSAs currently in the routing switch's link state database. |
External LSA Checksum Sum | Sum of the checksums of all external LSAs currently in the routing switch's link state database (quick check for whether database is in sync with other routers in the routing domain.) |
Originate New LSA Count | Count of the number of times this switch has originated a new LSA. |
Receive New LSA Count | Count of the number of times this switch has received a new LSA. |
Graceful Restart Interval | Maximum seconds between graceful restarts. |
Graceful Restart Strict-Lsa Checking | Whether LSA checking is enabled or disabled (terminates graceful restart when a change to an LSA would cause flooding during the restart.) |
Nonstop forwarding | Whether nonstop forwarding (NSF) is enabled or disabled. |
Log Neighbor Adjacency Changes | Whether changes in adjacent neighbors are logged. |
Syntax:
The
[ospf-area-id]
parameter shows information for the specified area. If no area is specified, information for all the OSPF areas configured is displayed.The OSPF area display shows the information found in CLI display of OSPF area information:
CLI display of OSPF area information
Field Content Area ID Identifier for this area. Type Area type, which can be either "normal" or "stub". Cost Metric for the default route that the routing switch will inject into a stub area if the routing switch is an ABR for the area. This value applies only to stub areas. SPFR Number of times the routing switch has run the shortest path first route calculation for this area. ABR Number of area border routers in this area. ASBR Number of autonomous system border routers in this area. LSA Number of LSAs in the link state database for this area. Chksum(Hex) Sum of the checksums of all LSAs currently in the area's link state database. This value can be compared to the value for other routers in the area to verify database synchronization.
Example
show ip ospf area output
HP Switch(config)# show ip ospf area OSPF Area Information Area ID Type Cost SPFR ABR ASBR LSA Checksum --------------- ------ ----- ------ ---- ---- ----- ---------- 0.0.0.0 normal 0 1 0 0 1 0x0000781f 192.147.60.0 normal 0 1 0 0 1 0x0000fee6 192.147.80.0 stub 1 1 0 0 2 0x000181cd
Syntax:
Output for the show ip ospf external-link-state command
HP Switch# show ip ospf external-link-state OSPF External LSAs Link State ID Router ID Age Sequence # Checksum --------------- --------------- ---- ----------- ---------- 10.3.7.0 10.0.8.37 232 0x80000005 0x0000d99f 10.3.8.0 10.0.8.37 232 0x80000005 0x0000cea9 10.3.9.0 10.0.8.37 232 0x80000005 0x0000c3b3 10.3.10.0 10.0.8.37 232 0x80000005 0x0000b8bd 10.3.33.0 10.0.8.36 1098 0x800009cd 0x0000b9dd
CLI display of OSPF external link state information shows the information the OSPF external link state displays:
CLI display of OSPF external link state information
Field | Content |
---|---|
Link State ID | LSA ID for this LSA. Normally, the destination of the external route, but may have some "host" bits set. |
Router ID | Router ID of the router that originated this external LSA. |
Age | Current age (in seconds) of this LSA. |
Sequence # | Sequence number of the current instance of this LSA. |
Chksum(Hex) | LSA checksum value. |
Syntax:
Syntax:
Displays the hexadecimal data in the specified LSA packet, the actual contents of the LSAs. Can also be filtered by using the
link-state-id
,router-id
, orsequence-number
options.
Output for show ip ospf external-link-state advertise
HP Switch# show ip ospf external-link-state advertise OSPF External LSAs Advertisements ------------------------------------------------------------------------ 000302050a0307000a00082580000005d99f0024ffffff008000000a0000000000000000 000302050a0308000a00082580000005cea90024ffffff008000000a0000000000000000 000302050a0309000a00082580000005c3b30024ffffff008000000a0000000000000000 000302050a030a000a00082580000005b8bd0024ffffff008000000a0000000000000000 000002050a0321000a000824800009cdb9dd0024ffffff00800000010000000000000000
Syntax:
Displays the OSPF interface information for the specified IP address.
Displays the OSPF interface information for the specified IP address.
CLI display of OSPF interface information shows the information displayed for the OSPF interface.
CLI display of OSPF interface information
Field Content IP Address The local IP address for this interface.
Status enabled or disabled—Whether OSPF is currently enabled on this interface. Area ID The ID of the area that this interface is in.
State The current state of the interface. The value will be one of the following:
DOWN
The underlying VLAN is down.
WAIT, RCC
The underlying VLAN is up, but we are waiting to hear hellos from other routers on this interface before we run designated router election.
Pt-to-Pt
When network interface is point-to-point, DR, BDR and Priority fields are ‘n/a’ and State and Type should be ‘point-to-point’.
.DR
This switch is the designated router for this interface.
BDR
This switch is the backup designated router for this interface.
DROTHER
This router is not the designated router or backup designated router for this interface.
Auth-type none
orsimple
— Will benone
if no authentication key is configured,simple
if an authentication key is configured. All routers running OSPF on the same link must be using the same authentication type and key.Chain The name of the key chain configured for the specified interface. (See the access security guide for your switch.) Cost The OSPF's metric for this interface.
Pri This routing switch's priority on this interface for use in the designated router election algorithm.
Passive Whether the interface sends link-state advertisements (LSAs) to all other routers in the same Autonomous System (AS.)
Example
Output for show ip ospf interface
HP Switch# show ip ospf interface OSPF Interface Status IP Address Status Area ID State Auth-type Cost Pri Passive --------------- -------- -------------- ------- --------- ------ --- ------- 10.3.18.36 enabled 10.3.16.0 DOWN none 1 1 no 10.3.53.36 enabled 10.3.48.0 BDR none 1 1 no
Syntax:
To display OSPF interface information for a specific VLAN or IP address, enter the
show ip ospf interface
command at any CLI level.ip-addr
CLI display of OSPF interface information—VLAN or IP address
Field Content Type Will always be BCAST for interfaces on this routing switch. Point-to-point or NBMA (frame relay or ATM) type interfaces are not supported on the switches.
Transit Delay Configured transit delay for this interface.
Retrans Interval Configured retransmit interval for this interface.
Hello Interval Configured hello interval for this interface.
Rtr Dead Interval Configured router dead interval for this interface.
Network Type Set the network type for this interface, point-to-point or broadcast.
Designated Router IP address of the router that has been elected DR on this interface.
Backup Desig. Rtr IP address of the router that has been elected BDR on this interface.
Events Number of times the interface state has changed.
Passive Whether the interface sends LSAs to all other routers in the same Autonomous System (AS.) Neighbors Number of neighbors. If you use
show ip ospf interface vlan
, the output is the same as shown in the previous table, except for the IP address on the indicated VLAN.vlan-id
Example
show ip ospf interface ip-addr output
HP Switch(ospf)# sho ip ospf int 10.10.50.1 OSPF Interface Status for 10.3.1836 IP Address : 10.3.18.36 Status : enabled Area ID : 10.3.16.0 State : BDR Auth-type : none Cost : 1 Chain : Type : BCAST Priority : 1 Transit Delay : 1 Retrans Interval : 5 Hello Interval : 10 Rtr Dead Interval : 40 Designated Router : 10.3.18.34 Events : 3 Backup Desig. Rtr : 10.3.18.36 Backup Desig. Rtr : 10.3.18.36
show ip ospf interface ip-addr backbone output
HP-E3500yl-24G(vlan-1)# show ip ospf interface 10.2.1.2 OSPF Interface Status for 10.2.1.2 IP Address : 10.2.1.2 Status : enabled Area ID : backbone State : Point-to-point Auth-type : none Cost : 1 Chain : Type : Point-to-point Priority : n/a Transit Delay : 1 Retrans Interval : 5 Hello Interval : 10 Rtr Dead Interval : 40 Designated Router : n/a Events : 0 Backup Desig. Rtr : n/a Passive : no Neighbors : 1
show ip ospf interface ip-addr neighbor output
HP-E3500yl-24G(vlan-1)# show ip ospf neighbor OSPF Neighbor Information Rxmt Helper Router ID Pri IP Address NbIfState State QLen Events Status --------------- --- --------------- --------- -------- ----- ------ ------ 1.1.1.1 n/a 10.2.1.1 n/a FULL 0 6 None
show ip ospf neighbor detail
HP-E5406zl(vlan-1)# show ip ospf neighbor detail OSPF Neighbor Information for neighbor 10.2.1.2 IP Address : 10.2.1.2 Router ID : 2.2.2.2 State : FULL Interface : vlan-1 Designated Router : n/a Area : backbone Backup Designated Router : n/a Priority : n/a Retransmit Queue Length : 0 Options : 0x42 Neighbor Uptime : 0h:0m:14s Events : 7 Dead Timer Expires : 35 sec
Displays the statistics on OSPF packets sent and received on the interfaces in VLANs and/or subnets on an OSPF-enabled routing switch, including the number of errors that occurred during packet transmission. Enter the command at any CLI level.
Syntax:
Displaying OSPF statistics for VLAN traffic
HP Switch(ospf)# show ip ospf statistics vlan 1 OSPF statistics for VLAN 1 OSPF Interface Status for 10.0.0.2 Tx Hello Packet Count : 16 Rx Hello Packet Count : 16 Tx DD Packet Count : 2 Rx DD Packet Count : 4 Tx LSR Packet Count : 1 Rx LSR Packet Count : 1 Tx LSU Packet Count : 5 Rx LSU Packet Count : 2 Tx LSA Packet Count : 2 Rx LSA Packet Count : 3 OSPF Errors: 26
CLI display of OSPF statistics for VLAN traffic
Per-VLAN OSPF statistics | |
---|---|
Field | Content |
OSPF statistics for VLAN vlan-id |
OSPF statistics displayed for the specified VLAN number. |
OSPF Interface Status for ip-address |
IP address of a subnet on the VLAN. |
Tx/Rx Hello Packet Count |
Number of OSPF hello packets sent/received on each subnet interface. |
Tx/Rx DD Packet Count |
Number of link-state database description packets sent/received on each subnet interface. |
Tx/Rx LSR Packet Count |
Number of link-state request packets sent/received on each subnet interface. |
Tx/Rx LSU Packet Count |
Number of link-state update packets sent/received on each subnet interface. |
Tx/Rx LSA Packet Count |
Number of link-state acknowledgement packets sent/received on each subnet interface. |
OSPF errors |
Number of errors detected on the VLAN subnet during OSPF packet exchange. |
Displaying OSPF statistics for subnet traffic
HP Switch(ospf)# show ip ospf statistics 10.0.0.2 OSPF Interface Statistics IP Address Total Tx Total Rx Total Errors --------------- --------------- --------------- --------------- 10.0.0.2 15 15 15
CLI display of OSPF statistics for VLAN subnet traffic
Per-subnet OSPF statistics | |
---|---|
Field | Content |
IP Address |
IP address of subnet. |
Total Tx |
Total number of OSPF packets sent on each subnet interface. |
Total Rx |
Total number of OSPF packets received on each subnet interface. |
Total Errors |
Total number of errors in OSPF packet transmission on each subnet interface. |
Syntax:
To display OSPF link state information, enter
show ip ospf link-state
at any CLI level.
Example
When you enter this command, the switch displays an output similar to the following for all configured areas:
show ip ospf link-state output
OSPF Link State Database for Area 0.0.0.0 Advertising LSA Type Link State ID Router ID Age Sequence # Checksum ---------- --------------- --------------- ---- ----------- ---------- Router 10.0.8.32 10.0.8.32 65 0x80000281 0x0000a7b6 Router 10.0.8.33 10.0.8.33 1638 0x80000005 0x0000a7c8 Network 10.3.2.37 10.0.8.37 1695 0x80000006 0x00000443 Summary 10.3.16.0 10.0.8.33 1638 0x80000007 0x0000c242 Summary 10.3.16.0 10.0.8.35 1316 0x80000008 0x0000aa58 Summary 10.3.17.0 10.0.8.33 1638 0x8000027b 0x0000becf Summary 10.3.17.0 10.0.8.35 1316 0x80000008 0x0000a957 AsbSummary 10.0.8.36 10.0.8.33 1412 0x80000002 0x00002cba OSPF Link State Database for Area 10.3.16.0 Advertising LSA Type Link State ID Router ID Age Sequence # Checksum ---------- --------------- --------------- ---- ----------- ---------- Router 10.0.8.33 10.0.8.33 1727 0x8000027e 0x0000d53c Router 10.0.8.34 10.0.8.34 1420 0x80000283 0x0000de4f Network 10.3.16.34 10.0.8.34 1735 0x80000005 0x00001465
The OSPF link-state display shows the following contents of the LSA database; one table for each area:
CLI display of OSPF link-state information
Field | Content |
---|---|
LSA Type | The possible types are: |
|
|
Link State ID | LSA ID for this LSA. The meaning depends on the LSA type. |
Advertised Router ID | Router ID of the router that originated this LSA. |
Age | Current age (in seconds) of this LSA. |
Sequence # | Sequence number of the current instance of this LSA. |
Chksum(Hex) | LSA checksum value. |
Output for show ip ospf link-state advertise
HP Switch(config)# show ip ospf link-state advertise OSPF Link State Database for Area 0.0.0.0 Advertisements ------------------------------------------------------------------------ 000202010a0008200a00082080000281a7b60054000000050a030e00ffffff0003000001... 000202010a0008210a00082180000006a5c90024010000010a0008230a03112104000002 000102010a0008230a00082380000015755d006c010000070a030600ffffff0003000001... 000202020a0302250a0008258000000702440024ffffff000a0008250a0008230a000820 000202030a0310000a00082180000008c043001cffffff0000000002 000102030a0310000a00082380000009a859001cffffff0000000001 000002030a0310000a00082480000009ac53001cffffff0000000002 000202040a0008240a000821800000032abb001c000000000000000b 000102040a0008240a00082380000004c12a001c0000000000000002 OSPF Link State Database for Area 10.3.16.0 Advertisements ------------------------------------------------------------------------ 000202010a0008210a0008218000027fd33d0054050000050a031900ffffff0003000001... 000102010a0008220a00082280000284dc500060000000060a031500ffffff0003000001... 000102020a0311220a0008228000027bf9080020ffffff000a0008220a000821
Output for show IP OSPF link-state detail for router
This is an example of show ip ospf link-state detail
output for a router.
HP Switch(config)# show ip ospf link-state detail OSPF Link State Database for Area 0.0.0.0 LSA Age : 35 LSA Type : 0x1 (Router) Advertising Router : 2.2.2.3 Link State ID : 2.2.2.3 LSA Sequence : 0x80000007 LSA Checksum : 0xfd09 LSA Option Bits : E=1 MC=0 N/P=0 EA=0 DC=1 Router Capability Bits : B=0 E=1 V=0 Number of links : 1 Interface Type : 2 (Connected to Transit Network) LSA Metric : 1 Link Data : 2.2.2.3 LSA ID : 2.2.2.3 Number of TOS Metrics : 0
Output for show IP OSPF link-state detail for a network
This is an example of show ip ospf link-state detail
summary for LSA detailed output.
HP Switch(config)# show ip ospf link-state detail OSPF Link State Database for Area 0.0.0.0 LSA Age : 19 LSA Type : 0x2 (Network) Advertising Router : 16.93.223.84 Link State ID : 192.22.23.24 LSA Sequence : 0x80000001 LSA Checksum : 0x323e LSA Option Bits : E=1 MC=0 N/P=0 EA=0 DC=1 Network Mask : 255.255.255.0 Attached Router ID : 2.2.2.3 Attached Router ID : 192.93.226.105
Output for show IP OSPF link-state detail for summary of LSA detailed output
This is an example of show ip ospf link-state detail
summary of LSA for AS Boundary Router.
HP Switch(config)# show ip ospf link-state detail OSPF Link State Database for Area 0.0.0.0 LSA Age : 58 LSA Type : 0x4 (AS Boundary) Advertising Router : 16.93.226.105 Link State ID : 2.2.2.3 LSA Sequence : 0x80000001 LSA Checksum : 0x4bc4 LSA Option Bits : E=1 MC=0 N/P=0 EA=0 DC=1 LSA Metric : 1
Output for show IP OSPF link-state detail for AS external LSA
This example shows show ip ospf link-state detail
for an AS external LSA.
HP Switch(config)# show ip ospf link-state detail LSA Age : 971 LSA Type : 0x5 (AS External) Advertising Router : 2.2.2.3 Link State ID : 55.5.5.0 LSA Sequence : 0x80000001 LSA Checksum : 0xe17c LSA Option Bits : E=1 MC=0 N/P=0 EA=0 DC=0 LSA Metric : 10 Bit E : 0 Forwarding Address : 0.0.0.0
Output for show IP OSPF link-state detail for summary for NSSA
This example shows show ip ospf link-state detail
summary for NSSA.
HP Switch(config)# show ip ospf link-state detail LSA Age : 86 LSA Type : 0x7 (NSSA) Advertising Router : 16.93.226.105 Link State ID : 16.93.49.0 LSA Sequence : 0x80000003 LSA Checksum : 0x6c03 LSA Option Bits : E=1 MC=0 N/P=0 EA=0 DC=1 LSA Metric : 10 Network Mask : 255.255.255.0 Bit E : 0 (External Metric Type1) Forwarding Address : 0.0.0.0 External Route Tag : 0
Syntax:
To display OSPF information for all neighbors, enter
show ip ospf neighbor
at any CLI level.
[
can be specified to retrieve detailed information for the specific neighbor only. This is the IP address of the neighbor, not the router ID.ip-addr
]
Output for the show ip ospf neighbor command
OSPF Neighbor Information Rxmt Helper Router ID Pri IP Address NbIfState State QLen Events Status --------------- --- -------------- --------- --------- ----- ------ ------ 10.0.8.34 1 10.3.18.34 DR FULL 0 6 none 10.3.53.38 1 10.3.53.38 DR FULL 0 6 none
This display shows the following information.
CLI display of OSPF neighbor information
Field | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Router ID | The router ID of the neighbor. | ||||||||||||
Pri | The OSPF priority of the neighbor. The priority is used during election of the DR and BDR. | ||||||||||||
IP Address | The IP address of this routing switch's interface with the neighbor. | ||||||||||||
NbIfState |
The neighbor interface state. The possible values are:
|
||||||||||||
State |
The state of the conversation (the adjacency) between your routing switch and the neighbor. The possible values are:
|
||||||||||||
Rxmt QLen | Remote transmit queue length—The number of LSAs that the routing switch has sent to this neighbor and for which the routing switch is awaiting acknowledgements. | ||||||||||||
Events | The number of times the neighbor's state has changed. | ||||||||||||
Helper Status | Whether the neighboring router is helping the OSPF router. The possible values are:
|
||||||||||||
Helper Age | Amount of time the neighboring router is helping. This time can range from 1 to 1800 seconds with a default time of 120 seconds. Helper Age is 0 when the router is not helping. |
As described under Enabling route redistribution, you can configure the routing switch to redistribute connected, static, and RIP routes into OSPF. When you redistribute a route into OSPF, the routing switch can use OSPF to advertise the route to its OSPF neighbors.
To display the status of the OSPF redistribution, enter show ip ospf redistribute
at any CLI context level:
Example of output for show ip ospf redistribute
HP Switch# show ip ospf redistribute OSPF redistributing Route type Status ---------- -------- connected enabled static enabled rip enabled
The display shows whether redistribution of each of the route types, connected, static, and RIP is enabled.
As described under Configuring external route redistribution in an OSPF domain (optional), you can configure the redistribution filters on the routing switch to restrict route redistribution by OSPF.
To display the status of the OSPF redistribution filters, enter show ip ospf restrict
at any CLI context level.
If virtual links are configured on the routing switch, you can display OSPF virtual neighbor information.
Syntax:
Output for the show ip ospf virtual-neighbor command
OSPF Virtual Interface Neighbor Information Router ID Area ID State IP Address Events --------------- --------------- -------- --------------- -------- 10.0.8.33 10.3.16.0 FULL 10.3.17.33 5 10.0.8.36 10.3.16.0 FULL 10.3.18.36 5
This display shows the following information.
CLI display of OSPF virtual neighbor information
Field | Description |
---|---|
Router ID | The router ID of this virtual neighbor (configured.) |
Area ID | The area ID of the transit area for the virtual link to this neighbor (configured.) |
State | The state of the adjacency with this virtual neighbor. The possible values are the same as the OSPF neighbor states. See the State parameter definition in CLI display of OSPF neighbor information. Virtual neighbors should never stay in the 2WAY state. |
IP Address | IP address of the virtual neighbor that the routing switch is using to communicate to that virtual neighbor. |
Events | The number of times the virtual neighbor's state has changed. |
Notice from the syntax statement that ip-address
can be specified to display detailed information for a particular virtual neighbor. If an area-id
is specified, only virtual neighbors belonging to that area are shown.
Syntax:
Output for the show ip ospf virtual-link command
If virtual links are configured on a routing switch, you can display OSPF virtual link information by entering show ip ospf virtual-link
at any CLI level.
HP Switch# show ip ospf virtual-link OSPF Virtual Interface Status Transit AreaID Neighbor Router Authentication Interface State --------------- --------------- --------------- --------------- 10.3.16.0 10.0.8.33 none P2P 10.3.16.0 10.0.8.36 none P2P
This display shows the following information.
CLI display of OSPF virtual link information
Field | Description | ||||
---|---|---|---|---|---|
Transit Area ID | Area ID of transit area for the virtual link. | ||||
Neighbor Router | Router ID of the virtual neighbor. | ||||
Authentication | none or simple (same as for normal interface.) | ||||
Interface State | The state of the virtual link to the virtual neighbor. The possible values are:
|
Notice from the syntax statement that ip-address
can be specified to display detailed information for a particular virtual neighbor. If an area-id
is specified, only virtual neighbors belonging to that area are shown.
Example
To get OSPF virtual link information for IP address 10.0.8.33, enter show ip ospf virtual-link 10.0.8.33
. A display similar to the following is shown.
Output for the show ip ospf virtual-link ip-addr command
HP Switch# show ip ospf virtual-link 10.0.8.33 OSPF Virtual Interface Status for interface 10.0.8.33 Transit AreaID : 10.3.16.0 Neighbor Router : 10.0.8.33 Authentication : none Chain : Interface State : P2P Transit Delay : 1 Events : 1 Rtr Interval : 5 Dead Interval : 40 Hello Interval : 10
In this display, these fields show the same type of information as described for the general OSPF virtual link display: Transit Area ID, Neighbor Router, Authentication, and Interface State. This display shows the following additional information:
CLI display of OSPF virtual link information—Specific IP address
Field | Description |
---|---|
Events |
The number of times the virtual link interface state has changed. |
Transit delay |
The configured transit delay for the virtual link. |
Rtr Interval |
The configured retransmit interval for the virtual link. |
Hello Interval |
The configured hello interval for the virtual link. |
Dead Interval |
The configured router dead interval for the virtual link. |
Displays the log used to record SPF calculations on an OSPF-enabled routing switch. The SPF algorithm recalculates the routes in an OSPF domain when a change in the area topology is received.
Syntax:
The number of times that the SPF algorithm was executed for each OSPF area to which the routing switch is assigned.
The event that resulted in the last ten executions of the SPF algorithm on the routing switch. Possible events (reasons) are as follows:
Re-init
OSPF was enabled or disabled on the routing switch.
Router LS update
A router (type 1) link-state advertisement was received.
Network LS update
A network (type 2) link-state advertisement was received.
Generated RTR LSA
A router (type 1) link-state advertisement was generated on the routing switch.
Generated NTW LSA
A network (type 2) link-state advertisement was generated on the routing switch.
Displaying OSPF SPF statistics
HP Switch(ospf)# show ip ospf spf-log OSPF SPF (SHORTEST PATH FIRST) LOG Area : 0.0.0.100 - Number of times SPF executed : 12 SPF Instance Reason Time --------------- --------------------------- ---------------- 1 Router LS Update 0h:35m:44 2 Router LS Update 0h:36m:03 3 Generated RTR LSA 1h:04m:21 4 Generated NTW LSA 1h:28m:12 5 Network LS Update 2h:11m:05 6 Network LS Update 2h:54m:55 7 Generated RTR LSA 3h:01m:11 8 Router LS Update 3h:22m:39 9 Generated RTR LSA 4h:36m:22 10 Re-Init 4h:48m:54
CLI display of OSPF SPF statistics
area [area id | ip-address ] |
ID number or IP address of an area to which the switch is assigned, including the number of times the SPF algorithm was executed to recalculate OSPF routes in the area. |
SPF instances | Last ten instances in which the SPF algorithm was executed to recalculate an OSPF route in the area. |
Reason | The event or reason why the SPF algorithm was executed. |
Time | Time when the SPF computation began. |
Syntax:
To display OSPF route and other OSPF configuration information, enter
show ip ospf
at any CLI level.
Output for show IP OSPF
HP Switch# show ip ospf OSPF Configuration Information OSPF protocol : enabled Router ID : 10.0.8.35 Currently defined areas: Stub Stub Stub Area ID Type Default Cost Summary LSA Metric Type SPF Runs -------------- ------ ------------ ------------ ------------- -------- backbone normal 1 don't send ospf metric 1 10.3.16.0 normal 1 don't send ospf metric 1 10.3.32.0 normal 1 don't send ospf metric 1 Currently defined address ranges: Area ID LSA Type IP Network Network Mask Advertise Cost -------------- --------- ------------- -------------- --------- ---- 10.3.16.0 Summary 10.3.16.0 255.255.255.0 yes 1 OSPF interface configuration: Admin Authen IP Address Area ID Status Type Type Cost Pri --------------- --------------- -------- ----- ------ ----- --- 10.3.2.35 backbone enabled BCAST none 1 1 10.3.3.35 backbone enabled BCAST none 1 1 10.3.16.35 10.3.16.0 enabled BCAST none 1 1 10.3.32.35 10.3.32.0 enabled BCAST none 1 1 OSPF configured interface timers: Transit Retransmit Hello Dead IP Address Delay Interval Interval Interval -------------- ------- ---------- --------- ---------- 10.3.2.35 1 5 10 40 10.3.3.35 1 5 10 40 10.3.16.35 1 5 10 40 10.3.32.35 1 5 10 40 OSPF configured virtual interfaces: Authen Xmit Rxmt Hello Dead Area ID Router ID Type Delay Intvl Intvl Interval --------------- --------------- ------ ------ ------ ------ ---------- 10.3.16.0 10.0.8.33 none 1 5 10 40 10.3.16.0 10.0.8.36 none 1 5 10 40
CLI display of OSPF route and status information
Field | Description |
---|---|
OSPF protocol |
enabled or disabled — indicates if OSPF is currently enabled. |
Router ID |
The router ID that this routing switch is currently using to identify itself. |
Currently defined areas: | |
Area ID |
The identifier for this area. |
Type |
The type of OSPF area (normal or stub.) |
Stub Default Cost |
The metric for any default route we injected into a stub area if the routing switch is an ABR for the area. This value applies only to stub areas. |
Stub Summary LSA |
send or don't send — indicates the state of the no-summary option for the stub area. The value indicates if the area is "totally stubby" (no summaries sent from other areas) or just "stub" (summaries sent.) Applies only to stub areas and takes effect only if the routing switch is the ABR for the area. |
Stub Metric Type |
This value is always ospf metric. |
Currently defined address ranges: | |
Area ID |
The area where the address range is configured. |
LSA Type |
This value is always Summary. |
IP Network |
The address part of the address range specification. |
Network Mask |
The mask part of the address range specification. |
Advertise |
Whether advertising (yes) or suppressing (no) this address range. |
Cost | The cost of the interface connection between one switch and another, which is determined by the bandwidth in mega bits per second. The OSPF protocol determines the interface connection cost of each neighbor and uses these costs to determine the best path to reach a destination. The cost can range from a minimum of 1 to a maximum of 10. The faster the connection, the lower the cost. For example, a fast Ethernet interface cost is 1 and a Ethernet interface cost is 10. |
|
|
![]() |
NOTE: The remaining interface and virtual link information is the same as for the previously described OSPF |
|
In the default configuration, OSPF traps are disabled. Use this command to view which OSPF traps have been enabled.
Syntax:
Lists the OSPF traps currently enabled on the routing switch.
For more information, see Changing OSPF trap generation choices.