Viewing OSPF link-state information

Syntax:


show ip ospf link-state [status] [subsetoptions] [advertise [subset-options]] [detail]

To display OSPF link state information, enter show ip ospf link-state at any CLI level.

advertise

Displays the hexadecimal data in LSA packets (advertisements) for the OSPF areas configured on the routing switch.

The output can also be filtered by area ( area-id), link-state-id, router-id, sequence-number, and/or type.

Default: All OSPF areas configured on the routing switch.

ospf-area-id

Used to restrict display of LSA database or advertisements to show only the data from a specific OSPF area.

Can also be used with other subset options ( router-id, sequence-number, external link-state-id, and/or type) to further define the source of displayed information.

link-state-id ip-addr

Used to restrict display of LSA database or advertisements to show only the data from sources having the specified IP address as a link-state ID.

Can also be used with other subset options ( ospf-area-id, router-id, sequence-number, external link-state-id, and type) to further define the source of displayed information

router-id ip-addr

Used to restrict display of LSA database or advertisements to show only the data from sources having the specified router ID.

Can also be used with other subset options ( ospf-area-id, link-state-id, sequence-number, and type) to further define the source of displayed information.

sequence-number integer

Used to restrict display of LSA database or advertisements to show only the data from sources having the specified sequence number.

Can also be used with other subset options ( ospf-area-id, link-state-id, router-id, and type) to further define the source of displayed information.

type [router | network | summary | as-summary | external | multicast | nssa]

Used to restrict display of LSA database or advertisements to show only the data from sources having the specified type.

Can also be used with other subset options ( ospf-area-id, link-state-id, router-id, and sequence-number) to further define the source of displayed information.

detail

Displays LSA details for the OSPF area(s) configured on the routing switch. The output can also be filtered by area (area-id), link-state-id, router-id, and sequence-number. Default: All OSPF areas configured on the routing switch.

Example

When you enter this command, the switch displays an output similar to the following for all configured areas:

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.

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.

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.

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.

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.

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