如何在 Dell Networking PowerConnect 交换机上通过命令行管理快速生成树 (RSTP)
Summary: 如何在戴尔交换机上设置生成树、如何在 Dell PowerConnect 交换机上设置生成树、如何在戴尔交换机上设置 RSTP、如何在 Dell PowerConnect 交换机上设置 RSTP
Instructions
本文介绍如何通过命令行界面 (CLI) 在 Dell Networking PowerConnect 交换机上实施快速生成树协议 (RSTP)。
涵盖的主题
2. 启用 RSTP
3. 设置根桥接优先级
4. 启用 Portfast
5. 验证生成树设置
PowerConnect 上生成树的默认值
- 在所有端口上全局启用
- 已启用 RSTP 模式(已禁用经典 STP 和 MSTP)
- 交换机优先级设置为 -- 32768
- PortFast 模式设置为 -- disabled(已禁用)
启用 RSTP
|
命令 |
用途 |
|
console# configure |
进入交换机的配置级别 |
|
console(config)# spanning-tree mode RSTP |
在交换机上全局启用生成树模式 RSTP。 |
|
console(config)# no spanning-tree mode |
在交换机上全局禁用生成树 |
设置根桥接优先级
|
命令 |
用途 |
|
console# configure |
进入交换机上的配置级别。 |
|
console(config)# spanning-tree priority 4096 |
设置交换机全局生成树优先级。 范围 。(步骤 4096) |
启用 Portfast
建议配置所有边缘端口,将转至打印机、手机、服务器、工作站等最终设备的端口设置为 Portfast。当链路未经过侦听或学习状态而出现时,Portfast 中的端口将直接移至转发状态。
|
命令 |
用途 |
|
console# configure |
进入交换机的配置级别 |
|
console(config)# interface te 1/0/1 |
进入特定物理端口接口。 |
|
console(config)# spanning-tree portfast |
在接口上启用 portfast。 |
验证生成树设置
console# show spanning-tree
生成树:已启用 - BPDU Flooding:已禁用 - Portfast BPDU 筛选:已禁用 - 模式:rstp
CST Regional Root: 80:00:D0:67:E5:A5:7F:C5
区域根路径成本:0
根 ID
优先级 32768
地址 D067.E5A5.7FC5
此交换机是根。
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec TxHoldCount 6 sec
console# show running-config interface tengigabitethernet 1/0/1
生成树 portfast