Skip to main content

 路由器设置网 > 新闻资讯 >

小议企业交换网络环境—被忽略STP优化

2012-06-02 00:11 浏览:

 

 

此文背景

最近有朋友谈起说他公司内部网络有时会莫名其妙的故障,症状多为网络突然掉线,而且之后无法ping 通网关,过一会就恢复正常,虽然无造成多大损失,可是也是很烦心的事情。

于是问他相关拓扑情况,发觉stp问题概率较大。

对于企业交换网络来说,最好的是有一个设计合理的拓扑,其次是性能良好的设备和合理的配置,最后是负责的维护。

现在来重演一下当时的环境

 SW1#show spanning-tree brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c007.00c0.0000
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c007.00c0.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/1      128.42   128    19 FWD     0 32768 c007.00c0.0000 128.42
FastEthernet1/2      128.43   128    19 FWD     0 32768 c007.00c0.0000 128.43
FastEthernet1/3      128.44   128    19 FWD     0 32768 c007.00c0.0000 128.44
FastEthernet1/15     128.56   128    19 FWD     0 32768 c007.00c0.0000 128.56


SW2#show spanning-tree brief

 

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c007.00c0.0000
             Cost        19
             Port        56 (FastEthernet1/15)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c008.00c0.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/1      128.42   128    19 FWD    19 32768 c008.00c0.0000 128.42
FastEthernet1/2      128.43   128    19 FWD    19 32768 c008.00c0.0000 128.43
FastEthernet1/3      128.44   128    19 FWD    19 32768 c008.00c0.0000 128.44
FastEthernet1/15     128.56   128    19 FWD     0 32768 c007.00c0.0000 128.56


SW3#show spanning-tree brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c007.00c0.0000
             Cost        19
             Port        42 (FastEthernet1/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c009.00c0.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/1      128.42   128    19 FWD     0 32768 c007.00c0.0000 128.42
FastEthernet1/2      128.43   128    19 BLK    19 32768 c008.00c0.0000 128.42
FastEthernet1/15     128.56   128    19 FWD    19 32768 c009.00c0.0000 128.56

 

SW4#show spanning-tree brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c007.00c0.0000
             Cost        19
             Port        42 (FastEthernet1/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c00a.00c0.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/1      128.42   128    19 FWD     0 32768 c007.00c0.0000 128.43
FastEthernet1/2      128.43   128    19 BLK    19 32768 c008.00c0.0000 128.43


SW5#show spanning-tree brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c007.00c0.0000
             Cost        19
             Port        42 (FastEthernet1/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c00b.1028.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/1      128.42   128    19 FWD     0 32768 c007.00c0.0000 128.44
FastEthernet1/2      128.43   128    19 BLK    19 32768 c008.00c0.0000 128.44


sw6#show spanning-tree brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c007.00c0.0000
             Cost        38
             Port        56 (FastEthernet1/15)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c00e.1028.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 300

 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/14     128.55   128    19 FWD    38 32768 c00e.1028.0000 128.55
FastEthernet1/15     128.56   128    19 FWD    19 32768 c009.00c0.0000 128.56


 

 一、了解情况