route路由器配置命令全集

上传人:人*** 文档编号:483028562 上传时间:2023-05-18 格式:DOCX 页数:21 大小:43.94KB
返回 下载 相关 举报
route路由器配置命令全集_第1页
第1页 / 共21页
route路由器配置命令全集_第2页
第2页 / 共21页
route路由器配置命令全集_第3页
第3页 / 共21页
route路由器配置命令全集_第4页
第4页 / 共21页
route路由器配置命令全集_第5页
第5页 / 共21页
点击查看更多>>
资源描述

《route路由器配置命令全集》由会员分享,可在线阅读,更多相关《route路由器配置命令全集(21页珍藏版)》请在金锄头文库上搜索。

1、命令状态1. router 路由器处于用户命令状态,这时用户可以看路由器的连接状态,访问其它网络和主机,但不 能看到和更改路由器的设置内容。2. router#在router提示符下键入enable,路由器进入特权命令状态router#,这时不但可以执行所有的 用户命令,还可以看到和更改路由器的设置内容。3. router(config)#在router#提示符下键入configure terminal,出现提示符router(config)#,此时路由器处于全局 设置状态,这时可以设置路由器的全局参数。4. router(config-if)#; router(config-line)#;

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

3、的方式完成。进入设置对话过程后,路由器首先会显示一些提示信息:- System Configuration Dialog -At any point you may enter a question mark ? for help.Use ctrl-c to abort configuration dialog at any prompt.Default settings are in square brackets .这是告诉你在设置对话过程中的任何地方都可以键入“? ”得到系统的帮助,按ctrl-c可以 退出设置过程,缺省设置将显示在中。然后路由器会问是否进入设置对话:Would you

4、like to enter the initial configuration dialog? yes:如果按y或回车,路由器就会进入设置对话过程。首先你可以看到各端口当前的状况:First, would you like to see the current interface summary? yes:Any interface listed with OK? value NO does not have a valid configurationInterface IP-Address OK? Method Status ProtocolEthernet0 unassigned NO u

5、nset up upSerial0 unassigned NO unset up up然后,路由器就开始全局参数的设置:Configuring global parameters: 1设置路由器名: Enter host name Router:2. 设置进入特权状态的密文(secret),此密文在设置以后不会以明文方式显示:The enable secret is a one-way cryptographic secret used instead of the enable password when it exists.Enter enable secret: cisco3. 设置进入

6、特权状态的密码(password),此密码只在没有密文时起作用,并且在设置以后会 以明文方式显示:The enable password is used when there is no enable secret and when using older software and some boot images.Enter enable password: pass4. 设置虚拟终端访问时的密码:Enter virtual terminal password: cisco5. 询问是否要设置路由器支持的各种网络协议:Configure SNMP Network Management? ye

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

8、for modems? yes/no: yes4) 是否使用默认的 modem 命令:Configure for default chat script? 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: yes是否使用TCP头压缩:Configure for TCP Header Compres

9、sion? yes:9) 是否在异步口上使用路由表更新:Configure for routing updates on async links? no: y10) 是否设置异步口上的其它协议。接下来,系统会对每个接口进行参数的设置。1Configuring interface Ethernet0:1) 是否使用此接口:Is this interface in use? yes:2) 是否设置此接口的 IP 参数:Configure IP on this interface? yes:3) 设置接口的IP地址:IP address for this interface: 192.168.162

10、.24) 设置接口的IP子网掩码:Number of bits in subnet field 0:Class C network is 192.168.162.0, 0 subnet bits; mask is /24 在设置完所有接口的参数后,系统会把整个设置对话过程的结果显示出来:The following configuration command script was created:hostname Routerenable secret 5 $1$W5Oh$p6J7tIgRMBOIKVXVG53Uh1enable password pass请注意在enable secret后面显

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

12、nterface type slot/number进入子端口设置状态 interface type number.subinterface point-to-point | multipoint 进入线路设置状态 line type slot/number进入路由设置状态 router protocol退出局部设置状态 exit3. 显示命令任务 命令 查看版本及引导信息 show version 查看运行设置 show running-config查看开机设置 show startup-config显示端口信息 show interface type slot/number 显示路由信息 s

13、how ip router4. 拷贝命令用于IOS及CONFIG的备份和升级5. 网络命令 任务 命令 登录远程主机 telnet hostname|IP address 网络侦测 ping hostname|IP address 路由跟踪 trace hostname|IP address6. 基本设置命令 任务 命令 全局设置 config terminal 设置访问用户及密码 username username password password 设置特权密码 enable secret password 设置路由器名 hostname name 设置静态路由 ip route dest

14、ination subnet-mask next-hop 启动 IP 路由 ip routing 启动 IPX 路由 ipx routing 端口设置 interface type slot/number 设置 IP 地址 ip address address subnet-mask 设置 IPX 网络 ipx network network 激活端口 no shutdown 物理线路设置 line type number 启动登录进程 login local|tacacs server 设置登录密码 password password五、配置IP寻址1. IP 地址分类IP地址分为网络地址和

15、主机地址二个部分,A类地址前8位为网络地址,后24位为主机地 址,B类地址16位为网络地址,后16位为主机地址,C类地址前24位为网络地址,后8 位为主机地址,网络地址范围如下表所示:种类 网络地址范围A 1.0.0.0 到 1 26.0.0.0有效 0.0.0.0 和 127.0.0.0 保留B 128.1.0.0到191.254.0.0有效 1 28.0.0.0和 191.255.0.0保留C 192.0.1.0 到223.255.254.0有效 192.0.0.0和 223.255.255.0保留D 224.0.0.0 到 239.255.255.255 用于多点广播E 240.0.0.0 到 255.255.255.254 保留 255.255.255.255 用于广播2. 分配接口 IP地址任务 命令接口设置 interface type slot/number为接口设置 IP 地址 ip address ip-address mask掩玛(mask)用于识别IP地址中的网络地址位数,IP地址(ip-address)和掩码(mas

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 机械/制造/汽车 > 电气技术

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