








































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Use the show ip ospf command to display information about one or more OSPF instances. ... Number and type of active areas configured on the router. Command.
Typology: Exercises
1 / 80
This page cannot be seen from the preview
Don't miss anything!
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) show commands.
show ip ospf
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes
Usage Guidelines Use the show ip ospf command to display information about one or more OSPF instances.
This command requires the LAN Base Services license.
Examples This example shows how to display information all about OSPF instances:
switch# show ip ospf Routing Process 201 with ID 192.0.2.1 VRF default Stateful High Availability enabled Graceful-restart is configured Grace period: 60 state: Inactive Last graceful restart exit status: None Supports only single TOS(TOS0) routes Supports opaque LSA This router is an autonomous system boundary Redistributing External Routes from bgp- Maximum limit: 1000 (warning-only) Threshold: message 750 Current count: 0 Administrative distance 110 Reference Bandwidth is 40000 Mbps Initial SPF schedule delay 3000.000 msecs, minimum inter SPF delay of 2000.000 msecs, maximum inter SPF delay of 4000.000 msecs Initial LSA generation delay 3000.000 msecs,
instance-tag (Optional) Name of the OSPF instance. Use this tag to display OSPF information about a specific OSPF instance. The instance-tag argument can be any alphanumeric string of 20 characters. vrf vrf-name (Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings “default” and “all” are reserved VRF names.
Release Modification 5.0(3)N1(1) This command was introduced.
show ip ospf
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
Number of areas is 2, 1 normal, 1 stub, 0 nssa Number of active areas is 0, 0 normal, 0 stub, 0 nssa Area (0.0.0.10) (Inactive) Area has existed for 00:12: Interfaces in this area: 0 Active interfaces: 0 Passive interfaces: 0 Loopback interfaces: 0 This area is a STUB area Generates stub default route with cost 25 Simple password authentication SPF calculation has run 1 times Last SPF ran for 0.000122s Area ranges are Area-filter in 'FilterLSAs' Number of LSAs: 0, checksum sum 0 Area (0.0.0.15) (Inactive) Area has existed for 00:20: Interfaces in this area: 1 Active interfaces: 0 Passive interfaces: 1 Loopback interfaces: 0 No authentication available SPF calculation has run 1 times Last SPF ran for 0.000020s Area ranges are Number of LSAs: 0, checksum sum 0 switch#
Table 1 describes the significant fields shown in the display.
Related Commands
Table 1 show ip ospf Field Descriptions
Field Description Routing Process... OSPF instance tag and OSPF router ID. Stateful High Availability Status of stateful restart capability. Supports... Number of types of service supported (Type 0 only). Administrative distance Administrative distance for the OSPFv2 instance. Reference Bandwidth Bandwidth used for cost calculation. Initial SPF schedule delay Delay time of SPF calculations. Initial LSA generation delay Delay time of LSA generations. Minimum LSA arrival Minimum interval between link-state advertisements. Maximum paths to destination Maximum paths to the neighbor. Number of... Number and type of link-state advertisements that have been received. Number of areas is... Number and type of areas configured for the router. Number of active areas is Number and type of active areas configured on the router.
Command Description show running-config ospf
Displays the OSPF running configuration.
show ip ospf border-routers
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes
Usage Guidelines Use the show ip ospf border-routers command to display information on ABRs. and ASBRs.
This command requires the LAN Base Services license.
Examples This example shows how to display information about border routers:
switch# show ip ospf border-routers
Related Commands
instance-tag (Optional) Name of the OSPF instance. Use this tag to display OSPF information about a specific OSPF instance. The instance-tag argument can be a maximum of 20 alphanumeric characters. vrf vrf-name (Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings “default” and “all” are reserved VRF names.
Release Modification 5.0(3)N1(1) This command was introduced.
Command Description show running-config ospf
Displays the OSPF running configuration.
show ip ospf database
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
Command Default None
Command Modes
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). This command requires the LAN Base Services license.
Examples This example shows how to display the OSPF database:
switch# show ip ospf database
This example shows how to display a summary of autonomous system border routers:
external (Optional) Displays information about the external LSAs. ext_tag value (Optional) Displays information based on an external tag. The range is from 1 to 4294967295. network (Optional) Displays information about the network LSAs. nssa-external (Optional) Displays information about the not-so-stubby area (NSSA) external LSAs. opaque-area (Optional) Displays information about the opaque area LSAs. opaque-as (Optional) Displays information about the opaque AS LSAs. opaque-link (Optional) Displays information about the opaque link-local LSAs. router (Optional) Displays information about the router LSAs. summary (Optional) Displays information about the summary LSAs. vrf vrf-name (Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings “default” and “all” are reserved VRF names.
Release Modification 5.0(3)N1(1) This command was introduced.
show ip ospf database
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
switch# show ip ospf database asbr-summary
This example shows how to display information about external links: switch# show ip ospf database external
This example shows how to display a summary of the OSPF database: switch# show ip ospf database database-summary
Related Commands Command Description
show running-config ospf
Displays the OSPF running configuration.
show ip ospf interface
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
Timer intervals: Hello 10, Dead 40, Wait 40, Retransmit 5 No authentication Number of opaque link LSAs: 0, checksum sum 0 switch#
Table 2 describes the significant fields shown in the display.
This example shows how to display OSPF information for all VRFs: switch# show ip ospf interface vrf all VL1-0.0.0.10-10.1.2.3 is down, line protocol is down IP address 0.0.0.0, Process ID 201 VRF default, area 0.0.0. State DOWN, Network type P2P, cost 65535 Index 2, Transmit delay 2 sec 0 Neighbors, flooding to 0, adjacent with 0 Timer intervals: Hello 25, Dead 50, Wait 50, Retransmit 50 Message-digest authentication, using key id 21 Number of opaque link LSAs: 0, checksum sum 0
switch#
This example shows how to display OSPF information in a brief format: switch# show ip ospf interface brief OSPF Process ID 201 VRF default Total number of interface: 1 Interface ID Area Cost State Neighbors Status VL1 2 0.0.0.0 65535 DOWN 0 down
switch#
Related Commands
Table 2 show ip ospf interface Field Descriptions
Field Description Ethernet Status of physical link and operational status of protocol. IP Address Interface IP address, subnet mask, and area address. VRF Virtual routing and forwarding (VRF) instance. Transmit Delay Transmit delay, interface state, and router priority. designated router Designated router ID and interface IP address. backup designated router Backup designated router ID and interface IP address. Timer intervals Configuration information of timer intervals. Hello Number of seconds until next hello packet is sent out this interface.
Command Description show running-config ospf
Displays the OSPF running configuration.
show ip ospf lsa-content-changed-list
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes
Usage Guidelines This command requires the LAN Base Services license.
Examples This example shows how to display a list of LSAs that changed for Ethernet 2/1:
switch# show ip ospf lsa-content-changed-list 192.0.2.2 ethernet 2/
Related Commands
neighbor id Router ID for the neighbor in the format A. B. C. D. ethernet slot / port Specifies the Ethernet interface and the slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128. loopback if_number Specifies the loopback interface. The loopback interface number is from 0 to
port-channel number Specifies the EtherChannel interface and EtherChannel number. The range is from 1 to 4096.
Release Modification 5.0(3)N1(1) This command was introduced.
Command Description show running-config ospf
Displays the OSPF running configuration.
show ip ospf neighbors
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
switch# show ip ospf neighbors 10.199.199.
This example shows how to display the neighbors that match the neighbor ID on an interface: switch# show ip ospf neighbors ethernet 2/1 10.199.199.
This example shows how to display detailed information about OSPF neighbors: switch# show ip ospf neighbors detail
Related Commands Command Description
show running-config ospf
Displays the OSPF running configuration.
show ip ospf policy statistics area
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes
Usage Guidelines Use the show ip ospf policy statistics area command to display information about the filter lists applied to an area. This command requires the LAN Base Services license.
Examples This example shows how to display policy statistics for OSPF:
switch# show ip ospf policy statistics area 201 filter-list in
Related Commands
instance-tag (Optional) Name of the OSPF instance. Specify as an alphanumeric string. area area-id Specifies the area number used to define the particular area. The area ID can be an IP address or a number from 0 to 4294967295. filter-list Filters prefixes between OSPF areas. in Displays policy statistics for incoming routes. out Displays policy statistics for outgoing routes. vrf vrf-name (Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings “default”, “management”, and “all” are reserved VRF names.
Release Modification 5.0(3)N1(1) This command was introduced.
Command Description area filter-list (OSPF) Filters incoming or outgoing Network Summary (type 3) link-state advertisements (LSAs) on an Area Border Router (ABR). copy running-config startup-config
Saves the configuration changes to the startup configuration file.
show running-config ospf
Displays the OSPF running configuration.
show ip ospf policy statistics redistribute
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes
Usage Guidelines Use the show ip ospf policy statistics redistribute command to display redistribution statistics.
This command requires the LAN Base Services license.
Examples This example shows how to display policy statistics for redistributed routes:
switch# show ip ospf policy statistics redistribute
instance-tag (Optional) Name of the OSPF instance. Specify as an alphanumeric string. bgp Displays policy statistics for the Border Gateway Protocol (BGP). direct Displays policy statistics for directly connected routes only. eigrp Displays policy statistics for the Enhanced Interior Gateway Routing Protocol (EIGRP). ospf Displays policy statistics for OSPF. rip Displays policy statistics for the Routing Information Protocol (RIP). static Displays policy statistics for IP static routes. id For the bgp keyword, an autonomous system number. The range for 2-byte numbers is from 1 to 65535. For the eigrp keyword, an autonomous system number. The range is from 1 to 65535. For the ospf and rip keywords, an instance name from which routes are to be redistributed. The value takes the form of a string. You can enter a decimal number, but Cisco NX-OS stores it internally as a string. vrf vrf-name (Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings “default”, “management”, and “all” are reserved VRF names.
Release Modification 5.0(3)N1(1) This command was introduced.
show ip ospf policy statistics redistribute
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
Related Commands Command Description
show running-config ospf
Displays the OSPF running configuration.
show ip ospf retransmission-list
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes
Usage Guidelines Use the show ip ospf retransmission-list command to troubleshoot Open Shortest Path First (OSPF) routing operations. This command requires the LAN Base Services license.
Examples This example shows how to display all LSAs waiting to be resent to neighbors:
switch# show ip ospf retransmission-list 192.0.2.11 ethernet 2/
Related Commands
neighbor-id Router ID of the neighbor. Specify as an IP address. ethernet slot / port (Optional) Specifies the Ethernet interface and the slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to
loopback if_number (Optional) Specifies the loopback interface. The loopback interface number is from 0 to 1023. port-channel number (Optional) Specifies the EtherChannel interface and EtherChannel number. The range is from 1 to 4096.
Release Modification 5.0(3)N1(1) This command was introduced.
Command Description show running-config ospf
Displays the OSPF running configuration.
show ip ospf route
Cisco Nexus 5000 Series NX-OS Unicast Routing Command Reference OL-25836-
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 None
Command Modes Any command mode
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. This command requires the LAN Base Services license.
Examples This example shows how to display OSPF routes:
switch# show ip ospf route
Related Commands
instance-tag (Optional) Name of the OSPF instance. Specify as an alphanumeric string of 20 characters. prefix/length (Optional) IP prefix, which limits output to a specific route. Indicate the length as a slash (/) and number from 1 to 31. For example, /8 indicates that the first eight bits in the IP prefix are network bits. summary (Optional) Displays a summary of all routes. vrf vrf-name (Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings “default”, “management”, and “all” are reserved VRF names.
Release Modification 5.0(3)N1(1) This command was introduced.
Command Description show running-config ospf
Displays the OSPF running configuration.