实验指导(三层交换)一、实验任务1.PC1用R1模拟,PC2用R2模拟;PC3用R3模拟,PC4用R4模拟2.在SW1上实现VLAN2、VLAN3之间的路由。注意VLAN2和VLAN3上的计算机网关设置;3.在SW2上实现VLAN2、VLAN3之间的路由。注意VLAN2和VLAN3上的计算机网关设置;二、实验步骤1、清除交换机的配置(在三台交换机上执行):Switch#erasestartup-configSwitch#deleteflash:vlan.datSwitch#reload2、预配:步骤1:交换机的配置S1:============================================Vlan2Vlan3interfaceFastEthernet0/13switchporttrunkencapsulationdot1qswitchportmodetrunkchannel-group1modedesirableinterfaceFastEthernet0/14switchporttrunkencapsulationdot1qswitchportmodetrunkchannel-group1modedesirableinterfaceFastEthernet0/15shutdowninterfaceFastEthernet0/1switchportmodeaccessswitchportaccessvlan2interfaceFastEthernet0/2switchportmodeaccessswitchportaccessvlan3S2:============================================interfaceFastEthernet0/13switchporttrunkencapsulationdot1qswitchportmodetrunkchannel-group1modedesirableinterfaceFastEthernet0/14switchporttrunkencapsulationdot1qswitchportmodetrunkchannel-group1modedesirableinterfaceFastEthernet0/15shutdowninterfaceFastEthernet0/1switchportmodeaccessswitchportaccessvlan2interfaceFastEthernet0/2switchportmodeaccessswitchportaccessvlan3步骤2:路由器的配置R1:noiproutingintf0/0noshutipadd172.16.2.1255.255.255.0ipdefault-gateway172.16.2.252R2:noiproutingintf0/0noshutipadd172.16.3.2255.255.255.0ipdefault-gateway172.16.3.252R3:noiproutingintf0/1noshutipadd172.16.2.3255.255.255.0ipdefault-gateway172.16.2.253R4:noiproutingintf0/1noshutipadd172.16.3.4255.255.255.0ipdefault-gateway172.16.3.2533、三层交换:SW1:iproutingintvlan2noshutipadd172.16.2.252255.255.255.0intvlan3noshutipadd172.16.3.252255.255.255.0SW2:iproutingintvlan2noshutipadd172.16.2.253255.255.255.0intvlan3noshutipadd172.16.3.253255.255.255.04、测试:PC1和PC2之间互相pingPC3和PC4之间互相ping思考:在SW1关闭三层功能,怎样保证PC1和PC2之间还能通信?三、完整配置