Show commands

Use these M4500 CLI commands to display OSPFv3 router, area, database, interface, neighbor, range, and statistics information.

show ipv6 ospf

This command displays information relevant to the OSPF router.

Some of the information below displays only if you enable OSPF and configure certain features.

Default None
Format show ipv6 ospf
Mode Privileged Exec

Display Messages

Fields Definition
Router ID A 32 bit integer in dotted decimal format identifying the router, about which information is displayed. This is a configured value.
OSPF Admin Mode Shows whether the administrative mode of OSPF in the router is enabled or disabled. This is a configured value.
External LSDB Limit Shows the maximum number of non-default AS-external-LSAs entries that can be stored in the link-state database.
Exit Overflow Interval Shows the number of seconds that, after entering Overflow State, a router will attempt to leave Overflow State.
SPF Start Time The number of milliseconds the SPF calculation is delayed if no SPF calculation has been scheduled during the current “wait interval”.
SPF Hold Time The number of milliseconds of the initial “wait interval”.
SPF Maximum Hold Time The maximum number of milliseconds of the “wait interval”.
LSA Refresh Group Pacing Time The size of the LSA refresh group window, in seconds.
Autocost Ref BW Shows the value of auto-cost reference bandwidth configured on the router.
Default Passive Setting Shows whether the interfaces are passive by default.
Prefix Suppression Display whether prefix-suppression is enabled or disabled.
Maximum Paths The maximum number of paths that OSPF can report for a given destination.
Default Metric Default value for redistributed routes.
Maximum Routes The maximum number of routes that OSPF can support.
Stub Router Configuration Indicates whether stub router is configured.
BFD Mode Indicates whether BFD is enabled or disabled.
Default Route Advertise Indicates whether the default routes received from other source protocols are advertised or not.
Always Shows whether default routes are always advertised.
Metric The metric for the advertised default routes.
Metric Type Shows whether the routes are External Type 1 or External Type 2.
Number of Active Areas The number of active OSPF areas. An “active” OSPF area is an area with at least one interface up.
ABR Status Shows whether the router is an OSPF Area Border Router.
ASBR Status Reflects whether the ASBR mode is enabled or disabled. Enable implies that the router is an autonomous system border router. The router automatically becomes an ASBR when it is configured to redistribute routes learnt from other protocols. The possible values for the ASBR status is enabled (if the router is configured to redistribute routes learned by other protocols) or disabled (if the router is not configured for the same).
Stub Router Status When OSPF runs out of resources to store the entire link state database, or any other state information, OSPF goes into stub router mode. As a stub router, OSPF re-originates its own router LSAs, setting the cost of all non-stub interfaces to infinity. To restore OSPF to normal operation, disable and re-enable OSPF.
External LSDB Overflow When the number of non-default external LSAs exceeds the configured limit, External LSDB Limit, OSPF goes into LSDB overflow state. In this state, OSPF withdraws all of its self-originated non-default external LSAs. After the Exit Overflow Interval, OSPF leaves the overflow state, if the number of external LSAs has been reduced.
External LSA Count Shows the number of external (LS type 5) link-state advertisements in the link-state database.
External LSA Checksum Shows the sum of the LS checksums of external link-state advertisements contained in the link-state database.
New LSAs Originated Shows the number of new link-state advertisements that have been originated.
LSAs Received Shows the number of link-state advertisements received determined to be new instantiations.
LSA Count The total number of link state advertisements currently in the link state database.
Maximum Number of LSAs The maximum number of LSAs that OSPF can store.
LSA High Water Mark The maximum size of the link state database since the system started.
Retransmit List Entries The total number of LSAs waiting to be acknowledged by all neighbors. An LSA may be pending acknowledgment from more than one neighbor.
Maximum Number of Retransmit Entries The maximum number of LSAs that can be waiting for acknowledgment at any given time.
Retransmit Entries High Water Mark The highest number of LSAs that have been waiting for acknowledgment.
Redistributing This field is a heading and appears only if you configure the system to take routes learned from a non-OSPF source and advertise them to its peers.
Source Shows source protocol/routes that are being redistributed. Possible values are static, connected, or BGP.
Metric The metric of the routes being redistributed.
Metric Type Shows whether the routes are EX1 ro EX2.
Tag The decimal value attached to each external route.
NSF Helper Support Indicate whether helpful neighbor functionality has been enabled for OSPF for planned restarts, unplanned restarts, or Always (Both).
NSF Helper Strict LSA Checking Indicate whether strict LAS checking has been enabled. If enabled then an OSPF helpful neighbor will exit helper mode whenever a topology change occurs. If disabled, an OSPF neighbor will continue as a helpful neighbor in spite of topology changes.

show ipv6 ospf abr

This command displays the internal OSPFv3 routes to reach Area Border Routers (ABR).This command takes no options.

Default None
Format show ipv6 ospf abr
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
Type

The type of the route to the destination. It can be either:

intra — Intra-area route

inter — Inter-area route

Router ID Router ID of the destination
Cost Cost of using this route
Area ID The area ID of the area from which this route is learned.
Next Hop Next hop toward the destination
Next Hop Intf The outgoing router interface to use when forwarding traffic to the next hop.

show ipv6 ospf area

This command displays information about the area. The <areaid> identifies the OSPF area that is being displayed.

Default None
Format show ipv6 ospf area <areaid>
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
AreaID The area id of the requested OSPF area.
External Routing A number representing the external routing capabilities for this area.
Spf Runs The number of times that the intra-area route table has been calculated using this area's link-state database.
Area Border Router Count The total number of area border routers reachable within this area.
Area LSA Count Total number of link-state advertisements in this area's link-state database, excluding AS External LSAs.
Area LSA Checksum A number representing the Area LSA Checksum for the specified AreaID excluding the external (LS type 5) link-state advertisements.
Stub Mode Represents whether the specified Area is a stub area or not. The possible values are enabled and disabled. This is a configured value.
Import Summary LSAs Shows whether to import summary LSAs (enabled).
Stub Area Metric Value The metric value of the stub area. This field displays only if the area is configured as a stub area.

The following OSPF NSSA specific information displays only if the area is configured as an NSSA.

Fields Definition
Import Summary LSAs Shows whether to import summary LSAs into the NSSA.
Redistribute into NSSA Shows whether to redistribute information into the NSSA.
Default Information Originate Shows whether to advertise a default route into the NSSA
Default Metric Shows the metric value for the default route advertised into the NSSA.
Default Metric Type Shows the metric type for the default route advertised into the NSSA.
Translator Role Shows the NSSA translator role of the ABR, which is always or candidate.
Translator Stability Interval Shows the amount of time that an elected translator continues to perform its duties after it determines that its translator status has been deposed by another router.
Translator State Shows whether the ABR translator state is disabled, always, or elected.

show ipv6 ospf asbr

This command displays the internal OSPFv3 routes to reach Autonomous System Boundary Routers (ASBR). This command takes no options.

Default None
Format show ipv6 ospf asbr
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
Type

The type of the route to the destination. It can be either:

intra — Intra-area route

inter — Inter-area route

Router ID Router ID of the destination
Cost Cost of using this route
Area ID The area ID of the area from which this route is learned.
Next Hop Next hop toward the destination
Next Hop Intf The outgoing router interface to use when forwarding traffic to the next hop.

show ipv6 ospf database

This command displays information about the link state database when OSPFv3 is enabled. If you do not enter any parameters, the command displays the LSA headers for all areas. Use the optional <areaid> parameter to display database information about a specific area. Use the other optional parameters to specify the type of link state advertisements to display. Use external to display the external LSAs. Use inter-area to display the inter-area LSAs. Use link to display the link LSAs. Use network to display the network LSAs. Use nssa-external to display NSSA external LSAs. Use prefix to display intra-area Prefix LSAs. Use router to display router LSAs. Use unknown area, unknown as, or unknown link to display unknown area, AS or link-scope LSAs, respectively. Use <lsid> to specify the link state ID (LSID). Use adv-router to show the LSAs that are restricted by the advertising router. Use self-originate to display the LSAs in that are self originated. The information below is only displayed if OSPF is enabled.

Default None
Format show ipv6 ospf [<areaid>] database [{external | inter-area {prefix | router} | link | network | nssa-external | prefix | router | unknown {area | as | link}}] [<lsid>] [{adv-router [<rtrid>] | self-originate}]
Mode

Privileged Exec

User Exec

Fields Definition
<areaid> Configures to display database information about a specific area.
<lsid> Specify the link state ID.
<rtrid> Specify an IP Address.

Display Messages

Fields Definition
Link Id A number that uniquely identifies an LSA that a router originates from all other self originated LSA's of the same LS type.
Adv Router The Advertising Router. Is a 32 bit dotted decimal number representing the LSDB interface.
Age A number representing the age of the link state advertisement in seconds.
Sequence A number that represents which LSA is more recent.
Csum The total number LSA checksum.
Options This is an integer. It indicates that the LSA receives special handling during routing calculations.
Rtr Opt Router Options are valid for router links only.

show ipv6 ospf database database-summary

This command displays the number of each type of LSA in the database and the total number of LSAs in the database.

Default None
Format show ipv6 ospf database database-summary
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
Router Total number of router LSAs in the OSPFv3 link state database.
Network Total number of network LSAs in the OSPFv3 link state database.
Inter-area Prefix Total number of inter-area prefix LSAs in the OSPFv3 link state database.
Inter-area Router Total number of inter-area router LSAs in the OSPFv3 link state database.
Type-7 Ext Total number of NSSA external LSAs in the OSPFv3 link state database.
Link Total number of link LSAs in the OSPFv3 link state database.
Intra-area Prefix Total number of intra-area prefix LSAs in the OSPFv3 link state database.
Link Unknown Total number of link-source unknown LSAs in the OSPFv3 link state database.
Area Unknown Total number of area unknown LSAs in the OSPFv3 link state database.
AS Unknown Total number of as unknown LSAs in the OSPFv3 link state database.
Subtotal Number of entries for the identified area.
Self-Originated Type-7 Ext Total number of self originated Type-7 external LSAs in the database.
Type-5 Ext Total number of AS external LSAs in the database.
Self-Originated Type-5 Ext Total number of self originated AS external LSAs in the database.
Total Total number of router LSAs in the OSPFv3 link state database.

show ipv6 ospf interface

This command displays the information for the physical or virtual interface tables.

Default None
Format show ipv6 ospf interface {<slot/port> | loopback <0-63> | tunnel <0-7> | vlan <vlan-id>}
Mode

Privileged Exec

User Exec

Fields Definition
<slot/port> Interface number.
<0-63> Loopback Interface ID.
<0-7> Tunnel Interface ID.
<vland-id> VLAN ID. The range is from 0 to 4093.

Display Messages

Fields Definition
IPv6 Address Shows the IPv6 address of the interface.
ifIndex Shows the interface index number associated with the interface.
OSPF Admin Mode Shows whether the admin mode is enabled or disabled.
OSPF Area ID Shows the area ID associated with this interface.
Router Priority Shows the router priority. The router priority determines which router is the designated router.
Retransmit Interval Shows the frequency, in seconds, at which the interface sends LSA.
Hello Interval Shows the frequency, in seconds, at which the interface sends Hello packets.
Dead Interval Shows the amount of time, in seconds, the interface waits before assuming a neighbor is down.
LSA Ack Interval Shows the amount of time, in seconds, the interface waits before sending an LSA acknowledgement after receiving an LSA.
Transmit Delay Interval A number representing the OSPF Transmit Delay for the specified interface.
Authentication Type Shows the type of authentication the interface performs on LSAs it receives.
Metric Cost Shows the priority of the path. Low costs have a higher priority than high costs.
Prefix-suppresion Shows whether prefix-suppresion is enabled, disabled, or unconfigured on the given interface.
Passive Status Shows whether the interface is passive or not.
OSPF MTU-ignore Shows whether to ignore MTU mismatches in database descriptor packets sent from neighboring routers.
Link LSA Suppresion Shows the configured state of Link LSA Suppresion for the interface.

The following information only displays if OSPF is initialized on the interface:

Fields Definition
OSPF Interface Type Broadcast LANs, such as Ethernet and IEEE 802.5, take the value broadcast. The OSPF Interface Type will be 'broadcast'.
State The OSPF Interface States are: down, loopback, waiting, point-to-point, designated router, and backup designated router.
Designated Router The router ID representing the designated router.
Backup Designated Router The router ID representing the backup designated router.
Number of Link Events The number of link events.
Metric Cost The cost of the OSPF interface.

show ipv6 ospf interface brief

This command displays brief information for the physical or virtual interface tables.

Default None
Format show ipv6 ospf interface brief
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
Interface The routing interface associated with the rest of the data in the row.
OSPF Admin Mode States whether OSPF is enabled or disabled on a router interface. This is a configured value.
OSPF Area ID Represents the OSPF Area ID for the specified interface. This is a configured value.
Router Priority Shows the router priority. The router priority determines which router is the designated router.
Metric Cost The priority of the path. Low costs have a higher priority than high costs.
Hello Interval Shows the frequency, in seconds, at which the interface sends Hello packets.
Dead Interval Shows the amount of time, in seconds, the interface waits before assuming a neighbor is down.
Retransmit Interval Shows the frequency, in seconds, at which the interface sends LSA.
Retransmit Delay Interval Shows the number of seconds the interface adds to the age of LSA packets before transmission.
LSA Ack Interval Shows the amount of time, in seconds, the interface waits before sending an LSA acknowledgement after receiving an LSA.

show ipv6 ospf interface stats

This command displays the statistics for a specific interface. The command only displays information if OSPF is enabled

Default None
Format show ipv6 ospf interface stats {<slot/port> | loopback <loopback-id> | vlan <vlan-id>}
Mode

Privileged Exec

User Exec

Fields Definition
<slot/port> Interface number.
<loopback-id> The loopback ID ranges from 0 to 63.
<vlan-id> VLAN ID. The range is from 0 to 4093.

Display Messages

Fields Definition
OSPFv3 Area ID The area id of this OSPF interface.
Area Border Router Count The number of the area border router.
AS Border Router Count The number of the AS border router.
Area LSA Count The number of area LSAs.
IPv6 Address The IPv6 address associated with this OSPF interface.
OSPF Interface Events The number of times the specified OSPF interface has changed its state, or an error has occurred.
Virtual Events The number of state changes or errors that occurred on this virtual link.
Neighbor Events The number of times this neighbor relationship has changed state, or an error has occurred.
Sent Packets The number of OSPF packets transmitted on the interface.
Received Packets The number of valid OSPF packets received on the interface.
Discards The number of received OSPF packets discarded because of an error in the packet or an error in processing the packet.
Bad Version The number of received OSPF packets whose version field in the OSPF header does not match the version of the OSPF process handling the packet.
Virtual Link Not Found The number of received OSPF packets discarded where the ingress interface is in a non-backbone area and the OSPF header identifies the packet as belonging to the backbone, but OSPF does not have a virtual link to the packet’s sender.
Area Mismatch The number of OSPF packets discarded because the area ID in the OSPF header is not the area ID configured on the ingress interface.
Invalid Destination Address The number of OSPF packets discarded because the packet’s destination IP address is not the address of the ingress interface and is not the AllDrRouters or AllSpfRouters multicast addresses.
No Neighbor at Source Address The number of OSPF packets dropped because the sender is not an existing neighbor or the sender’s IP address does not match the previously recorded IP address for that neighbor. NOTE: Does not apply to Hellos.
Invalid OSPF Packet Type The number of OSPF packets discarded because the packet type field in the OSPF header is not a known type.
Hello Ignored The number of received Hello packets that were ignored by this router from the new neighbors after the limit has been reached for the number of neighbors on an interface or on the system as a whole.

show ipv6 ospf lsa-group

This command displays the number of self-originated LSAs within each LSA group.

Default None
Format show ipv6 ospf lsa-group
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
Total self-originated LSAs The number of LSAs the router is currently originating.
Average LSAs per group The number of self-originated LSAs divided by the number of LSA groups. The number of LSA groups is the refresh interval (1800 seconds) divided by the pacing interval (configured with timers pacing lsa-group) plus two.
Pacing group limit The maximum number of self-originated LSAs in one LSA group. If the number of LSAs in a group exceeds this limit, OSPF redistributes LSAs throughout the refresh interval to achieve better balance.
Groups For each LSA pacing group, the output shows the range of LSA ages in the group and the number of LSAs in the group.

show ipv6 ospf max-metric

This command displays the configured maximum metrics for stub router mode.

Default None
Format show ipv6 ospf max-metric
Mode

Privileged Exec

User Exec

show ipv6 ospf neighbor

This command displays information about OSPF neighbors. If you do not specify a neighbor IP address, the output displays summary information in a table. If you specify an interface or tunnel, only the information for that interface or tunnel displays. The <ipaddr> is the IP address of the neighbor, and when you specify this, detailed information about the neighbor displays. The information below only displays if OSPF is enabled and the interface has a neighbor.

Default None
Format show ipv6 ospf neighbor [{interface {<slot/port> | tunnel <0-7> | vlan <vlan-id>} | <ipaddr>}]
Mode

Privileged Exec

User Exec

Fields Definition
<ipaddr> IP address of the neighbor.
<slot/port> Interface number.
<vlan-id> VLAN ID ranges from 1 to 4093.

Display Messages

If you do not specify an IP address, a table with the following columns displays for all neighbors or the neighbor associated with the interface that you specify:

Fields Definition
Router ID Shows the 4-digit dotted-decimal number of the neighbor router.
Priority Displays the OSPF priority for the specified interface. The priority of an interface is a priority integer from 0 to 255. A value of '0' indicates that the router is not eligible to become the designated router on this network.
Intf ID Shows the interface ID of the neighbor.
Interface

Shows the interface of the local router. Shows the state of the neighboring routers. Possible values are:

Down - initial state of the neighbor conversation - no recent

information has been received from the neighbor.

Attempt - no recent information has been received from the

neighbor but a more concerted effort should be made to contact the neighbor.

State

Init - an Hello packet has recently been seen from the neighbor, but

bidirectional communication has not yet been established.

2 way - communication between the two routers is bidirectional.

Exchange start - the first step in creating an adjacency between the

two neighboring routers, the goal is to decide which router is the master and to decide upon the initial DD sequence number.

Exchange - the router is describing its entire link state database by

sending Database Description packets to the neighbor.

Loading - Link State Request packets are sent to the neighbor asking

for the more recent LSAs that have been discovered (but not yet received) in the Exchange state.

Full - the neighboring routers are fully adjacent and they will now

appear in router-LSAs and network-LSAs.

Dead Time Shows the amount of time, in seconds, to wait before the router assumes the neighbor is unreachable.

If you specify an IP address for the neighbor router, the following fields display:

Fields Definition
Interface Shows the interface of the local router.
Area ID The area ID associated with the interface.
Options An integer value that indicates the optional OSPF capabilities supported by the neighbor. These are listed in its Hello packets. This enables received Hello Packets to be rejected (i.e., neighbor relationships will not even start to form) if there is a mismatch in certain crucial OSPF capabilities.
Router Priority Displays the router priority for the specified interface.
Dead Timer Due Shows the amount of time, in seconds, to wait before the router assumes the neighbor is unreachable.
State Shows the state of the neighboring routers.
Events The number of times this neighbor relationship has changed state, or an error has occurred.
Retransmission Queue Length An integer representing the current length of the retransmission queue of the specified neighbor router Id of the specified interface.

show ipv6 ospf range

This command displays information about the area ranges for the specified <areaid>. The <areaid> identifies the OSPFv3 area whose ranges are being displayed.

Default None
Format show ipv6 ospf range <areaid>
Mode

Privileged Exec

User Exec

Fields Definition
<areaid> The area ID of the requested OSPFv3 area

Display Messages

Fields Definition
Area ID The area ID of the requested OSPFv3 area
IPv6 Prefix/Prefix Length The summary prefix and prefix length.
Lsdb Type The type of link advertisement associated with this area range.
Advertisement The status of the advertisement. Advertisement has two possible settings: enabled or disabled.

show ipv6 ospf statistics

This command displays information about the 15 most recent Shortest Path First (SPF) calculations.

Default None
Format show ipv6 ospf statistics
Mode

Privileged Exec

User Exec

Display Messages

The command displays the following information with the most recent statistics displayed at the end of the table.

Fields Definition
Delta T The time since the routing table was computed. The time is in the format hours, minutes, and seconds (hh:mm:ss).
Intra The time taken to compute intra-area routes, in milliseconds.
Summ The time taken to compute inter-area routes, in milliseconds.
Ext The time taken to compute external routes, in milliseconds.
SPF Total The total time taken to compute routes, in milliseconds. The total may exceed the sum of Intra, Summ, and Ext times.
RIB Update The time from the completion of the routing table calculation until all changes have been made in the common routing table (the Routing Information Base, RIB), in milliseconds.
Reason

The event or events that triggered the SPF. The reaons codes are as follows:

R – New router LSA.

N – New network LSA.

SN – New network (inter-area prefix) summary LSA.

SA – New ASBR (inter-area router) summary LSA.

X – New external LSA.

IP – New Intra-area prefix LSA.

L – New Link LSA.

show ipv6 ospf stub table

This command displays the OSPF stub table. The information bello will only be displayed if OSPF is initialized on the switch.

Default None
Format show ipv6 ospf stub table
Mode

Privileged Exec

User Exec

Display Messages

Fields Definition
Area ID A 32-bit identifier for the created stub area.
Type of Service The type of service associated with the stub metric. Only supports Normal TOS.
Metric Val The metric value is applied based on the TOS. It defaults to the least metric of the type of service among the interfaces to other areas. The OSPF cost for a route is a function of the metric value.
Import Summary LSA Controls the import of summary LSAs into stub areas.