资源描述:
《路由器静态路由配置命令入门》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、ROUTE1配置Router>Router>enRouter#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameR1修改路由器名称R1(config)#intf1/0进入端口配置模式R1(config-if)#noshut开启端口%LINK-5-CHANGED:InterfaceFastEthernet1/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet1/0,c
2、hangedstatetoupR1(config-if)#ipaddress192.168.1.1255.255.255.0为端口配置IPR1(config-if)#exitR1(config)#intse2/0进入端口配置模式R1(config-if)#noshut开启端口%LINK-5-CHANGED:InterfaceSerial2/0,changedstatetoupR1(config-if)#ipaddress192.168.3.1255.255.255.0为端口配置IPR1(config-if)#clockrate64000设置端口时钟R1(config-if
3、)#%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial2/0,changedstatetoupR1(config)#^Z%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR1#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexterna
4、ltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC192.168.1.0/24isdirectlyconnected,FastEthernet1/0C192.168.3.0/24isdirectly
5、connected,Serial2/0R1#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R1(config)#iproute?A.B.C.DDestinationprefixR1(config)#iproute192.168.2.0255.255.255.0?A.B.C.DForwardingrouter'saddressEthernetIEEE802.3FastEthernetFastEthernetIEEE802.3GigabitEthernetGigabitEthernetIEEE802.3z
6、LoopbackLoopbackinterfaceNullNullinterfaceSerialSerialR1(config)#iproute192.168.2.0255.255.255.0192.168.3.2配置静态路由R1(config)#^Z非直连目的网络直连本路由器的另一个路由器端口%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR1#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-
7、OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastre