STP生成树协议

 
 
实难拓朴:
 
 
 
 
实验目标:
 
 
1.设置SWITCH1、SWITCH3的优先级为1000
 
2.对比SWITCH2、SWITCH4的根端口
 
3.配置SWITCH1与SWITCH3之间的以太网通道
 
实验步骤:
 
 
目标1
1 sw1(config)#spanning-tree vlan 1     启用生成树。
Sw2(config)#spanning-tree vlan 1
Sw2(config)#spanning-tree vlan 1
Sw2(config)#spanning-tree vlan 1
2 sw1(config)#spanning-tree vlan 1 priority 1000  设置 SW1 的优先级为 1000
   Sw3(config)#spanning-tree vlan 1 priority 1000   设置 SW3 的优先级为 1000
 
目标2
1.         SW2 的根端口如下所示:
sw2#show spanning-tree br
*Mar  1 00:23:09.335: %SYS-5-CONFIG_I: Configured from console by console
sw2#show spanning-tree br
 
VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    1000
             Address     cc00.0420.0000
             Cost        31
             Port        2 (FastEthernet0/1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 
  Bridge ID  Priority    32768
             Address     cc00.0324.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
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD    12  1000 cc00.0460.0000 128.2  根端口
FastEthernet0/2      128.3    128    19 BLK    12  1000 cc00.0460.0000 128.3 
 
2.             SW4 的根端口如下所示:
 sw4#show spanning-tree br
 
VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    1000
             Address     cc00.0420.0000
             Cost        19
             Port        3 (FastEthernet0/2)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 
  Bridge ID  Priority    32768
             Address     cc00.0e78.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
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 BLK     0  1000 cc00.0420.0000 128.3 
FastEthernet0/2      128.3    128    19 FWD     0  1000 cc00.0420.0000 128.2  根端口。
 
 
 
目标3
1.         SW1
sw1(config)#interface range f0/14 �C 15     
sw1(config-if-range)#channel-group 1 mode on        (配置 SW1 上的 f0/14 �C 15 为以太网通道)
Creating a port-channel interface Port-channel1
sw1(config-if-range)#
2.             SW3 同样的配置。
3.             验证:
     sw1#show spanning-tree br
 
VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    1000
             Address     cc00.0420.0000
             Cost        12
             Port        321 (Port-channel1)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 
  Bridge ID  Priority    1000
             Address     cc00.0460.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
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD    12  1000 cc00.0460.0000 128.2 
FastEthernet0/2      128.3    128    19 FWD    12  1000 cc00.0460.0000 128.3 
Port-channel1        129.65   128    12 FWD     0  1000 cc00.0420.0000 129.65
  
 
sw3#show spanning-tree br
 
VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    1000
             Address     cc00.0420.0000
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
 
  Bridge ID  Priority    1000
             Address     cc00.0420.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
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet0/1      128.2    128    19 FWD     0  1000 cc00.0420.0000 128.2 
FastEthernet0/2      128.3    128    19 FWD     0  1000 cc00.0420.0000 128.3 
Port-channel1        129.65   128    12 FWD     0  1000 cc00.0420.0000 129.65
 

本文出自 “michaelfung_专栏” 博客,转载请与作者联系!

你可能感兴趣的:(职场,休闲,STP,生成树协议,STP工作原理与以太网通道)