天天看點

ccna第七課 STP協定

stp算法步驟

1.選擇根網橋 網橋ID最小

2.選擇根端口 根路徑成本最低 直連網橋ID最小 端口ID最小

3.選擇指定端口 根路徑成本最低 所在網橋ID值最小 端口ID值最小

交換機之間使用BPDU橋協定資料單元來交換stp資訊

pvst配置指令(必須有vlan 接口必須為trunk)

switch(config)#spanning-tree vlan vlan-list 啟動生成樹

switch(config)#spanning-tree vlan vlan-list root primary設定根網橋

switch(config)#spanning-tree vlan vlan-list priority (為4096的倍數)設定網橋優先級

switch(config-if)#spanning-tree vlan vlan-list cost coat值 修改端口成本

switch(config-if)#spanning-tree vlan vlan-list port-priority priority 修改端口優先級

switch#show apanning-tree 檢視生成樹的配置

switch#show spanning-tree vlan vlan-id detail 檢視vlan的生成樹詳細資訊

配置接口為一台通道模式

switch(config)#interface range f0/1-2

switch(config-if-range)#channel-group 1 mode on

switch# show etherchannel  summary 檢視以太通道的配置

繼續閱讀