您的位置:首页 > 其它

PingingLab传世经典系列《CCNA完全配置宝典》-3.10 PVST基本配置

2013-08-10 10:27 447 查看
3.10 PVST基本配置实验目的:
1、掌握PVST的基本配置。
2、理解PVST的负载均衡原理。
实验拓扑:



实验步骤:1、依据图中拓扑部署PVST技术,其中SW1为VLAN10的Root,VLAN20的Secondary,SW2为VLAN20的Root,VLAN10的Secondary,配置如下:SW1(config)#spanning-tree vlan 10 root primarySW1(config)#spanning-tree vlan 20 root secondarySW2(config)#spanning-tree vlan 20 root primarySW2(config)#spanning-tree vlan 10 root secondary2、查看STP状态,如下:SW1上:SW1#show spanning-tree vlan 10 briefVLAN10 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc05.0810.0001This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc05.0810.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300Interface DesignatedName Port ID Prio Cost Sts Cost Bridge ID Port ID-------------------- ------- ---- ----- --- ----- -------------------- -------FastEthernet0/0 128.1 128 19 FWD 0 8192 cc05.0810.0001 128.1 FastEthernet0/1 128.2 128 19 FWD 0 8192 cc05.0810.0001 128.2可以看到,SW1已经成为VLAN 10的主根。SW2上:SW2#show spanning-tree vlan 20 briefVLAN20 Spanning tree enabled protocol ieee Root ID Priority 8192Address cc06.0810.0002This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc06.0810.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300Interface DesignatedName Port ID Prio Cost Sts Cost Bridge ID Port ID-------------------- ------- ---- ----- --- ----- -------------------- -------FastEthernet0/0 128.1 128 19 FWD 0 8192 cc06.0810.0002 128.1 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc06.0810.0002 128.3 可以看到,SW2已经成为VLAN 20的主根。SW3上:SW3#show spanning-tree vlan 10 briefVLAN10 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc05.0810.0001 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc07.0810.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300Interface DesignatedName Port ID Prio Cost Sts Cost Bridge ID Port ID-------------------- ------- ---- ----- --- ----- -------------------- -------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc05.0810.0001 128.2 FastEthernet0/2 128.3 128 19 BLK 19 16384 cc06.0810.0001 128.3 SW3#show spanning-tree vlan 20 briefVLAN20 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc06.0810.0002 Cost 19 Port 3 (FastEthernet0/2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc07.0810.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300Interface DesignatedName Port ID Prio Cost Sts Cost Bridge ID Port ID-------------------- ------- ---- ----- --- ----- -------------------- -------FastEthernet0/1 128.2 128 19 BLK19 16384 cc05.0810.0002 128.2 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc06.0810.0002 128.3 从上面可以看到,SW3在VLAN10所在生成树中阻塞F0/2,在VLAN20所在生成树阻塞F0/1,通过此方法可以实现负载均衡。此实验完成。==========================================PingingLab·高品质IT教育提供商CCIE 实验室·IT项目实战·高端人才定制深圳拼客信息科技有限公司·广州大学城外环西路站新浪微博:@拼客科技PingingLab @PingingLab-陈鑫杰PingingLab微信公众号:pinginglab PingingLab技术交流群:240920680

本文出自 “陈鑫杰讲网络” 博客,请务必保留此出处http://chenxinjie.blog.51cto.com/7749507/1274498
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐