思科路由器配置命令和方法

上传人:枫** 文档编号:552264276 上传时间:2022-09-24 格式:DOCX 页数:44 大小:78.83KB
返回 下载 相关 举报
思科路由器配置命令和方法_第1页
第1页 / 共44页
思科路由器配置命令和方法_第2页
第2页 / 共44页
思科路由器配置命令和方法_第3页
第3页 / 共44页
思科路由器配置命令和方法_第4页
第4页 / 共44页
思科路由器配置命令和方法_第5页
第5页 / 共44页
点击查看更多>>
资源描述

《思科路由器配置命令和方法》由会员分享,可在线阅读,更多相关《思科路由器配置命令和方法(44页珍藏版)》请在金锄头文库上搜索。

1、第一章:路由器配置基础一、基本设置方式一般来说,可以用5种方式来设置路由器:1. Con sole 口接终端或运行终端仿真软件的微机;2. AUX 口接MODEM,通过电话线与远方的终端或运行终端仿真软件的微机相连;3. 通过Ethernet上的TFTP服务器;4. 通过Ethernet上的TELNET程序;5. 通过Ethernet上的SNMP网管工作站。但路由器的第一次设置必须通过第一种方式进行,此时终端的硬件设置如下:波特率:9600数据位:8停止位:1奇偶校验:无二、命令状态1. router路由器处于用户命令状态,这时用户可以看路由器的连接状态,访问其它网络和主机,但不 能看到和更改

2、路由器的设置内容。2. router#在router提示符下键入enable,路由器进入特权命令状态router#,这时不但可以执行 所有的用户命令,还可以看到和更改路由器的设置内容。3. ro ute r(con fig)#在route r#提示符下键入con figu re ter mi nal出现提示符route r(co nfig)#,此时路由器 处于全局设置状态,这时可以设置路由器的全局参数。4. ro ute r(c on fig-if)#; ro ute r(con fig-li ne)#; ro ute r(con fig-ro ute r)#.路由器处于局部设置状态,这时可以

3、设置路由器某个局部的参数。5. 路由器处于RXBOOT状态,在开机后60秒内按ctr卜break可进入此状态,这时路由器不 能完成正常的功能,只能进行软件升级和手工引导。设置对话状态这是一台新路由器开机时自动进入的状态,在特权命令状态使用SETUP命令也可进入此状 态,这时可通过对话方式对路由器进行设置。三、设置对话过程显示提示信息全局参数的设置接口参数的设置显示结果利用设置对话过程可以避免手工输入命令的烦琐,但它还不能完全代替手工设置,一些特殊 的设置还必须通过手工输入的方式完成。进入设置对话过程后,路由器首先会显示一些提示信息:-System Configuration Dialog -A

4、t any point you may enter a questi on mark ? for help.Use ctr卜c to abort configuration dialog at any prompt.Default sett ings are in squa re br ackets .这是告诉你在设置对话过程中的任何地方都可以键入? 得到系统的帮助,按ctrl-c可以退出设置过程,缺省设置将显示在中。然后路由器会问是否进入设置对话:Would you like to enter the in itial con figu rati on dialog? yes:如果按y或回车

5、,路由器就会进入设置对话过程。首先你可以看到各端口当前的状况:Fir st, would you like to see the current inter face summa ry? yes:Any inter face listed with OK? value NO does not have a valid con figu rati on In te rface IP-Add ress OK? Method Status Pr otocolEthe rn et0 un assig ned NO un set up upSer iaIO un assig ned NO un set

6、up up然后,路由器就开始全局参数的设置:Configuring global par amete rs:1设置路由器名:Enter host n ame Rout er:2. 设置进入特权状态的密文(secret),此密文在设置以后不会以明文方式显示:The en able sec ret is a on e-way cr yptog raphic sec ret usedin stead of the en able passw ord when it exists.Enter en able sec ret: cisco3. 设置进入特权状态的密码(passwo rd),此密码只在没有

7、密文时起作用,并且在设置以 后会以明文方式显示:The en able passw ord is used when the re is no en able sec ret and when using olde r softwa re and some boot images.Enter en able passw ord: pass4. 设置虚拟终端访问时的密码:Enter vir tual terminal passw ord: cisco5. 询问是否要设置路由器支持的各种网络协议:Configure SNMP Netw ork Man ageme nt? yes:Configure

8、 DEC net? no:Configure AppleTalk? no:Configure IPX? n o:Con figu re IP? yes:Configure IGRP routing? yes:Configure RIP routing? no:6. 如果配置的是拨号访问服务器,系统还会设置异步口的参数:Configure Async lin es? yes:1)设置线路的最高速度:Async line speed 9600:2)是否使用硬件流控:Configure for HW flow control? yes:3)是否设置modem:Configure for modems

9、? yes/ no: yes4)是否使用默认的modem命令:Configure for default chat s cript? yes:5)是否设置异步口的PPP参数:Configure for Dial-in IP SLIP/PPP access? no: yes6)是否使用动态IP地址:Configure for Dynamic IP addresses? yes:7)是否使用缺省IP地址:Configure Default IP addresses? no: yes8)是否使用TCP头压缩:Configure for TCP Header Compression? yes:9)是否

10、在异步口上使用路由表更新:Configure for routing updates on async links? no: y10)是否设置异步口上的其它协议。 接下来,系统会对每个接口进行参数的设置。1. Con figu ring inter face Ethe rn etO:1)是否使用此接口:Is this inter face in use? yes:2)是否设置此接口的IP参数:Configure IP on this inter face? yes:3)设置接口的IP地址:IP add ress for this inter face: 192.168.162.24)设置接口的

11、IP子网掩码:Numbe r of bits in sub net field 0:Class C n etw ork is 192.168.162.0, 0 sub net bits; mask is /24在设置完所有接口的参数后,系统会把整个设置对话过程的结果显示出来:The followi ng configur ati on comma nd s cr ipt was cr eated: host name Route ren able sec ret 5 $1$W5Oh$p6J7tIgRMBOIKVXVG53Uh1 en able passw ord pass请注意在en able

12、 sec ret后面显示的是乱码,而en able passw ord后面显示的是设置的 内容。显示结束后,系统会问是否使用这个设置:Use this configuration? yes/no: yes如果回答yes,系统就会把设置的结果存入路由器的NVRAM中,然后结束设置对话过程, 使路由器开始正常的工作。四、常用命令1. 帮助在IOS操作中,无论任何状态和位置,都可以键入“? 得到系统的帮助。2. 改变命令状态任务命令进入特权命令状态en able退出特权命令状态disable进入设置对话状态setup进入全局设置状态config terminal退出全局设置状态end进入端口设置状态

13、 interface type slot/ numbe r进入子 端口设置状态 inter face type n umber.sub inter face poi nt-to-poi nt | multipoi nt进入线路设置状态line type slot/ nu mbe r进入路由设置状态route r pr otocol退出局部设置状态exit3. 显示命令任务命令查看版本及引导信息show ver sion查看运行设置show runnin g-c onfig查看开机设置show sta rtup-c onfig显示端口信息 show interface type slot/ nu

14、mbe r显示路由信息 show ip route r4. 拷贝命令用于IOS及CONFIG的备份和升级5. 网络命令任务命令登录远程主机 telnet host name|IP add ress网络侦测 pi ng host name|IP add ress路由跟踪 tr ace host name|IP add ress6. 基本设置命令任务命令全局设置 config terminal设置访问用户及密码 use rn ame use rn ame passw ord passw ord设置特权密码 en able sec ret passw ord设置路由器名host name n ame

15、设置静态路由 ip route desti nati on sub net-mask n ext-hop启动IP路由ip routing启动 IPX 路由 ipx routing端口设置 interface type slot/ nu mbe r设置 IP 地址 ip add ress add ress sub net-mask设置 IPX 网络 ipx network network激活端口 no shutdow n物理线路设置li ne type n umbe r启动登录进程 log in local|tacacs server设置登录密码passw ord passw ord五、配置IP寻址1. IP地址分类IP地址分为网络地址和主机地址二个部分,A类地址前8位为网络地址,后24位为主机 地址,B类地址16位为网络地址,后16位为主机地址,C类地址前24位为网络地址, 后8位为主机地

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号