Function
This command is used to query the details of the multiple spanning tree 
protocol (MSTP). You can analyze and maintain the network topology based on the 
status and statistical information about MSTP. 
Parameters
| Parameter | Description | Value | 
|---|---|---|
| instance instance-id | Indicates the spanning tree instance ID. When you need to query the specified spanning tree instance, select this parameter. | Numeral type. Range: 0-16. The value 0 indicates common and internal spanning tree (CIST) instance (instance 0), which cannot be deleted. | 
| port frameid/slotid/portid | Identifies the shelf/slot/port ID. Enter "/" between the shelf, slot and port IDs. When you need to query the MSTP details of a specified port, use this parameter. | Please see Differences Between Shelves. | 
Usage Guidelines
You can analyze and maintain the network topology based on the 
status and statistical information about MSTP. 
- If you do not specify the spanning tree instance ID and port ID, the system displays the spanning tree information about all instances on all ports, in the sequence of the port ID.
- If you specify the spanning tree instance ID, the system displays only the spanning tree information about this instance on all ports.
- If you specify only the port ID, the system displays the information about all spanning tree instances on this port, in the sequence of the port ID.
- If you specify both the spanning tree instance ID and the port ID, the system displays instance ID and then displays the spanning tree information about the port.
Example
To query the global details of MSTP, do as follows:
huawei#display stp
 The bridge is executing the IEEE Multiple Spanning Tree Protocol
   Bridge Diameter    : 7        Max Hops            : 20
   PathCost standard  : LEGACY   BPDU-Protection     : disabled
   Time Factor        : 3
   TC or TCN received : 0        Time since last TC  : 9 days  2h:27m:33s
   MD5-key            : 13AC06A62E47FD51F95D2BA243CD0346
   ============================== Instance  0 ==================================
   Bridge     Priority  : 32768   MAC Address  : 00e0-fc00-c16b
              Hello Time:  2 sec  Forward Delay: 15 sec  Max Age: 20 sec
   IST Root   Priority  : 32768   MAC Address  : 00e0-fc00-c16b
              Hello Time:  2 sec  Forward Delay: 15 sec  Max Age: 20 sec
   CST Root   Priority  : 32768   MAC Address  : 00e0-fc00-c16b
              Hello Time:  2 sec  Forward Delay: 15 sec  Max Age: 20 sec
   Path cost to IST root bridge is 0
   Path cost to CST root bridge is 0
   -----------------------------------------------------------------------------
   Index  F/ S/ P  Priority  Cost      Admin-State  Role  State      Type
   -----------------------------------------------------------------------------
   1      0/ 3/ 0  128       200000    Enabled      Disa  Down       None
   2      0/ 3/ 1  128       200000    Enabled      Disa  Down       None
   -----------------------------------------------------------------------------
To query the MSTP details of instance 1, do as follows: huawei#display stp instance 1
 The bridge is executing the IEEE Multiple Spanning Tree Protocol
   Bridge Diameter    : 7        Max Hops            : 20
   PathCost standard  : LEGACY   BPDU-Protection     : disabled
   Time Factor        : 3
   TC or TCN received : 0        Time since last TC  : 9 days  2h:29m: 4s
   MD5-key            : 13AC06A62E47FD51F95D2BA243CD0346
   ============================== Instance  1 ==================================
   Bridge     Priority  : 32768   MAC Address  : 00e0-fc00-c16b
              Hello Time:  2 sec  Forward Delay: 15 sec  Max Age: 20 sec
   IST Root   Priority  : 32768   MAC Address  : 00e0-fc00-c16b
              Hello Time:  2 sec  Forward Delay: 15 sec  Max Age: 20 sec
   Path cost to IST root bridge is 0
To query the MSTP details of port 0/19/0, do as 
follows: huawei#display stp port 0/19/0
----[CIST][Port1(Down)]----
 Port Protocol       :enabled
 Port Role           :CIST Disabled Port
 Port Priority       :128
 Port Cost           :Config=auto / Active=200000
 Desg. Bridge/Port   :32768.00e0-fc00-c16b / 128.1
 Port Edged(Admin)   :disabled
 Point-to-point      :Config=auto / Active=false
 Transit Limit       :3 packets/hello-time
 Protection Type     :None
 Port Stp Mode       :Stp
 Port Compliance     :auto
 PortTimes           :Hello 2 s MaxAge 20 s FwDly 15 s Message Age 0 s RemHop 20
 BPDU Sent           :0
     TCN: 0, Config: 0, RST: 0, MST: 0
 BPDU Received       :0
     TCN: 0, Config: 0, RST: 0, MST: 0
 
No comments:
Post a Comment