display ospf spf-tree
Use display ospf spf-tree to display SPF tree information.
Syntax
display ospf [ process-id ] [ area area-id ] spf-tree [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
process-id: Specifies an OSPF 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 OSPF processes.
area area-id: Specifies an OSPF 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 OSPF areas.
verbose: Displays detailed SPF tree information. If you do not specify this keyword, the command displays brief SPF tree information.
Examples
# Display brief SPF tree information for Area 0 in OSPF process 1.
<Sysname> display ospf 1 area 0 spf-tree OSPF Process 1 with Router ID 100.0.0.4 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 T-Node is tunnel destination H-Nexthop changed N-Link is a new path V-Link is involved G-Link is in change list Topology base (MTID 0) Area: 0.0.0.0 Shortest Path Tree SpfNode Type Flag SpfLink Type Cost Flag >192.168.119.130 Network S R -->114.114.114.111 NET2RT 0 C -->100.0.0.4 NET2RT 0 P >114.114.114.111 Router S -->192.168.119.130 RT2NET 65535 P >100.0.0.4 Router S -->192.168.119.130 RT2NET 10 C
Table 50: Command output
Field | Description |
---|---|
Topology | This field is not supported in the current software version. Topology name. The topology name for base topology is base. |
MTID | This field is not supported in the current software version. Topology ID. The value of 0 indicates the base topology. |
SpfNode | SPF node, represented by a router ID when the node type is Router, or the IP address of the DR when the node type is Network. Node flag:
|
SpfLink | SPF link, representing the peer node. Link type:
Link flag:
|
# Display detailed SPF tree information for Area 0 in OSPF process 1.
<Sysname> display ospf 1 area 0 spf-tree verbose OSPF Process 1 with Router ID 100.0.0.4 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 T-Node is tunnel destination H-Nexthop changed N-Link is a new path V-Link is involved G-Link is in change list Topology base (MTID 0) Area: 0.0.0.0 Shortest Path Tree >LsId(192.168.119.130) AdvId : 100.0.0.4 NodeType : Network Mask : 255.255.255.0 SPFLinkCnt : 2 Distance : 10 VlinkData: 0.0.0.0 ParentLinkCnt: 1 NodeFlag: S R NextHop : 1 192.168.119.130 Interface: Vlan100 BkNextHop: 1 0.0.0.0 Interface: Vlan100 -->LinkId(114.114.114.111) AdvId : 100.0.0.4 LinkType : NET2RT LsId : 192.168.119.130 LinkCost : 0 NextHopCnt: 1 LinkData: 0.0.0.0 LinkNewCost: 0 LinkFlag : C -->LinkId(100.0.0.4) AdvId : 100.0.0.4 LinkType : NET2RT LsId : 192.168.119.130 LinkCost : 0 NextHopCnt: 1 LinkData: 0.0.0.0 LinkNewCost: 0 LinkFlag : P
Table 51: Command output
Field | Description |
---|---|
Topology | This field is not supported in the current software version. Topology name. The topology name for base topology is base. |
MTID | This field is not supported in the current software version. Topology ID. The value of 0 indicates the base topology. |
LsId | Link state ID. |
AdvId | ID of the advertising router. |
NodeType | Node type:
|
Mask | Network mask. Its value is 0 for a router node. |
SPFLinkCnt | Number of SPF links. |
Distance | Cost to the root node. |
VlinkData | Destination address of virtual link packets. |
ParentLinkCnt | Number of parent links. |
NodeFlag | Node flag:
|
NextHop | Next hop. |
Interface | Output interface. |
BkNextHop | Backup next hop. |
LinkId | Link ID. |
LinkType | Link type:
|
LinkCost | Link cost. |
NextHopCnt | Number of next hops. |
LinkData | Link data. |
LinkNewCost | New link cost. |
LinkFlag | Link flag:
|