还剩5页未读,继续阅读
文本内容:
组网案例VRRP+STP根据网上实际的运用情况,可以将和的典型组网按照的使用情况进行分STP VRRPSTP类,分别为单实例模式和多实例模式两者各有优劣,前者配置简单,维护方便,STP STP但是在流量上无法进行分担;后者配置上相对复杂一些,维护上也需要对有更深入的理解,STP但是能够有效地分担流量,充分利用带宽、单实例模式1STP通过阻塞一些冗余端口来达到链路无环的目的对于单实例惟独实例进行生STP STP,0成树计算,因此最终只生成一棵树,导致的结果是环上被阻塞的端口对环上所有的来说VLAN都是同一端口,无法实现负载分担、设备配置
1.2NBR200路由配置ip route
192.
168.
3.
0255.
255.
255.
0192.
168.
0.250ip route
192.
168.
3.
0255.
255.
255.
0192.
168.
1.2100S3550_Avlan1i■vlan2i■vlan3spanning-treespanning-tree mst0priority4096interface FastEthernet0/1switchport accessvlan2spanning-tree portfasti■interface FastEthernet0/2switchport modetrunk switchporttrunk allowed vlan remove1-2,5-4094i■interface FastEthernet0/3switchport accessvlan4i*interface Vlan2i*interface Vlan3i■interface Vlan4standby1priority150i■ip route
0.
0.
0.
00.
0.
0.0Vlan
2192.
168.
0.150enabled ip route
0.
0.
0.
00.
0.
0.0Vlan
3192.
168.
2.2100enabled S3550B:vlan1ivlan2i*vlan3i■vlan4i*spanning-treeinterface FastEthernet0/1switchport accessvlan2spanning-tree portfasti*interface FastEthernet0/2switchport modetrunkinterface FastEthernet0/3switchport accessvlan4interface Vian2i■interface Vian3i*interface Vian4i*ip route
0.
0.
0.
00.
0.
0.0Vian
2192.
168.
1.150enabledip route
0.
0.
0.
00.
0.
0.0Vian
3192.
168.
2.1100enabled S2150Gspanning-treeinterface fastEthernet0/16spanning-tree portfast、配置说明
1.3为的同时也是生成树的根;为了备份两台交换机到的流S3550_A VRRPMASTER,S3550NBR量,在两台间启用三层接口;、和均配置两条目的地相同但S3550NBR S3550_A S3550_B不同的路由(和配置的是缺省路由),互为备份Metric S3550_A S3550_B、网络故障冗余测试
1.
4、持续拔掉与之间的网线,网络能够快速收敛数据流量为1PCB PINGPCA,S3550_A NBR;PCB-S2150G-S3550_A-S3550_B-NBR-PCA、持续恢复与之间的连接,网络能够快速收敛数据流量为2PCB PINGPCA,S3550_A NBRPCBf;S2150G-S3550_A-NBR fPCA、持续拔掉与之间的网线,网络能够快速收敛数据流量3PCB PINGPCA,S3550_A S2150G为;PCB-S2150G-S3550_B-S3550_A-NBR-PCA、持续恢复与之间的连接,网络能够快速收敛数据流量4PCB PINGPCA,S3550_A S2150G为;PCB-S2150G-S3550_A-NBR-PCA、持续将电源关闭,网络能够快速收敛数据流量为5PCB PINGPCA,S3550_A PCB-S2150G-S3550_B-NBRf PCA、多实例模式2STP由于单实例模式无法进行负载分担,在大流量的网络中,这是一个比较严重的弊端STP多实例的即可以通过将不同的映射到不同实例,不同实例阻塞不同的端口来STP,MSTP,VLAN达到不同报文从不同链路转发的目的,从而就实现了负载分担VLAN多实例典型组网图
2.1STP、设备配置
1.2NBR200路由配置ip route
192.
168.
3.
0255.
255.
255.
0192.
168.
0.250ip route
192.
168.
3.
0255.
255.
255.
0192.
168.
1.2100S3550_Avlan1ivlan2i■vlan3i*vlan4i*vlan5i■spanning-treespanning-tree mstconfigurationinstance1vlan4instance2vlan5instance3vlan3i*spanning-tree mst1priority4096interface FastEthernet0/1spanning-tree portfasti•interface FastEthernet0/2switchport modetrunkswitchport trunk allowed vlan remove1-2,6-4094i*interface FastEthernet0/3switchport modetrunkswitchport trunk allowed vlan remove1-3,6-4094i*interface Vlan2i■interface Vlan3ip address
192.
168.
2.
1255.
255.
255.0i■interface Vlan4standby1priority150i■interface Vlan5i■ip route
0.
0.
0.
00.
0.
0.0Vlan
2192.
168.
0.150enabledip route
0.
0.
0.
00.
0.
0.0Vlan
3192.
168.
2.2100enabledS3550B:vlan1ivlan2i*vlan3i■vlan4i*vlan5i■enable secretlevel15!j9=G1X7R:H.Y*u_;C,tZ[U0D+S\enable secretlevel155!.Y*T7+.7tZ[V/,|+S\W-/1Xsv1-1i*spanning-treespanning-tree mstconfigurationinstance2vlan5instance3vlan3spanning-tree mst2priority4096interface FastEthernet0/1switchport accessvlan2spanning-tree portfasti■interface FastEthernet0/2switchport modetrunk switchporttrunkallowed vlanremove1-2,6-4094i■interface FastEthernet0/3switchport modetrunk switchporttrunkallowedvlanremove1-3,6-4094i■interface Vlan2i*interface Vlan3i■interface Vlan4i•interface Vlan5standby1priority150i■iproute
0.
0.
0.
00.
0.
0.0Vlan
2192.
168.
1.150enabled iproute
0.
0.
0.
00.
0.
0.0Vlan
3192.
168.
2.1100enabled S2150G:vlan1i*vlan4i■vlan5i*spanning-treespanning-tree mstconfigurationinstance1vlan4interface fastEthernet0/1switchport modetrunkswitchport trunkallowedvlanremove1-3,6-4094i*interface fastEthernet0/2switchport modetrunkswitchport trunkallowedvlanremove1-3,6-4094i■interface fastEthernet0/16switchport accessvlan4spanning-tree portfasti■interface fastEthernet0/17switchport accessvlan5spanning-tree portfast、配置说明
2.3为的、生成树实例的根;为S3550_A interfacevlan4VRRP Master1S3550_B interfacevlan5的、生成树实例的根VRRP Master2实例的生成树结构如下1S3550_B#show spanning-tree mst1interface fastEthernet0/3######MST1vlans mapped:4PortState:discardingPortPriority:128PortDesignatedRoot:100100D0F8FF8F37PortDesignatedCost:200000PortDesignatedBridge:800100D0F88B6228PortDesignatedPort:8002PortForwardTransitions:0PortAdminPathCost:0PortOperPathCost:200000PortRole:alternatePort实例的生成树结构如下:2S3550_A#show spanning-tree mst2interface fastEthernet0/3######MST2vlans mapped:5Portstate:discardingPortPriority:128PortDesignatedRoot:100200D0F8EDD070PortDesignatedCost:200000PortDesignatedBridge:800200DOF88B6228PortDesignatedPort:8001PortForwardTransitions:2PortAdminPathCost:0PortOperPathCost:200000PortRole:alternatePort、网络故障冗余测试
2.4测试方法与单实例方法相同,测试结果达到了预期的效果。