STP 2 - 关于生成树的思科命令
来源:互联网 发布:java和android的前景 编辑:程序博客网 时间:2024/06/11 05:34
想到了就总结一下,以后用起来也方便查询
Bridge ID包括:
1. Bridge Priority (0-61440 以4096递增)
2. System ID Extension (0-4095 实际就是vlan id)
3. MAC地址
改变根桥选举过程
1. 手动更改BID 优先级 - 数字越小越好
Router(config)#spanning-tree vlan 1 priority ?
<0-65535> bridge priority
2. 直接指定根桥 (基于当前root更改本地优先级)
Router(config)#spanning-tree vlan 1 root ?
primary Configure this switch as primary root for this spanning tree
secondary Configure switch as secondary root
3. 验证
- sh spanning-tree vlan [vlan ID]
- Router#sh spanning-tree root
VLAN1
Root ID Priority 32768
Address cc00.5f24.0000
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
根端口选举 (RP election)
- RP是上行面向根桥的端口
- 根据最小的链路代价来选举的(lowest Root Path Cost)
- 链路代价(带宽越大,代价约小 且不是线性的)
- 如果链路代价一样:更低的上行交换机BID,更小的上行端口号
DP选举
DP 是下行远离根桥的端口,选择方法和根端口一样
- 最小链路代价
- 最小BID
- 最小端口号
剩余非根端口,非DP,则进入block mode (根本上讲该端口不会录入MAC地址到CAM table)
- 接收BPDU包
- 忽略所有其他数据包
- 不能发送数据包
更改端口代价
-Router(config-if)#spanning-tree vlan 1 cost ?
<1-65535> Change an interface's per VLAN spanning tree path cost
- bandwidth [bps]
验证
- sh spanning -tree interface [int ID] detail
- sh spanning-tree vlan [vlan ID] detail
=========
命令输出读取root path cost
1. sh spanning-tree vlan [vlan ID] brief (似乎有的版本不需要输入brief, 如下图,31是端到端的root path cost)
- STP 2 - 关于生成树的思科命令
- 交换机生成树协议STP的配置命令
- STP生成树的选举过程。
- STP生成树协议的理解
- stp生成树笔记
- stp生成树
- 生成树协议STP
- STP生成树协议
- STP生成树
- STP生成树协议
- STP生成树协议
- STP手动计算生成树以及STP\RSTP\MSTP的区别
- 生成树协议(STP)
- 生成树协议(STP)
- 生成树协议(STP)收敛
- 生成树协议STP简介
- 详解生成树协议(STP)
- Layer2-STP生成树协议
- 用CMD文件对拍
- UVA-11995 I Can Guess the Data Structure!(STL:各容器的简单运用)
- 五月一号的详细任务布置
- win8.1 secureboot 未正确配置
- gethibernatetemplate() 空指针异常
- STP 2 - 关于生成树的思科命令
- struct 中的位域指示操作符“:”
- 193 - Graph Coloring(DFS)
- Android Studio Test 手电筒核心代码
- LeetCode刷题笔录Best Time to But and Sell Stock II
- 安装 SlickEdit 16.0.3
- 2014年5月整理java面试题
- 简易版之最短距离 2083
- BioPerl:批量转换序列格式