思科route命令大全

上传人:第*** 文档编号:30569757 上传时间:2018-01-30 格式:DOC 页数:31 大小:145KB
返回 下载 相关 举报
思科route命令大全_第1页
第1页 / 共31页
思科route命令大全_第2页
第2页 / 共31页
思科route命令大全_第3页
第3页 / 共31页
思科route命令大全_第4页
第4页 / 共31页
思科route命令大全_第5页
第5页 / 共31页
点击查看更多>>
资源描述

《思科route命令大全》由会员分享,可在线阅读,更多相关《思科route命令大全(31页珍藏版)》请在金锄头文库上搜索。

1、cisco router and switch 配置命令精华压缩版时间: 2010-08-05 / 分类: +CCNA, CISCO 技术 / 浏览次数: 105 views / 0个评论 发表评论 Router and switch 配置命令精华压缩版1、 进入 SETUP模式 Router#setup2、 时间设置router#clock set hh:mm:ss date moth year3、 routershow history Routerterminal history size lines4、 router#show version5、 router#show running-

2、config6、 router#show starup-config7、 router(config)#hostname name主机命名8、 router(config)#banner motd # message #开机时的固定显示信息9、 router(config)#enable password password 特权模式明文密码10、 router(config)#no enable password11、 router(config)#enable secret password 特权模式加密密码12、 router(config)#no enable secret13、 rou

3、ter(config)#service password-encryption 特权模式把明文密码加密密码,但没 enable secret安全可以反解14、 router(config)#line console 控制台密码15、 router(config-line)#login16、 router(config-line)#password password17、 router(config-line)#exec-timeout mm ss 禁止控制台会话自动退出18、 router(config-line)#logging synchronous 重显被打乱的控制台输入router(c

4、onfig)#no ip domain-lookup 禁止域名解析19、 router(config)#line vty 0 4 虚拟终端密码20、 router(config-line)#login21、 router(config-line)#password password22、 router(config)#interface type number(slot/port)端口设置23、 router(config-if)#ip address ip summast24、 router(config-if)#clock rate 64000(时钟频率单位为 bps,只在 DCE端设置)

5、25、 router(config-if)#bandwith 64(带宽设置,单位为 KB)26、 router(config-if)#no shutdown(shutdown)27、 router(config-if )#media-type type(10base) 为以太网端口选择适当的介质类型28、 router(config-if )#ctrl+z 保存退出到特权模式29、 router#30、 router用户模式 enable进入router#特权模式 config terminal进入router(config)#全局配置模式31、Interface Router(config

6、-if)#端口设置Subinterface Router(config-subif)# 子端口设置Controller Router(config-controller)# 控制口设置Line Router(config-line)# 虚拟口设置Router Router(config-router)# 路由设置IPX router Router(config-ipx-router)#IPX路由设置32、 router#show interface33、 router#show interface Ethernet 034、 router#show interface serial 035、

7、router#show running-config36、 router#show starup-config37、 router#show flash38、 router#show controller39、 router#show controller interface type40、 router#show running-configrouter#copy running-config starup-configrouter#copy running-config tftprouter#copy starup-config tftprouter#copy flash tftprout

8、er#copy tftp star-configrouter#copy tftp flash端口状态Serial1 is up, line protocol is up正常工作 Serial1 is up, line protocol is down连接问题Serial1 is down, line protocol is down端口问题Serial1 is administratively down, line protocol is down人为关闭配置寄存器的值1、 关闭路由器的电源重新启动按住 ctrl+break键入进2、 3、 o/r 02142(跳过 nvarm启动恢复密码)4

9、、 I5、 当系统提示是否进入 setup模式时,按 N6、 router7、 routerenable8、 router#9、进入修改后(包括密码、寄存器的值:02100 为 rom monitor启动、02101为 setup模式启动、02102 为10、 router#copy running-config starup-config11、 router#reload12、 也可以在 router#setup进入 setup模式静态路由协议设置router(config)#ip route network submask(要到达的网络号掩码)ip address(下一跳或出口 ip地址)

10、router(config)#ip route 0.0.0.0 s0(出口端口或下一跳 IP地址)rip设置router(config)#router riprouter(config-router)#network network-numberrouter#show ip protocol查看 RIP信息router#show ip route 查看路由表router#debug ip rip查看 RIP更新信息router(config-router)#passive-interface e0(阻止发出作息)router(config-router)#ip rip receive vers

11、ion 1 2接收 1、2RIP 版本信息igrp设置router(config)#router igrp as numberrouter(config-router)#network network numberrouter#show ip route查看路由表router#debug ip igrp events查看 IGRP路由更新大概信息router#debug ip igrp transaction查看 IGRP路由更新详细信息Router(config-router)#variance multiplier 控制 IGRP load balancingRouter(config-r

12、outer)#traffic-share balanced | min控制 load-balanced traffic 的分布eigrp设置router(config)#router eigrp as numberrouter(config-router)#network network numberrouter(config)#no auto-summry 关闭自动汇总router(config)# auto-summry 打开自动汇总(默认是打开的)router#show ip route eigrp 显示当前的路由表里的 EIGRP条目router#show ip protocol 显示

13、活动的路由协议进程的参数和当前的状态router#show ip eigrp neighbors 显示被 EIGRP发现的邻居router#show ip eigrp traffic 显示发出和收到的 IP EIGRP 包的数量router#show ip eigrp topology 显示 IP EIGRP的拓扑表Router#debug ip eigrpospf设置1. Router(config)#router ospf process-idRouter(config-router)#network address(可以是网络号也可以是 Ip地址mask(通配掩码 )area area-

14、idRouter(config-if)# ip ospf priority numbe 配置 OSPF的优先级Router#show ip protocols 验证 OSPF的配置Router#show ip route 显示路由器学到的所有路由Router#show ip ospf interface type number 显示 area-ID 和邻接信息Router#show ip ospf neighbor 基于每接口显示 OSPF邻居信息Router#debug ip ospf eventsRouter#debug ip ospf packet2. Router(config)# i

15、nterface loopback number(lookback 回路配置)Router(config-if)# ip address ip-address subnet-maskRouter(config-if)# ip ospf cost cost-numbe 修改 OSPF 的 Cost数值Router(config-if)# ip ospf authentication-key key 配置明文口令Router(config-if)# ip ospf messge-digest-key keyid md5 key 配置 MD5口令(keyid和 key必须配对一致,两邻居才可以通信)

16、Router(config-route)# area area-id authentication message-digestmessage-digest为可选 项,使用后路由器只传送口令消息的摘要(或散列)配置 OSPF区域的验证:3. Router(config-if)# ip ospf hello-interval seconds 配置 hello间隔:Router(config-if)# ip ospf dead-interval seconds配置 down机判断间隔访问列表1.标准访问列表(standard access lists):只使用源 IP地址来做过滤决定 Router(config)#access-list 10 deny 172.16.40.0 0.0.0.255Router(config)#access-list 10 permit anyRouter(config)#int e1Router(config-if)#ip access-gro

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

当前位置:首页 > 办公文档 > 其它办公文档

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