display mstp
时间: 2023-11-15 14:00:12 浏览: 33
display mstp是一个命令,用于显示MSTP(Multiple Spanning Tree Protocol,多重生成树协议)的配置和状态信息。它可以显示MSTP实例的名称、优先级、根桥、端口状态等信息。通过这个命令,可以查看MSTP的配置是否正确,以及各个交换机之间的MSTP状态是否正常。
相关问题
华为交换机配置MSTP
华为交换机配置MSTP的步骤如下:
1. 配置MST域名称和MSTP优先级。
2. 配置MST域和VLAN之间的映射关系。
3. 配置MSTP端口优先级和端口角色。
4. 配置MSTP保护功能,如BPDU保护、根保护、环路保护和TC保护。
5. 验证MSTP配置是否正确。
具体的配置命令如下:
1. 配置MST域名称和MSTP优先级:
[huawei] stp mode mstp
[huawei] stp region-configuration
[huawei-stp-region] region-name MSTP-Region
[huawei-stp-region] revision-level 1
[huawei-stp-region] instance 1 vlan 10 to 20
[huawei-stp-region] instance 2 vlan 30 to 40
[huawei-stp-region] instance 3 vlan 50 to 60
[huawei-stp-region] active region-configuration
2. 配置MST域和VLAN之间的映射关系:
[huawei] vlan batch 10 to 60
[huawei] stp instance 1 vlan 10 to 20
[huawei] stp instance 2 vlan 30 to 40
[huawei] stp instance 3 vlan 50 to 60
3. 配置MSTP端口优先级和端口角色:
[huawei] interface gigabitethernet 0/0/1
[huawei-GigabitEthernet0/0/1] stp edged-port enable
[huawei-GigabitEthernet0/0/1] stp port-priority 32
huawei-GigabitEthernet0/0/1] stp cost 2000
4. 配置MSTP保护功能:
huawei] stp tc-protection enable
[huawei] stp tc-protection threshold 3
[huawei] stp root-protection enable
[huawei] stp loop-protection enable
5. 验证MSTP配置是否正确:
[huawei] display stp brief
MSTP华为配置命令
MSTP(Multiple Spanning Tree Protocol)是一种用于在网络中配置多个交换机的生成树协议,以提高网络的可靠性和可扩展性。以下是常用的MSTP华为配置命令:
1. 开启MSTP功能
```
[Switch] stp enable
[Switch] stp mode mstp
```
2. 配置MST实例数目
```
[Switch] mstp configuration
[Switch-mst] region-name MSTP
[Switch-mst] instance 1 vlan 100
[Switch-mst] instance 2 vlan 200
[Switch-mst] instance 3 vlan 300
[Switch-mst] exit
```
3. 配置MSTP根桥
```
[Switch] stp mstp priority <priority>
```
4. 配置MSTP端口优先级
```
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] stp mstp port-priority 32
```
5. 配置MSTP端口类型
```
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] stp edged-port enable
```
6. 配置MSTP端口是否允许接收BPDU
```
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] stp bpdu-filter enable
```
7. 查看MSTP状态
```
[Switch] display stp mst
```