欢迎来到天天文库
浏览记录
ID:38699088
大小:60.90 KB
页数:3页
时间:2019-06-17
《思科设备路由器静态路由配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、本次讲解路由器静态路由的配置(包含串口配置):本例配置模型图命令行:以下为RA配置:Router>enableRouter#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#ints1/0Router(config-if)#ipaddress192.168.255.1255.255.255.252Router(config-if)#clockrate64000//使用串口线Router(config-if)#baRouter
2、(config-if)#bandwidth64Router(config-if)#exitRouter(config)#intf0/0Router(config-if)#ipaddress192.168.0.1255.255.255.0Router(config-if)#exitRouter(config)#intf0/1Router(config-if)#ipaddress192.168.0.2255.255.255.0Router(config-if)#ipaddress192.168.1.1255.255.25
3、5.0Router(config-if)#noshutdown%LINK-5-CHANGED:InterfaceFastEthernet0/1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoupRouter(config-if)#intf0/0//之前没有激活端口,在此激活Router(config-if)#noshutdown%LINK-5-CHANGED:InterfaceFastE
4、thernet0/0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoupRouter(config-if)#ints1/0//之前没有激活端口,在此激活Router(config-if)#noshutdown%LINK-5-CHANGED:InterfaceSerial1/0,changedstatetodownRouter(config-if)#exitRouter(config)#e
5、xit%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter#showintf0/1FastEthernet0/1isup,lineprotocolisup(connected)//端口已激活HardwareisLance,addressis00d0.58a7.5602(bia00d0.58a7.5602)Internetaddressis192.168.1.1/24MTU1500bytes,BW100000Kbit,DLY100usec,reliability255
6、/255,txload1/255,rxload1/255…………Router>enableRouter#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#iprouting//启动路由功能,如果路由器默认就路由启动状态的话就不支持此命令。在此处不支持^%Invalidinputdetectedat'^'marker.Router(config)#iproute192.168.16.0255.255.255.0s1/0//添加
7、到达192.168.16.0/24的静态路由。即静态路由Router(config)#iproute192.168.17.0255.255.255.0s1/0//添加到达192.168.16.0/24的静态路由Router(config)#exitRouter#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleRouter#wrwrBuildingconfiguration...[OK]Router#以下为RB配置:Router>enableRouter#conftEnter
8、configurationcommands,oneperline.EndwithCNTL/Z.Router(config)#ints1/0Router(config-if)#ipadd192.168.255.2255.255.255.252Router(config-if)#baRouter(config-if)#bandwidth64Rout
此文档下载收益归作者所有