- show ip ospf
- show ip ospf border-routers
- show ip ospf database
- show ip ospf interface
- show ip ospf lsa-content-changed-list
- show ip ospf neighbors
- show ip ospf policy statistics area
- show ip ospf policy statistics redistribute
- show ip ospf request-list
- show ip ospf retransmission-list
- show ip ospf route
- show ip ospf statistics
- show ip ospf summary-address
- show ip ospf traffic
- show ip ospf virtual-links
- show ip traffic
- show running-config ospf
- show vrf
- show vrf detail
- show vrf interface
Show Commands
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) show commands.
show ip ospf
To display general information about Open Shortest Path First (OSPF) routing instances, use the show ip ospf command.
show ip ospf [ instance-tag ] [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf command to display information about one or more OSPF instances.
Examples
This example shows how to display information all about OSPF instances:
This example shows how to display information about one specific OSPF instance:
Table 1 describes the significant fields shown in the display.
|
|
|
|---|---|
Number and type of link-state advertisements that have been received. |
|
Related Commands
|
|
|
|---|---|
show ip ospf border-routers
To display the Open Shortest Path First (OSPF) routing table entries to an Area Border Router (ABR) and Autonomous System Boundary Router (ASBR), use the show ip ospf border-routers command.
show ip ospf [ instance-tag ] border-routers [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf border-routers command to display information on ABRs. and ASBRs.
Examples
This example shows how to display information about border routers:
Related Commands
|
|
|
|---|---|
show ip ospf database
To display the Open Shortest Path First (OSPF) database for a specific router, use the show ip ospf database command.
show ip ospf [ instance-tag ] database [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database asbr-summary [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database database-summary [ vrf vrf-name ]
show ip ospf [ instance-tag ] database external [ ext_tag value ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database network [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database nssa-external [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database opaque-area [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database opaque-as [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database opaque-link [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database router [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
show ip ospf [ instance-tag ] database summary [ area-id ] [ link-state-id ] [ adv-router ip-address | self-originated ] [ detail ] [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the ip ospf database command to display information about different OSPF LSAs.
When the link state advertisement is describing a network, the link-state-id argument can take one of two forms:
- The network’s IP address (such as Type 3 summary link advertisements and autonomous system external link advertisements).
- A derived address obtained from the link state ID. (Note that masking a network links advertisement’s link state ID with the network’s subnet mask yields the network’s IP address.)
- When the link state advertisement is describing a router, the link state ID is always the described router’s OSPF router ID.
- When an autonomous system external advertisement (LS Type = 5) is describing a default route, its link state ID is set to Default Destination (0.0.0.0).
Examples
This example shows how to display the OSPF database:
This example shows how to display a summary of autonomous system border routers:
This example shows how to display information about external links:
This example shows how to display a summary of the OSPF database:
Related Commands
|
|
|
|---|---|
show ip ospf interface
To display Open Shortest Path First (OSPF)-related interface information, use the show ip ospf interface command.
show ip ospf interface [ instance-tag ] [{ ethernet slot / port | loopback if_number | port-channel number }] [ brief ] [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf interface command to display the OSPF status for the interface.
Examples
This example shows how to display OSPF information for Ethernet interface 1/5:
Table 2 describes the significant fields shown in the display.
|
|
|
|---|---|
Number of seconds until next hello packet is sent out this interface. |
This example shows how to display OSPF information for all VRFs:
This example shows how to display OSPF information in a brief format:
Related Commands
|
|
|
|---|---|
show ip ospf lsa-content-changed-list
To display a list of all link-state advertisements (LSAs) with changed content, use the show ip ospf lsa-content-changed-list command.
show ip ospf lsa-content-changed-list neighbor-id { ethernet slot / port | loopback if_number | port-channel number }
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to display a list of LSAs that changed for Ethernet 2/1:
Related Commands
|
|
|
|---|---|
show ip ospf neighbors
To display Open Shortest Path First (OSPF)-neighbor information on a per-interface basis, use the show ip ospf neighbors command.
show ip ospf [ instance-tag ] neighbors [{ ethernet slot / port | loopback if_number | port-channel number }] [ neighbor-id ] [ detail ] [ summary ] [ vrf { vrf-name | all | default | management } ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf neighbors command to display information about all or some of the neighbors for this OSPF instance.
Examples
This example shows how to display the summary information about the neighbor that matches the neighbor ID:
This example shows how to display the neighbors that match the neighbor ID on an interface:
This example shows how to display detailed information about OSPF neighbors:
Related Commands
|
|
|
|---|---|
show ip ospf policy statistics area
To display Open Shortest Path First (OSPF) policy statistics for an area, use the show ip ospf policy statistics area command.
show ip ospf [ instance-tag ] policy statistics area area-id filter-list { in | out } [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf policy statistics area command to display information about the filter lists applied to an area.
Examples
This example shows how to display policy statistics for OSPF:
Related Commands
show ip ospf policy statistics redistribute
To display Open Shortest Path First (OSPF) policy statistics, use the show ip ospf policy statistics redistribute command.
show ip ospf [ instance-tag ] policy statistics redistribute { bgp id | direct | eigrp id | ospf id | rip id | static } [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf policy statistics redistribute command to display redistribution statistics.
Examples
This example shows how to display policy statistics for redistributed routes:
Related Commands
|
|
|
|---|---|
show ip ospf request-list
To display a list of all link-state advertisements (LSAs) requested by a router, use the show ip ospf request-list command.
show ip ospf request-list neighbor-id { ethernet slot / port | loopback if_number | port-channel number }
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf request-list command to troubleshoot Open Shortest Path First (OSPF) routing operations.
Examples
This example shows how to display a list of all LSAs requested by a router:
Related Commands
|
|
|
|---|---|
show ip ospf retransmission-list
To display a list of all link-state advertisements (LSAs) waiting to be resent to neighbors, use the show ip ospf retransmission-list command.
show ip ospf retransmission-list neighbor-id { ethernet slot / port | loopback if_number | port-channel number }
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf retransmission-list command to troubleshoot Open Shortest Path First (OSPF) routing operations.
Examples
This example shows how to display all LSAs waiting to be resent to neighbors:
Related Commands
|
|
|
|---|---|
show ip ospf route
To display the Open Shortest Path First (OSPF) topology table, use the show ip ospf routes command.
show ip ospf [ instance-tag ] routes [ prefix / length | summary } [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ospf routes command to display the OSPF private routing table (which contains only routes that are calculated by OSPF). If something is wrong with a route in the routing information base (RIB), then you should check the OSPF copy of the route to determine if it matches the RIB contents. If it does not match, a synchronization problem exists between OSPF and the RIB.
Examples
This example shows how to display OSPF routes:
Related Commands
|
|
|
|---|---|
show ip ospf statistics
To display Open Shortest Path First (OSPF) shortest path first (SPF) calculation statistics, use the show ip ospf statistics command.
show ip ospf [ instance-tag ] statistics [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf statistics command to display information about link-state advertisements (LSAs). This information can be useful for both OSPF network maintenance and troubleshooting. For example, we recommend that you use the show ip ospf statistics command as the first troubleshooting step for LSA flapping.
Examples
This example shows how to display information about the SPF calculations:
Table 3 describes the significant fields shown in the display.
|
|
|
|---|---|
Unique value assigned to the OSPF instance in the configuration. |
|
Virtual routing and forwarding (VRF) for this OSPF instance. |
|
Related Commands
|
|
|
|---|---|
show ip ospf summary-address
To display a list of all summary address redistribution information configured in an Open Shortest Path First (OSPF) instance, use the show ip ospf summary-address command.
show ip ospf [ instance-tag ] summary-address [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to display information about summary addresses:
Related Commands
|
|
|
|---|---|
show ip ospf traffic
To display Open Shortest Path First (OSPF) traffic statistics, use the show ip ospf traffic command.
show ip ospf [ instance-tag ] traffic [ ethernet slot / port | loopback if_number | port-channel number ] [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf traffic command to display traffic statistics for one or more OSPF instances.
Examples
This example shows how to display OSPF traffic statistics for interface 1/5:
Table 4 describes the significant fields shown in the display.
Related Commands
|
|
|
|---|---|
show ip ospf virtual-links
To display parameters and the current state of Open Shortest Path First (OSPF) virtual links, use the show ip ospf virtual-links command.
show ip ospf [ instance-tag ] virtual-links [ brief ] [ vrf vrf-name ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Use the show ip ospf virtual-links command to display information about configured virtual links.
Examples
This example shows how to display information about virtual links:
Table 5 describes the significant fields shown in the display.
This example shows how to display information about virtual links in brief format:
Related Commands
|
|
|
|---|---|
show ip traffic
To display IP traffic information, use the show ip traffic command.
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Examples
This example shows how to display the IP traffic information:
Related Commands
|
|
|
|---|---|
show running-config ospf
To display the running configuration for Open Shortest Path First version 2 (OSPFv2) for IPv4 networks, use the show running-config ospf command.
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to display the running configuration for OSPF:
Related Commands
|
|
|
|---|---|
show vrf
To display the virtual routing and forwarding (VRF) instances, use the show vrf command.
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to display the VRF instances configured on the switch:
Related Commands
|
|
|
|---|---|
show vrf detail
To display the detailed information of virtual routing and forwarding (VRF) instances, use the show vrf detail command.
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
By default, this command displays the detailed information of the default VRF and management VRF.
Examples
This example shows how to display the detailed information of VRF instances configured on the switch:
Related Commands
|
|
|
|---|---|
show vrf interface
To display the virtual routing and forwarding (VRF) information for interfaces, use the show vrf interface command.
show vrf interface [ mgmt mgmt-number | vlan vlan-ID ]
Syntax Description
Command Default
Command Modes
Command History
|
|
|
|---|---|
Usage Guidelines
Examples
This example shows how to display the VRF information for all configured interfaces:
This example shows how to display the VRF information for management interfaces:
This example shows how to display the VRF information for VLAN interfaces:
Related Commands
|
|
|
|---|---|
Feedback