我来告诉你STP中这是神马!!!

        学习完STP快几个月了,现在想来应该复习一下,孔子说:"学而实习之,不亦乐"!

现在复习一下果然有一些收获,拿出来和大家分享一下!!

拓扑图:

说明:我这里把SW1和SW2的F0/2都手动的Down掉

配置STP

SW1 pri:4096

SW2:pri:8192

SW3:pri:32768

SW2的F0/1的cost 20。

这样我们来看下SW3上show spann bri\

 

SW3#show span bri

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    4096
             Address     cc00.0db4.0000
             Cost        19
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     cc02.0db4.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  4096 cc00.0db4.0000 128.4 
FastEthernet0/2      128.3    128    19 FWD    19 32768 cc02.0db4.0000 128.3 
FastEthernet0/10     128.11   128    19 FWD    19 32768 cc02.0db4.0000 128.11
FastEthernet0/11     128.12   128    19 FWD    19 32768 cc02.0db4.0000 128.12

我们可以看到根网桥ID,根路径开销,本网桥ID,查看本网桥开启的端口的情况。

interface name就不用说了,对吧!

port ID也不用说了,也就是这个网桥的端口ID,

同样prio 也是本端口的优先级

Cost是本端口的STP开销。

Sts就是本端口在本vlan中的STP的逻辑状态,可能是FWD,BLK,LIsten,Learn一些状态。

后面的cost是 Designated cost

这个cost是指这个端口上发送的BPDU,或接收的BPDU的根网桥开销。

比如在F0/2这个端口上,BPDU由这个端口来发送(这个端口是这个链路上的指定端口)

cost就是发送的BPDU中根网桥开销

后面的Designated  Bridge ID       与  Designated    Port ID
 

同样是端口发送的BPDU的发送网桥ID,和发送端口ID。

 

你可能感兴趣的:(职场,休闲,STP,bpdu)