STP配置命令
来源:互联网 发布:淘宝代理加盟的骗局 编辑:程序博客网 时间:2024/06/05 08:19
之前已经讲了STP算法,这一篇讲命令
1、查看STP
SW1#sh spanning-tree
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 4097
Address 0090.21BD.4AE6
This bridge is the root //RB才会有这句话
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4097 (priority 4096 sys-id-ext 1)
Address 0090.21BD.4AE6
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p
SW1(config)#spanning-tree vlan 1 priority 12345
% Bridge Priority must be in increments of 4096.
% Allowed values are:
0 4096 8192 12288 16384 20480 24576 28672
32768 36864 40960 45056 49152 53248 57344 61440
SW1(config)#spanning-tree vlan 1 priority 4096
如果优先级写错了,他会提示你必须是4096的倍数。3、修改端口优先级
这张图上一篇博客已经讲过了,那如果我想让Switch4的F0/1口通,阻塞F0/2口,那我应该调整的就是Switch3的端口ID,不懂的可以看一下前一篇
Switch(config-if)#spanning-tree vlan 1 port-priority 64
补充提示:Switch(config-if)#spanning-tree vlan 1 port-priority ?
<0-240> port priority in increments of 16
注意是16的倍数- STP配置命令
- 交换机生成树协议STP的配置命令
- 交换机STP配置
- stp协议配置
- 华为 交换机 配置STP
- 2618交换机STP配置
- 3228交换机STP配置
- 自制STP配置实验
- STP原理与配置
- 华为三层交换机STP配置
- 华为交换机STP的配置
- 华为交换机stp简单配置
- STP
- STP
- STP
- STP
- stp
- STP
- 递归算法
- 关于恶意经销商模型的一些思考
- 运行portecle.jar
- RecyclerView的侧滑删除置顶等实现
- SpringMVC 4.1 新特性(二)内容协商视图
- STP配置命令
- matlab imregionalmax/imregionalmin 函数 C++实现
- 记录一次https的调试
- Fragment在Android中的使用基础加实战
- XlistView的简单的使用
- 入门动画篇之UIView动画(二)-----浅谈CABasicAnimation基本使用方法
- jsonlib的测试使用
- glStencilFuncSeparate
- vue.js原生组件化开发(一)——组件开发基础