資源描述:
《路由器靜態(tài)路由配置命令入門》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、ROUTE1配置Router>Router>enRouter#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameR1修改路由器名稱R1(config)#intf1/0進(jìn)入端口配置模式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進(jìn)入端口配置模式R1(config-if)#noshut開啟端口%LINK-5-CHANGED:InterfaceSerial2/0,changedstatetoupR1(config-if)#ipaddress192.168.3.1255.255.255.0為端口配置IPR1(config-if)#clockrate64000設(shè)置端口時鐘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配置靜態(tài)路由R1(config)#^Z非直連目的網(wǎng)絡(luò)直連本路由器的另一個路由器端口%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