《2022年2022年快速生成树配置(cisco .pdf》由会员分享,可在线阅读,更多相关《2022年2022年快速生成树配置(cisco .pdf(4页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、实验五、快速生成树配置一、实验目的:掌握交换机上生成树协议的诊断方法。二、背景描述:假设某企业采用两台交换机组成一个局网,由于很多数据流量是跨过交换机进行转发的,因此需要提高交换机之间的传输带宽,并实现链路冗余备分,为此网络管理员在两台交换机之间采用两根网线互联, 三、实现功能:配置两个交换机之间的冗余主干道,对运行的生成树协议进行诊断。四、实验设备:CISCO交换机 Catalyst2950 两台,控制台电缆一条,交叉双绞线若干。五、实验拓扑:六、实验步骤:1、 交换机 switchA 的基本配置 : F0/5 switchB switchA PC PC F0/1 F0/1 F0/2 F0/
2、2 F0/5 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 4 页 - - - - - - - - - Switchenable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SwitchA SwitchA(config)#vlan 10 VLAN 10 added: Name:VLAN0010
3、SwitchA(config)#interface vlan 10 SwitchA(config-if)#ip address 192.168.0.1 255.255.255.0 SwitchA(config-if)#exit SwitchA(config)#interface fa 0/5 SwitchA(config-if)#switchport access vlan 10 SwitchA(config-if)#exit SwitchA(config)#interface fa 0/1 SwitchA(config-if)#switchport mode trunk SwitchA(co
4、nfig-if)#interface fa 0/ 2 SwitchA(config-if)#switchport mode trunk SwitchA(config-if)#exit SwitchA(config)#spanning-tree portfast default SwitchA(config)#exit SwitchA#show spanning-tree VLAN001 Spanning tree enabled protocol ieee Root ID Priority 32768 Address 000C.1000.4605 This bridge is the root
5、 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address 000C.1000.4605 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Port ID Designated Port ID Name Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr - - - - - - - Fa0/1 32768.1 0 FWD 0 32768 000C
6、.1000.4605 0.1 Fa0/2 32768.2 0 FWD 0 32768 000C.1000.4605 0.2 10 Spanning tree enabled protocol ieee Root ID Priority 32768 Address 000C.1000.4605 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 4 页 - - - - - - - - - This bridge is the root Hello Time 2 sec Max
7、Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address 000C.1000.4605 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Port ID Designated Port ID Name Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr - - - - - - - Fa0/1 32768.1 0 FWD 0 32768 000C.1000.4605 0.1 Fa0/2 3
8、2768.2 0 FWD 0 32768 000C.1000.4605 0.2 Fa0/5 32768.5 0 FWD 0 32768 000C.1000.4605 0.5 2、交换机switchB 的配置:Switchenable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SwitchB SwitchB(config)#vlan 10 VLAN 10 added: Name:VLAN0010 SwitchB(con
9、fig)#interface fa 0/ 5 SwitchB(config-if)#switchport access vlan 10 SwitchB(config-if)#exit SwitchB(config)#spanning-tree portfast default SwitchB(config)#interface fa 0/1 SwitchB(config-if)#switchport mode trunk SwitchB(config-if)#exit SwitchB(config)#interface fa 0/ 2 SwitchB(config-if)#switchport
10、 mode trunk SwitchB(config-if)#exit SwitchB#show spanning-tree VLAN001 Spanning tree enabled protocol ieee Root ID Priority 32768 Address 000C.1000.4605 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address 000C.4006.4286 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - -
11、 - - - - - 名师精心整理 - - - - - - - 第 3 页,共 4 页 - - - - - - - - - Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Port ID Designated Port ID Name Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr - - - - - - - Fa0/1 32768.1 19 FWD 0 32768 000C.1000.4605 19.1 Fa0/2 32768.2 19 BLK 0
12、32768 000C.1000.4605 19.2 VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 32768 Address 000C.1000.4605 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address 000C.4006.4286 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Interface Port
13、 ID Designated Port ID Name Prio.Nbr Cost Sts Cost Bridge ID Prio.Nbr - - - - - - - Fa0/1 32768.1 19 FWD 0 32768 000C.1000.4605 19.1 Fa0/2 32768.2 19 BLK 0 32768 000C.1000.4605 19.2 Fa0/5 32768.5 0 FWD 0 32768 000C.4006.4286 0.5 3.如果 switchA 与 switchB 间的端口 F0/1之间的链路down 掉, 验证 PC1与 PC2仍能互相 ping通,并观察ping 的丢包情况。都通是 ping 一下没有丢包,共四个包。正 ping 的同时拔去端口F0/1 之间的链路,就丢掉一个包,剩三个包。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 4 页 - - - - - - - - -