




已阅读5页,还剩10页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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(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(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 Group-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 lmi-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-group 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)# 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(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-Password-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 password 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 router-client(config-if)# z cisco全资料汇总下载爱喜千团网: /?dongload (网络技术、换物网、网管论坛、物物交换网,闲置物品交易网,以物换物、CISCO考证等等资料)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(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 password 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)# 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 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(config-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 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-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 Set-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-InFORMation-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 seconds 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 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(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-Address 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)# ip defoult-network IP-Address router(config)# ip route Next-Hop-Address | Local-Out-Port Distace router(config)# z其它命令: router# show version router# show running-config router# show startup-config router# show flash router# show interface Type Port router# show buffers router# show protocol router# show mem router# show stacks router# show processes router# show cdp entry Devic
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 物业管理小区能源管理系统协议
- 有趣的户外活动记事+活动细节描写5篇范文
- 在线课程教育培训协议
- 银行入行考试试题及答案
- 银行出纳考试试题及答案
- 六一剪发活动方案
- 六一墙纸活动方案
- 六一幼儿花展活动方案
- 六一操场活动方案
- 六一汉服童话活动方案
- 11ZJ311地下室防水图集
- 土地整治实施操作手册
- 深圳市引导基金管理办法
- 10以内连加练习题完整版51
- GB 30254-2024高压三相笼型异步电动机能效限定值及能效等级
- 机场建造行业投资机会与风险识别及应对策略报告
- 统编版语文一年级下册第四单元整体解读
- 重大事故隐患判定标准与相关事故案例培训课件
- 环境检测实验室分析人员绩效考核方案
- (正式版)CB∕T 4548-2024 船舶行业企业相关方安全管理要求
- CJT 166-2014 建设事业集成电路(IC)卡应用技术条件
评论
0/150
提交评论