ImageVerifierCode 换一换
格式:DOCX , 页数:13 ,大小:18.08KB ,
资源ID:10028122      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/10028122.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(路由器配置语句汇总.docx)为本站会员(b****8)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

路由器配置语句汇总.docx

1、路由器配置语句汇总Cisco路由配置语句汇总启动接口,分配IP地址: router router enable router# router# configure terminal router(config)# router(config)# interface Type Port router(config-if)# no shutdown router(config-if)# ip address IP-Address Subnet-Mask router(config-if)# z 配置RIP路由协议:30秒更新一次 router(config)# router rip router(

2、config-if)# network Network-Number router(config-if)# z 配置IGRP路由协议:90秒更新一次 router(config)# router igrp AS-Number router(config-if)# network Network-Number router(config-if)# z 配置Novell IPX路由协议:Novell RIP 60秒更新一次 router(config)# ipx routing node address router(config)# ipx maximum-paths Paths router(

3、config)# interface Type Port router(config-if)# ipx network Network-Number encapsulation encapsulation-type secondary router(config-if)# z 配置DDR: router(config)# dialer-list Group-Number protocol Protocol-Type permit list ACL-Number router(config)# interface bri 0 router(config-if)# dialer-group Gro

4、up-Number router(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number router(config-if)# z 配置ISDN: router(config)# isdn swith-type Swith-Type router(config-if)# z 配置Frame Relay: router(config-if)# encapsulation frame-relay cisco | ietf router(config-if)# frame-relay lm

5、i-type ansi | cisco | q933a router(config-if)# bandwidth kilobits router(config-if)# frame-relay invers-arp Protocol dlci router(config-if)# z 配置标准ACL: router(config)# access-list Access-List-Number permit | deny source source-mask router(config)# interface Type Port router(config-if)# ip access-gro

6、up Access-List-Number in | out router(config-if)# z 配置扩展ACL: router(config)# access-list Access-List-Number permit | deny Protocol | Protocol-Number source source-wildcard Source-Port destination destination-wildcard Destination-Port established router(config)# interface Type Port router(config-if)#

7、 ip access-group Access-List-Number in | out router(config-if)# z 配置命名ACL: router(config)# ip access-list standard | extended ACL-Name router(config std- | ext- nacl)# permit | deny IP-Access-List-Test-Conditions router(config std- | ext- nacl)# no permit | deny IP-Access-List-Test-Conditions router

8、(config std- | ext- nacl)# z router(config)# interface Type Port router(config-if)# ip access-group ACL-Name | 1199 in | out router(config-if)# z 配置DCE时钟: router# show controllers Type Port router(confin-if)# clock rate 64000 router(config-if)# z 配置PPP协议: router(config)# username Name password Set-P

9、assword-Here router(config)# interface Type Port router(config-if)# encapsulation ppp router(config-if)# ppp outhentication chap | chap pap | pap chap | pap router(config-if)# ppp pap sent-username Name password Password router(config-if)# z PAP单向认证配置实例: 验证方: router-server(config)# username Client p

10、assword 12345 router-server(config)# interface serial 0 router-server(config-if)# encapsulation ppp router-server(config-if)# ppp authentication pap router-server(config-if)# z 被验证方: router-client(config-if)# encapsulation ppp router-client(config-if)# ppp pap sent-username Client password 12345 rou

11、ter-client(config-if)# z PAP双向认证配置实例: 路由器 A: routerA(config)# username B password 12345 routerA(config)# interface serial 0 routerA(config-if)# encapsulation ppp routerA(config-if)# ppp authentication pap routerA(config-if)# ppp pap sent-username A password 54321 routerA(config-if)# z 路由器 B: routerB

12、(config)# username A password 54321 routerB(config)# interface serial 1 routerB(config-if)# encapsulation ppp routerB(config-if)# ppp authentication pap routerB(config-if)# ppp pap sent-username B password 12345 routerB(config-if)# z CHAP单向认证配置实例:验证方: router-server(config)# username router-client pa

13、ssword 12345 router-server(config)# interface serial 0 router-server(config-if)# encapsulation ppp router-server(config-if)# ppp authentication chap router-server(config-if)# z 被验证方: router-client(config-if)# encapsulation ppp router-client(config-if)# ppp authentication chap router-client(config-if

14、)# ppp chap hostname router-client router-client(config-if)# ppp chap password 12345 router-client(config-if)# z CHAP双向认证配置实例: 路由器 A: routerA(config)# username routerB password 12345 routerA(config)# interface serial 0 routerA(config-if)# encapsulation ppp routerA(config-if)# ppp authentication chap

15、 routerA(config-if)# ppp chap hostname routerA routerA(config-if)# ppp chap password 54321 routerA(config-if)# z 路由器 B: routerB(config)# username routerA password 54321 routerB(config)# interface serial 1 routerB(config-if)# encapsulation ppp routerB(config-if)# ppp authentication chap routerB(confi

16、g-if)# ppp chap hostname routerB routerB(config-if)# ppp chap password 12345 routerB(config-if)# z Telnet使用: routerA# terminal monitor routerA# telnet IP-Address Router-Name routerB# exit | logout routerB# +再按 routerA# show sessions routerA# Connect-Number routerA# disconnect IP-Address Router-Name

17、routerA# show user routerA# clear line 0 | 1 | 2 | 3 | 4 禁止任何Telnet到本机: router(config)# line vty 0 4 router(config-line)# access-class ACL-Number router(config)# z 设置主机名: router(config)# hostname Set-Hostname router(config)# z router(config)# z 设置用户模式密码: router(config)# line console 0 router(config-

18、line)# login router(config-line)# password Set-Password router(config-line)# z 设置Telnet密码: router(config)# line vty 0 4 router(config-line)# login router(config-line)# password Set-Password router(config-line)# z 设置特权模式密码: router(config)# enable password Set-Password router(config)# enable secret Se

19、t-Password router(config)# z 给所有密码加密: router(config)# service password-ancryption Set-Password-Here router(config)# no service password-ancryption router(config)# z 设置登录Banner: router(config)# banner motd 分隔符 Set-Banner-InFORMation-Here 分隔符 设置接口的描述信息: router(config-if)# description Set-Port-InFORMat

20、ion-Here router(config)# z CDP的控制: router(config-if)# cdp enable router(config-if)# no cdp enable router(config)# cdp run router(config)# no cdp run Ping的使用: router# ping IP-Address router# ping Protocol ip: Protocol-Type Target IP address:IP-Address Repeat count 5: Datagram size 100: Timeout in sec

21、onds 2: Extended commands n:y Sweep range of sizes n: Tracke的使用: router# trace IP-Address Host-Name 为Cisco 4000路由器指定媒体类型: router(config-if)# media-type 10baset router(config-if)# z 更改路由器启动顺序: router(config)# boot system flash IOS-FileName router(config)# boot system tftp IOS-FileName TFTP-IP-Address

22、 router(config)# boot system rom router(config)# z 修改寄存器数值: router(config)# config-register value 在ROM监视器中更改寄存器数值: o/r value 路由器密码的恢复: 冷关机,然后再开机并在60秒内按+进入ROM监视器模式 o/r 0x2142 或 confreg 0x2142 router I router n router enable router# copy startup-config running-config router# configure terminal router(

23、config)# enable secret New-Password router(config)# config-register 0x2102 router(config)# z router# copy running-config startup-config router# reload 配置名称主机入口: router(config)# ip host Set-Name TCP-Port-Number IP-Address IP-Address 2 router(config)# z 定义DNS主机: router(config)# ip name-server Server-A

24、ddress Server-Address 2 router(config)# z 禁用DNS: router(config)# no ip domain-lookup router(config)# z 配置水平分割: router(config-if)# ip split-horizon router(config-if)# no ip split-horizon router(config-if)# z 配置静态路由: router(config)# ip route IP-Address Subnet-Mask Next-Hop-Address | Local-Out-Port Distace router(config)# z 配置缺省路由: router(config)

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1