display ospfv3 spf-tree

Use display ospfv3 spf-tree to display OSPFv3 SPF tree information.

Syntax

display ospfv3 [ process-id ] [ area area-id ] spf-tree [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify a process, this command displays SPF tree information for all OSPFv3 processes.

area area-id: Specifies an OSPFv3 area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. If you do not specify an area, this command displays SPF tree information for all OSPFv3 areas.

verbose: Displays detailed OSPFv3 SPF tree information. If you do not specify this keyword, the command displays brief OSPFv3 SPF tree information.

Examples

# Display brief SPF tree information for Area 0 in OSPFv3 process 1.

<Sysname> display ospfv3 1 area 0 spf-tree

               OSPFv3 Process 1 with Router ID 1.1.1.1

 Flags: S-Node is on SPF tree       R-Node is directly reachable
        I-Node or Link is init      D-Node or Link is to be deleted
        P-Neighbor is parent        A-Node is in candidate list
        C-Neighbor is child         H-Nexthop changed
        N-Link is a new path        V-Link is involved

                 Area: 0.0.0.0  Shortest Path Tree

 SPFNode         Type   Flag         SPFLink         Type   Cost  Flag
>1.1.1.1         Router S R
                                  -->2.2.2.2         RT2RT  1     C
                                  -->2.2.2.2         RT2RT  1     P

Table 160: Command output

Field

Description

SPFNode

SPF node, represented by the advertising router ID.

Node type:

  • Network—Network node.

  • Router—Router node.

Node flag:

  • I—The node is in initialization state.

  • A—The node is on the candidate list.

  • S—The node is on the SPF tree.

  • R—The node is directly connected to the root node.

  • D—The node is to be deleted.

SPFLink

SPF link, representing the advertising router ID.

Link type:

  • RT2RT—Router to router.

  • NET2RT—Network to router.

  • RT2NET—Router to network.

Link flag:

  • I—The link is in initialization state.

  • P—The peer is the parent node.

  • C—The peer is the child node.

  • D—The link is to be deleted.

  • H—The next hop is changed.

  • V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted.

  • N—The link is newly added, and both end nodes are on the SPF tree.

  • L—The link is on the area change list.

# Display detailed topology information for Area 0 in OSPFv3 process 1.

<Sysname> display ospfv3 1 area 0 spf-tree verbose

               OSPFv3 Process 1 with Router ID 1.1.1.1

 Flags: S-Node is on SPF tree       R-Node is directly reachable
        I-Node or Link is init      D-Node or Link is to be deleted
        P-Neighbor is parent        A-Node is in candidate list
        C-Neighbor is child         H-Nexthop changed
        N-Link is a new path        V-Link is involved

           Area: 0.0.0.0  Shortest Path Tree

>SPFNode[0]
  AdvID        : 1.1.1.1                  LsID       : 0.0.0.0
  NodeType     : Router                   Distance   : 1
  NodeFlag     : S R
  Nexthop count: 1
 -->NbrID      : 1.1.1.1                  NbrIntID   : 21
    Interface  : Vlan102                  NhFlag     : Valid
    BkInterface: Vlan103                 RefCount    : 4
    Nexthop    : FE80::20C:29FF:FED7:F308
    BkNexthop  : FE80::4
  SPFLink count: 1
 -->AdvID      : 1.1.1.1                  LsID       : 0.0.0.0
    IntID      : 232                      NbrIntID   : 465
    NbrID      : 2.2.2.2                  LinkType   : RT2RT
    LinkCost   : 1                        LinkNewCost: 1
    LinkFlag   : C                        NexthopCnt : 0
  ParentLink count: 1
 -->AdvID      : 1.1.1.1                  LsID       : 0.0.0.0
    IntID      : 215                      NbrIntID   : 466
    NbrID      : 2.2.2.2                  LinkType   : RT2RT
    LinkCost   : 1                        LinkNewCost: 1
    LinkFlag   : P                        NexthopCnt : 0

Table 161: Command output

Field

Description

SPFNode

SPF node.

AdvID

ID of the advertising router.

LsID

Link state ID.

NodeType

Node type.

Distance

Cost to the root node.

NodeFlag

Node flag.

Nexthop count

Number of next hops.

NbrID

Neighbor router ID.

NbrIntID

Neighbor interface ID.

Interface

Output interface.

NhFlag

Next hop flag: valid or invalid.

BkInterface

Backup output interface.

RefCount

Reference count (routes that use the backup next hop).

Nexthop

Next hop.

BkNexthop

Backup next hop.

SPFLink count

Number of SPF links.

IntID

Interface ID.

LinkType

Link type:

  • RT2RT—Router to router.

  • NET2RT—Network to router.

  • RT2NET—Router to network.

LinkCost

Link cost.

LinkNewCost

New link cost.

LinkFlag

Link flag:

  • I—The link is in initialization state.

  • P—The peer is the parent node.

  • C—The peer is the child node.

  • D—The link is to be deleted.

  • H—The next hop is changed.

  • V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted.

  • N—The link is newly added, and both end nodes are on the SPF tree.

  • L—The link is on the area change list.

NexthopCnt

Number of next hops.

ParentLinkCnt

Number of parent links.