思科路由器配置大全详解

上传人:QQ15****706 文档编号:107042084 上传时间:2019-10-17 格式:DOC 页数:35 大小:374KB
返回 下载 相关 举报
思科路由器配置大全详解_第1页
第1页 / 共35页
思科路由器配置大全详解_第2页
第2页 / 共35页
思科路由器配置大全详解_第3页
第3页 / 共35页
思科路由器配置大全详解_第4页
第4页 / 共35页
思科路由器配置大全详解_第5页
第5页 / 共35页
点击查看更多>>
资源描述

《思科路由器配置大全详解》由会员分享,可在线阅读,更多相关《思科路由器配置大全详解(35页珍藏版)》请在金锄头文库上搜索。

1、思科路由器配置大全详解目 录一、基本设置方式2二、命令状态21. router22. router#23. router(config)#24. router(config-if)#; router(config-line)#; router(config-router)#;25. 26. 设置对话状态2三、设置对话过程21) 设置线路的最高速度:32) 是否使用硬件流控:43) 是否设置 modem:44) 是否使用默认的 modem 命令:45) 是否设置异步口的 ppp 参数:46) 是否使用动态 ip 地址:47) 是否使用缺省 ip 地址:49) 是否在异步口上使用路由表更新:410

2、) 是否设置异步口上的其它协议。 接下来,系统会对每个接口进行参数的设置。41) 是否使用此接口:42) 是否设置此接口的 ip 参数:43) 设置接口的 ip 地址:44) 设置接口的 ip 子网掩码:4四、常用命令4五、配置 ip 寻址61. ip 地址分类62. 分配接口 ip 地址63. 使用可变长的子网掩码64. 使用网络地址翻译(nat)6一、hdlc80 line code violations, 0 path code violations92. 举例11三、x.25121. x25 技术122. 有关命令:123. 实例:12四、frame relay151. 帧中继技术15

3、2. 有关命令:15broadcast3153. 帧中继 point to point 配置实例:164. 帧中继 multipoint 配置实例:16五、isdn171. 综合数字业务网(isdn)172. 基本命令173. isdn 实现 ddr(dial-on-demand routing)实例:1800:03:50: bri0:1: disconnecting call2000:03:52: callback to router2 already started2000:03:52: bri0:2: disconnecting call2100:04:05: bri0:1: no ca

4、llback negotiated2100:04:05: dialer protocol up for vi121#router1214. isdn 访问首都在线 263 网实例:215. cisco765m 通过 isdn 拨号上 26323六、pstn241. 远程访问24high-ip-address242. ddr(dial-on-demand routing)实例273. 异步拨号备份 ddn 专线:294. 异步拨号备份 x.25:32第一章路由器配置基础一、基本设置方式一般来说,可以用 5 种方式来设置路由器:1console 口接终端或运行终端仿真软件的微机;2aux 口接 m

5、odem,通过电话线与远方的终端或运行终端仿真软件的微机相连;3通过 ethernet 上的 tftp 服务器;4通过 ethernet 上的 telnet 程序;5通过 ethernet 上的 snmp 网管工作站。 但路由器的第一次设置必须通过第一种方式进行,此时终端的硬件设置如下: 波特率 :9600数据位 :8 停止位 :1 奇偶校验: 无二、命令状态1. router路由器处于用户命令状态,这时用户可以看路由器的连接状态,访问其它网络和主机, 但不能看到和更改路由器的设置内容。2. router#在 router提示符下键入 enable,路由器进入特权命令状态 router#,这时

6、不但可以执行所有的用户命令,还可以看到和更改路由器的设置内容。3. router(config)#在 router#提示符下键入 configure terminal,出现提示符 router(config)#,此时路 由器处于全局设置状态,这时可以设置路由器的全局参数。4. router(config-if)#; router(config-line)#; router(config-router)#;路由器处于局部设置状态,这时可以设置路由器某个局部的参数。5. 路由器处于 rxboot 状态,在开机后 60 秒内按 ctrl-break 可进入此状态,这时路由器不能完成正常的功能,只能进

7、行软件升级和手工引导。6. 设置对话状态这是一台新路由器开机时自动进入的状态,在特权命令状态使用 setup 命令也可进入此 状态,这时可通过对话方式对路由器进行设置。三、设置对话过程显示提示信息 全局参数的设置 接口参数的设置 显示结果利用设置对话过程可以避免手工输入命令的烦琐,但它还不能完全代替手工设置,一些特殊的设置还必须通过手工输入的方式完成。 进入设置对话过程后,路由器首先会显示一些提示信息:- system configuration dialog -at any point you may enter a question mark ? for help. use ctrl-c

8、to abort configuration dialog at any prompt. default settings are in square brackets .这是告诉你在设置对话过程中的任何地方都可以键入“?”得到系统的帮助,按 ctrl-c可以退出设置过程,缺省设置将显示在中。然后路由器会问是否进入设置对话:would you like to enter the initial configuration dialog? yes:如果按 y 或回车,路由器就会进入设置对话过程。首先你可以看到各端口当前的状况:first, would you like to see the cu

9、rrent interface summary? yes:any interface listed with ok? value no does not have a valid configuration interface ip-address ok? method status protocolethernet0 unassigned no unset up up serial0 unassigned no unset up up 然后,路由器就开始全局参数的设置: configuring global parameters:1设置路由器名:enter host name router:

10、2设置进入特权状态的密文(secret),此密文在设置以后不会以明文方式显示:the enable secret is a one-way cryptographic secret used instead of the enable password when it exists.enter enable secret: cisco3设置进入特权状态的密码(password),此密码只在没有密文时起作用,并且在设置 以后会以明文方式显示:the enable password is used when there is no enable secret and when using olde

11、r software and some boot images.enter enable password: pass4设置虚拟终端访问时的密码:enter virtual terminal password: cisco5询问是否要设置路由器支持的各种网络协议: configure snmp network management? yes: configure decnet? no:configure appletalk? no: configure ipx? no: configure ip? yes:configure igrp routing? yes:configure rip ro

12、uting? no:6如果配置的是拨号访问服务器,系统还会设置异步口的参数:configure async lines? yes:1) 设置线路的最高速度:async line speed 9600:2) 是否使用硬件流控:configure for hw flow control? yes:3) 是否设置 modem:configure for modems? yes/no: yes4) 是否使用默认的 modem 命令:configure for default chat script? yes:5) 是否设置异步口的 ppp 参数:configure for dial-in ip sli

13、p/ppp access? no: yes6) 是否使用动态 ip 地址:configure for dynamic ip addresses? yes:7) 是否使用缺省 ip 地址:configure default ip addresses? no: yes是否使用 tcp 头压缩:configure for tcp header compression? yes:9) 是否在异步口上使用路由表更新:configure for routing updates on async links? no: y10) 是否设置异步口上的其它协议。 接下来,系统会对每个接口进行参数的设置。1conf

14、iguring 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.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$p6j7tigrmboikvxvg53uh1 enable password pass请注意在 enable secret 后面显示的是乱码,而 enable password 后面显示的是设置的内容。 显示结束后,系统会问是否使用这个设置: use this configuration? yes/no: yes如

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

当前位置:首页 > 办公文档 > 总结/报告

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