资源描述:
《svi和bvi(vlan间路由方法之)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、SVI:R1配置:NoiproutinginterfaceFastEthernet0/0ipaddress192.168.10.3255.255.255.0noiproute-cacheduplexautospeedautoipdefault-gateway192.168.10.1R2配置:NoiproutinginterfaceFastEthernet0/0ipaddress192.168.10.2255.255.255.0noiproute-cacheduplexautospeedauto!ipde
2、fault-gateway192.168.10.1R3配置:NoiproutinginterfaceFastEthernet0/0ipaddress192.168.20.2255.255.255.0noiproute-cacheduplexautospeedautoipdefault-gateway192.168.20.1R4配置:interfaceFastEthernet1/0switchportaccessvlan10!interfaceFastEthernet1/1switchportaccess
3、vlan10!interfaceFastEthernet1/2switchportaccessvlan20interfaceVlan10ipaddress192.168.10.1255.255.255.0!interfaceVlan20ipaddress192.168.20.1255.255.255.0若R2为路由器,则需要一条静态路由到R3。R2#showiprouCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPextern
4、al,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloade
5、dstaticrouteGatewayoflastresortisnotsetC192.168.10.0/24isdirectlyconnected,FastEthernet0/0R2(config)#iproute192.168.20.0255.255.255.0fa0/0R1#showiprouCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNS
6、SAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisno
7、tsetC192.168.10.0/24isdirectlyconnected,FastEthernet0/0S192.168.20.0/24isdirectlyconnected,FastEthernet0/0Router#ping192.168.20.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.20.2,timeoutis2seconds:.!!!!Successrateis80percent(4/5),round-t
8、ripmin/avg/max=36/64/76msR4#showiprouCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2