




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025湖南湘潭韶山旅游发展集团酒店管理有限公司招聘考前自测高频考点模拟试题及完整答案详解1套
- 2025北京首都医科大学附属北京世纪坛医院招聘13人(第三批)考前自测高频考点模拟试题附答案详解(考试直接用)
- 2025河北招聘(选聘)辅助性岗位工作人员13人考前自测高频考点模拟试题及一套完整答案详解
- 2025广西来宾市政协办公室商调所属事业单位工作人员1人模拟试卷及一套参考答案详解
- 2025江苏南京市玄武区人民政府玄武门街道办事处招聘编外人员5人模拟试卷附答案详解(考试直接用)
- 2025甘肃平凉市灵台县公安局面向社会招聘警务辅助人员28人考前自测高频考点模拟试题完整答案详解
- 2025年三门峡黄河明珠(集团)有限公司公开招聘高校毕业生8人模拟试卷附答案详解(模拟题)
- 2025年鸡西市检察机关聘用制书记员、行政文员公开招聘15人考前自测高频考点模拟试题附答案详解(突破训练)
- 2025贵州黔西南州教育局公益性岗位招聘4人模拟试卷附答案详解(考试直接用)
- 2025内蒙古自治区首批事业单位“1+N”招聘2502人考前自测高频考点模拟试题及答案详解(名校卷)
- 2025年电力系统工程师高级专业试题及答案
- 2025年电商平台新业态发展趋势与运营策略研究报告
- 2025中粮集团社会招聘7人笔试历年参考题库附带答案详解
- 海南自贸港考试题及答案
- 2025年初级药师资格考试试题(附答案)
- 学习通《大学生就业指导》章节测试含答案
- 2023年09月黑龙江省绥化市“黑龙江人才周”引进度1068名企事业单位人才笔试历年难易错点考题荟萃附带答案详解
- 篮球运动竞赛的编排方法PPT课件模板
- 二手车鉴定评估表
- 外科学-颈部疾病课件
- LY/T 1955-2011林地保护利用规划林地落界技术规程
评论
0/150
提交评论