华为交换机STP常用命令

2022-11-24,,,

STP配置和选路规则


stp enable 在交换机上启用STP
stp mode stp
dis stp 查看stp配置
dis stp brief 查看接口摘要信息
stp priority 4096 修改交换机优先级为4096
stp root primary 设置交换机为主根交换机
stp root secondary 命令配置备份交换机
display stp interface Ethernet 0/0/2 查看e0/0/2接口的开销值
int e0/0/2
stp cost 2000 配置接口e0/0/2的带价值为2000
stp timer forward-delay 3000 修改STP的Forward Delay时间为3000cs也就是30s
stp bridge-diameter 3 命令设置网络的直径为3
stp mode rstp 启用RSTP使用RSTP可以缩短收敛时间
int e0/0/1
stp edged-port enable 配置接口e0/0/1为边缘端口不参与生成树的计算

配置MSTP多实例

stp region-configuration 进入MST域视图
region-name huawei 配置MST域名为huawei
revision-level 1 配置MSTP的修订级别为1
instance 1 vlan 10 指定VLAN 10映射到MSTI 1
active region-configuration 激活MST域配置
display stp region-configuration 查看交换机上当前生效的MST域配置信息
dis stp instance 0 brief 查看实例0中的生成树状态和统计的摘要信息
stp instance 2 priority 0 配置交换机成位实例2中的根交换机

华为交换机STP常用命令的相关教程结束。

《华为交换机STP常用命令.doc》

下载本文的Word格式文档,以方便收藏与打印。