您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 薪酬管理 > ccnp交换综合实验(有图有配置) 精
实验拓扑:实验要求:在交换机上面配置VLAN,TRUNK,VTP,STP,SPANNINGTREEPORTFAST(速端口)和UPLINKFAST(上行速链路).在路由器上面配置单臂路由实现不同VLAN之间通讯,配置双向HSRP热备份组,实现负载均衡.配置部分:1.SW1配置:SW1#vlandatabaseSW1(vlan)#vlan2SW1(vlan)#vlan3SW1(vlan)#vtpserverSW1(vlan)#vtpdomainsySW1(vlan)#vtppasswordciscoSW1(vlan)#vtppruningSW1(vlan)#exitSW1#conftSW1(config)#intrangf0/1-5SW1(config-if-range)#switchportmodetrunkSW1(config-if-range)#exitSW1(config)#intrangef0/3-4SW1(config-if-range)#channel-group1modeon//配置以太通道SW1(config-if-range)#end2.SW2配置:SW2#vlandatabaseSW2(vlan)#vtpserverSW2(vlan)#vtpdomainsySW2(vlan)#vtppasswordciscoSW2(vlan)#exitSW2#conftSW2(config)#intrangef0/1-5SW2(config-if-range)#switchportmodetrunkSW2(config-if-range)#exitSW2(config)#intrangef0/3-4SW2(config-if-range)#channel-group1modeon//配置以太通道SW2(config-if-range)#end3.SW3配置:SW3#vlandatabaseSW3(vlan)#vtpclientSW3(vlan)#vtpdomainsySW3(vlan)#vtppasswordciscoSW3(vlan)#exitSW3#conftSW3(config)#intrangf0/1-2SW3(config-if-range)#intrangf0/1-2SW3(config-if-range)#switchportmodetrunkSW3(config-if-range)#end4.SW4配置:SW4#vlandatabaseSW4(vlan)#vtpclientSW4(vlan)#vtpdomainsySW4(vlan)#vtppasswordciscoSW4(vlan)#exitSW4#conftSW4(config)#intrangef0/1-2SW4(config-if-range)#switchportmodetrunkSW4(config-if-range)#endSW4#conftSW4(config)#spanning-treeuplinkfastSW4(config)#intf0/4SW4(config-if)#spanning-treeportfastSW4(config-if)#end5.SW3配置:SW3#conftSW3(config)#spanning-treeuplinkfastSW3(config)#intf0/4SW3(config-if)#spanning-treeportfastSW3(config-if)#exitSW3(config)#end6.SW2配置:SW2#conftSW2(config)#spanning-treevlan3priority4096//(spanning-treevlan3rootprimary)设置为VLAN3的根桥SW2(config)#end7.SW1配置:SW1#conftSW1(config)#spanning-treevlan2priority4096//(spanning-treevlan2rootprimary)设置为VLAN2的根桥SW1(config)#end8.R1配置:R2#conftR1(config)#intf0/0R1(config-if)#noshutdownR1(config-if)#exitR1(config)#intf0/0.1R1(config-subif)#encapsulationdot1Q1//HSRP配置部分R1(config-subif)#ipaddress192.168.1.254255.255.255.0R1(config-subif)#noshutdownR1(config-subif)#exitR1(config)#intf0/0.2R1(config-subif)#encapsulationdot1q2R1(config-subif)#ipaddress192.168.2.254255.255.255.0R1(config-subif)#noshutdownR1(config-subif)#exitR1(config-subif)#intf0/0.3R1(config-subif)#encapsulationdot1q3R1(config-subif)#ipaddress192.168.3.254255.255.255.0R1(config-subif)#noshutdownR1(config-subif)#exitR1(config)#intf0/0.1R1(config-subif)#standby1ip192.168.1.1R1(config-subif)#standby1priority200//默认优先级为100,这里更改为200是使其成为活跃路由器R1(config-subif)#standby1preempt//配置抢占,使得本路由器从DOWN中恢复了后仍可以抢占为活跃路由器R1(config-subif)#exitR1(config)#intf0/0.2R1(config-subif)#standby2ip192.168.2.1R1(config-subif)#standby2priority200R1(config-subif)#standby2preemptR1(config-subif)#exitR1(config)#intf0/0.3R1(config-subif)#standby3ip192.168.3.19.R2配置:R2#conftR2(config)#intf0/0R2(config-if)#noshutdownR2(config-if)#exitR2(config)#intf0/0.2//HSRP配置部分R2(config-subif)#encapsulationdot1q253255.255.255.0R2(config-subif)#noshutdownR2(config-subif)#intf0/0.3R2(config-subif)#encapsulationdot1q3R2(config-subif)#ipaddress192.168.3.253255.255.255.0R2(config-subif)#noshutdownR2(config-subif)#exitR2(config)#intf0/0.1R2(config-subif)#encapsulationdot1Q1R2(config-subif)#ipaddress192.168.1.253255.255.255.0R2(config-subif)#noshutdownR2(config-subif)#endR2(config-subif)#exitR2(config)#intf0/0.1//这一部分没有配置抢占,它将成为备用路由器R2(config-subif)#standby1ip192.168.1.1R2(config-subif)#exitR2(config)#intf0/0.2R2(config-subif)#standby2ip192.168.2.1R2(config-subif)#exitR2(config)#intf0/0.3R2(config-subif)#standby3ip192.168.3.1R2(config-subif)#standby3priority200R2(config-subif)#standby3preempt10.客户机配置:PC1:IP:192.168.2.2/24GW:192.168.2.1//这里的网关地址实际上是虚拟出来的地址,真正转发数据的是活跃路由器PC3:IP:192.168.3.3/24GW:192.168.3.1实验效果验证部分:sw3#showvlan-switchbriefVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveFa0/0,Fa0/3,Fa0/5,Fa0/6Fa0/7,Fa0/8,Fa0/9,Fa0/10Fa0/11,Fa0/12,Fa0/13,Fa0/14Fa0/152VLAN0002activeFa0/43VLAN0003active1002fddi-defaultactive1003token-ring-defaultactive1004fddinet-defaultactive1005trnet-defaultactivesw3#sw3#shovtpstatusVTPVersion:2ConfigurationRevision:1MaximumVLANssupportedlocally:256NumberofexistingVLANs:7VTPOperatingMode:ClientVTPDomainName:syVTPPruningMode:EnabledVTPV2Mode:DisabledVTPTrapsGeneration:DisabledMD5digest:0xC60xB60xCD0xF20xA50x970x3C0x7BConfigurationlastmodifiedby0.0.0.0at3-1-0200:16:27r1#showstandbybriefPindicatesconfiguredtopreempt.|InterfaceGrpPrioPStateActiveStandbyVirtualIPFa0/0.11100PActivelocal192.168.1.253192.168.1.1Fa0/0.22200PActivelocal192.168.2.253192.168.2.1Fa0/0.33100Standby192.168.3.253local192.168.3.1r1#r2#shostandbybriefPindicatesconfiguredtopreempt.|InterfaceGrpPrioPStateActiveStandbyVirtualIPFa0/0.11100Standby192.168.1.254local192.168.1.1Fa0/0.22100Standby192.168.2.254local192.168.2.1Fa0/0.33200PActivelocal192.168.3.254192.168.3.1r2#showstandbyFastEthernet0/0.1-Group1StateisStandby4statechanges,laststatechange00:06:53VirtualIPaddressis192.168.1.1ActivevirtualMACaddressis0000.0c07.ac01LocalvirtualMACaddressis0000.0c07.ac01(v1default)Hellotime3sec,holdtime10s
本文标题:ccnp交换综合实验(有图有配置) 精
链接地址:https://www.777doc.com/doc-5892751 .html