【文章內(nèi)容簡(jiǎn)介】
開銷;指定交換機(jī) ID替換為自身交換機(jī)的 ID;指定端口 ID替換為自身端口 ID。 5 配置舉例 交換機(jī)的比較過程 ( Switch A ) 端口 Ether 0/1收到 Switch B的配置消息, Switch A發(fā)現(xiàn)本端口的配置消息優(yōu)先級(jí)低于接收到的配置消息的優(yōu)先級(jí),于是更新本端口 Ether 0/1的配置消息。 端口 Ether 0/3收到 Switch C的配置消息, Switch A發(fā)現(xiàn)本端口的配置消息優(yōu)先級(jí)高于接收到的配置消息的優(yōu)先級(jí),就把接收到的配置消息丟棄。 則此時(shí)各個(gè)端口的配置消息如下: 端口 Ether 0/1配置消息: {, 200, , e0/1} 端口 Ether 0/3配置消息: {, 0, , e0/3} Switch A對(duì)各個(gè)端口的配置消息進(jìn)行比較,選出端口 Ether 0/1的配置消息為最優(yōu)配置消息,然后將端口 Ether 0/1定為根端口,整臺(tái)交換機(jī)各個(gè)端口的配置消息都進(jìn)行如下更新: 根端口 Ether 0/1配置消息不作改變: {, 200, fc17c484, e0/1}。端口 Ether 0/3配置消息中,樹根 ID更新為最優(yōu)配置消息中的樹根 ID,根路徑開銷更新為 200,指定交換機(jī) ID更新為本交換機(jī) ID,指定端口 ID更新為本端口 ID,配置消息變?yōu)椋?{, 200, ,e0/3}。然后 Switch A各個(gè)指定端口周期性向外發(fā)送自己的配置消息。 5 配置舉例 [SwitchA]display stp interface ether0/1 ether0/3 Protocol mode: IEEE RSTP The bridge ID (): The bridge times: Hello Time 2 sec, Max Age 20 sec, Forward Delay 15 sec Root bridge ID(): Root path cost: 200 Bridge bpduprotection: disabled Timeout factor: 3 Port 1 (Ether0/1) of bridge is Forwarding Port spanning tree protocol: enabled Port role: Root Port Port path cost: 200 Port priority: 128 Designated bridge ID(): The Port is a nonedged port Connected to a pointtopoint LAN segment Maximum transmission limit is 3 Packets / hello time Times: Hello Time 2 sec, Max Age 20 sec Forward Delay 15 sec, Message Age 0 BPDU sent: 4 TCN: 0, RST: 4, Config BPDU: 0 BPDU received: 458 TCN: 0, RST: 458, Config BPDU: 0 5 配置舉例 Port 3 (Ether0/3) of bridge is Forwarding Port spanning tree protocol: enabled Port role: Designated Port Port path cost: 200 Port priority: 128 Designated bridge ID(): The Port is a nonedged port Connected to a pointtopoint LAN segment Maximum transmission limit is 3 Packets / hello time Times: Hello Time 2 sec, Max Age 20 sec Forward Delay 15 sec, Message Age 1 BPDU sent: 563 TCN: 0, RST: 563, Config BPDU: 0