电信主站 网通分站
购买流程 付款方式 常见问题 在线提问 续租服务 购物车
用户名: 密 码: 忘记密码?
首 页
域名注册
虚拟主机
双线主机
服务器租用
VPS主机
企业邮局
代理专区
客服中心
虚拟主机行业资讯 虚拟主机评测对比 互联网最新动态 技术学院 站长资讯 在线教程 网站运营
搜索优化 服务器 网络编程 图形图象 站长之家 网页制作 操作系统
冲浪宝典 软件教学 视频通信 办公软件 邮件系统 网络安全 认证考试
您当前位置:西部数码->资讯中心-> 认证考试-> Cisco认证
思科ccna认证培训辅导:路由器的管理_cisco认证
作者:网友供稿 点击:0
  西部数码-全国虚拟主机10强!20余项虚拟主机管理功能,全国领先!第6代双线路虚拟主机,南北访问畅通无阻!虚拟主机可在线rar解压,自动数据恢复设置虚拟目录等.虚拟主机免费赠送访问统计,企业邮局.Cn域名注册10元/年,自助建站480元起,免费试用7天,满意再付款!P4主机租用799元/月.月付免压金!
文章页数:[1] 

  路由器管理

  2.1. 创建命令别名

  提问 为常用的命令创建简洁的别名

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#alias exec rt show ip route

  Router1(config)#alias exec on show ip ospf neighbor

  Router1(config)#end

  Router1#

  注释 show aliases命令可以输出当前配置的别名

  2.2. 管理路由器ARP缓存

  提问 修改ARP表条目超时时长

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#interface Ethernet0

  Router1(config-if)#arp timeout 600

  Router1(config-if)#end

  Router1#

  注释 缺省情况为4个小时,同时思科没有提供命令能单独的清除某个ARP缓存,只能通过clear arp 命令来清除整个ARP表

  2.3. 路由器Buffer调整

  提问 手动调整路由器Buffer分配来使其工作的更高效

  回答 路由器维护两个Buffer池,public buffers和interface buffers

  调整public buffers

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#buffers big initial 100

  Router1(config)#buffers big max-free 200

  Router1(config)#buffers big min-free 50

  Router1(config)#buffers big permanent 50

  Router1(config)#end

  Router1#

  调整interface buffers

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#buffers Ethernet0 initial 200

  Router1(config)#buffers Ethernet0 max-free 300

  Router1(config)#buffers Ethernet0 min-free 50

  Router1(config)#buffers Ethernet0 permanent 50

  Router1(config)#end

  Router1#

  注释 一般不建议修改,如果修改,建议首先使用show buffers命令来查看当前buffer使用情况,调整完以后建议使用show memory来查看内存使用情况

  2.4. 自动调整路由器Buffer

  提问 希望路由器根据自己的情况自动进行buffer分配调整

  回答

  Router#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router(config)#buffers tune automatic

  Router(config)#end

  Router#

  注释 此命令引自IOS 12.3(14)T,使用show buffers tune命令来查看自动调整情况
  2.5. 使用CDP协议

  提问 希望获得相连网络设备的信息

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#cdp run

  Router1(config)#interface Serial0/0

  Router1(config-if)#cdp enable

  Router1(config-if)#exit

  Router1(config)#interface FastEthernet0/0

  Router1(config-if)#no cdp enable

  Router1(config-if)#exit

  Router1(config)#interface FastEthernet1/0

  Router1(config-if)#cdp enable

  Router1(config-if)#end

  Router1#

  注释 CDP(Cisco Discovery Protocol)是思科专有的协议,用于发现相连的思科设备,帮助了解网络拓朴,缺省是启用的,使用show cdp neighbor detail 命令可以查看相连设备的详细信息

  2.6. 禁止CDP协议

  提问 为了安全期间不想让邻近设备发现自己设备的信息

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#cdp run

  Router1(config)#interface FastEthernet0/0

  Router1(config-if)#no cdp enable

  Router1(config-if)#end

  Router1#

  注释 为了安全期间可以在边界设备上禁止CDP

  2.7. 小服务的开启

  提问 开启或者禁用一些类似finger的小服务

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#service tcp-small-servers (no service tcp-small-servers)

  Router1(config)#service udp-small-servers (no sercie udp-small-servers)

  Router1(config)#end

  Router1#

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#ip finger (no ip finger)

  Router1#

  注释 tcp和udp的小服务指开启路由器的echo,discard,daytime和chargen服务,为了安全期间都建议将其关闭

  2.8. 启用路由器HTTP访问

  提问 通过浏览器来配置和管理路由器

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#access-list 75 permit 172.25.1.1

  Router1(config)#access-list 75 deny any

  Router1(config)#ip http server

  Router1(config)#ip http access-class 75

  Router1(config)#end

  Router1#

  注释 由于IOS 12.1(5)之前存在HTTP访问的高危漏洞,所以如果你的IOS版本小于此版本建议不要开启此服务

  2.9. 启用路由器安全HTTPS访问

  提问 通过加密的访问HTTP访问路由器

  回答

  Core#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Core(config)#ip http secure-server

  Core(config)#end

  Core#

  注释 IOS 12.2(14)S之后引入此特性,建议先用no ip http server命令关闭非加密的HTTP访问,然后开启安全的访问,同时可以使用ip http secure-port 8080

  命令来更改访问端口
  2.10. 使用静态主机名映射

  提问 在路由器上配置静态的主机映射表,从而使用主机名而不是IP地址来访问设备

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#ip host freebsd 172.25.1.1

  Router1(config)#ip host router2 10.1.1.1 172.22.1.4

  Router1(config)#end

  Router1#

  注释 可以对一个主机名映射很多IP地址来提供冗余访问,show hosts命令来验证

  2.11. 启用DNS服务

  提问 路由器使用DNS服务器来解析主机名

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#ip domain-lookup

  Router1(config)#ip domain-name oreilly.com

  Router1(config)#ip name-server 172.25.1.1

  Router1(config)#ip name-server 10.1.20.5

  Router1(config)#end

  Router1#

  注释 从IOS 12.2开始,思科使用了ip domain lookup.来代替ip domain-lookup 类似的ip domain-name 被 ip domain name代替

  2.12. 禁用域名解析

  提问 禁用域名解析,防止路由器自动对打错的命令的进行DNS查询

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#no ip domain-lookup

  Router1(config)#end

  Router1#

  如果需要启用DNS查询主机名,但是又为了避免打错命令查询的情况可以使用如下的变通方法

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#line vty 0 4

  Router1(config-line)#transport preferred none

  Router1(config-line)#end

  Router1#

  注释 对后一个命令的稍微解释一下,正常情况下都知道可以直接使用主机名回车路由器会认为时telnet 到此设备,可以省略掉telnet的命令,原因是因为transport preferred缺省是telnet,如果配置为none就必须使用telnet命令来进行设备登录,命令打错也不会出现地址解析的问题了。

  2.13. 配置路由器特定时间重启

  提问 需要路由器在特定时间自动重启

  回答

  Router1#reload in 20

  Reload scheduled for 11:33:53 EST Sat Feb 1 2003 (in 20 minutes)

  Proceed with reload? [confirm]

  Router1#

  Router1#reload at 14:00 Feb 2

  Reload scheduled for 14:00:00 EST Sun Feb 2 2003 (in 26 hours and 44 minutes)

  Proceed with reload? [confirm]

  Router1#

  注释 很有用的命令,当你在对路由器配置进行修改前可以先行输入此命令,然后进行修改但是不保存配置,这样可以防止把自己锁在路由器之外。可以使用reload cancel命令来取消定时重启
  2.14. 定时执行配置命令

  提问 周期性的定时执行某个命令

  回答

  Router#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router(config)#kron policy-list NEOSHI

  Router(config-kron-policy)#cli write memory

  Router(config-kron-policy)#exit

  Router(config)#kron occurrence DAILYat5 at 17:00 recurring

  Router(config-kron-occurrence)#policy-list NEOSHI

  Router(config-kron-occurrence)#end

  Router#

  注释 从IOS12.3(1)开始引入了这个类似Unix Cron的特性,不过也有一些缺点,只能运行EXEC模式下的命令,不能运行配置模式下的命令,同时输入的命令不能是交互性的,比如不能输入copy running-config startup-config来保存配置,因为是需要确认的,必须使用write memory来代替

  2.15. 显示路由器CPU利用率的历史数据

  提问 显示历史的路由器CPU利用率

  回答

  Router# show processes cpu history

  Router 03:48:18 PM Monday Apr 17 2006 EDT

  555559999999999999999

  5 444449999999999999999

  100 ******************

  90 ******************

  80 ******************

  70 ******************

  60 ******************

  50 ***********************

  40 ***********************

  30 ***********************

  20 ***********************

  10 * ***********************

  0....5....1....1....2....2....3....3....4....4....5....5....

  0 5 0 5 0 5 0 5 0 5

  CPU% per second (last 60 seconds)

  99 1 9999

  99 1 4 9999

  100 ** ***#*#

  90 ** **##*#

  80 #* *###*#

  70 #* *###*#

  60 #* *###*#

  50 #* *#####

  40 #* *#####

  30 #* ######

  20 ## ######

  10 ## * ######

  0....5....1....1....2....2....3....3....4....4....5....5....

  0 5 0 5 0 5 0 5 0 5

  CPU% per minute (last 60 minutes)

  * = maximum CPU% # = average CPU%

  ……………………………….(由于显示问题省去此图).

  CPU% per hour (last 72 hours)

  * = maximum CPU% # = average CPU%

  注释 从IOS12.2(2)T以后思科为show process cpu命令增加了history的选项,这样可以看到最长3天的CPU利用率,而以前最多可以看到5分钟的。输出图很不容易看懂,简单的说最左边是最新的数据,然后历史数据会向右移,在每分钟和每小时的会有峰值和平均值,峰值为现在每列的上端,不过是竖着排列的。
  2.16. 生成意外导出文件(Exception Dump Files)

  提问 在路由器发生意外当机的情况下生成导出文件发给TAC进行处理

  回答

  Router1#configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Router1(config)#ip ftp source-interface Loopback0

  Router1(config)#ip ftp username ijbrown

  Router1(config)#ip ftp password ijpassword

  Router1(config)#exception protocol ftp

  Router1(config)#exception region-size 65536

  Router1(config)#exception dump 172.25.1.3

  Router1(config)#end

  Router1#

  注释 缺省情况下路由器会使用tftp命令进行传送,不过TFTP有16M的限制所以建议换为FTP协议。另外为了防止当机导致文件不能生成,所以使用了exception region-size 65536 来提前保留部分内存给该命令使用。可以先使用write core命令来提前实验下生成此文件

  2.17. 生成接口信息报告

  2.18. 生成路由表报告

  2.19. 生成ARP表报告

  2.20. 生成主机表报告

  以上都是使用perl脚本来进行命令输出的汇总操作,脚本略去


文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
相关主题
文章页数:[1] 
Google
热门文章
·思科路由器安装维护步骤及命令_cisco认证
·ccie routing & switching备考指南(2006版)_cisco认证
·photoshop美女肖像照片靓肤技巧 把她变漂亮_photoshop教程
·linux程式设计-11.shellscript(bash)--(9)流程控制if_shell教程
·vb从零开始编外挂(十一)_visualbasic教程
·vb中winsock控制的udp协议的使用_visualbasic教程
·为vb窗口增添平铺贴图背景_visualbasic教程
·文件系统控件方案_visualbasic教程
·mscomm文字传输_visualbasic教程
·ccie routing & switching备考指南(2006版)_cisco认证

最新文章
·fireworks表现vista毛玻璃朦胧效果_fireworks教程
·photoshop钻戒金属质感完美修复_photoshop教程
·photoshop图层样式引申绘制玉兔_photoshop教程
·photoshop处理花卉水粉画特效_photoshop教程
·ccna认证英文词汇中文解析--最新最全版_cisco认证
·让windows xp更安全的几招超级必杀技_windows xp
·php中文乱码问题_php技巧
·思科ccna认证培训辅导:路由器的管理_cisco认证
·思科cisco认证最新真题50道:tcp/ip_cisco认证
·思科ccna辅导:路由器配置和文件管理_cisco认证


 
 


版权申明:本站文章均来自网络,如有侵权,请联系我们,我们收到后立即删除,谢谢!

特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有。
  打印  刷新  关闭
返回首页 |关于我们 | 联系我们 | 付款方式 | 创业联盟 | 虚拟主机 | 资讯中心 | 友情链接 | 网站地图

版权所有 西部数码(www.west263.com)
CopyRight (c) 2002~2006 west263.com all right reserved.
公司地址:四川成都市万和路90号天象大厦4楼 邮编:610031
电话总机:028-86262244 86263048 86263408 86263960 86264018 86267838
售前咨询:总机转201 202 203 204 206 208
售后服务:总机转211 212 213 214
财务咨询:总机转224 223 传真:028-86264041 财务QQ:点击发送消息给对方635483282
售前咨询QQ:点击发送消息给对方2182518 点击发送消息给对方241975952 点击发送消息给对方275026793 点击发送消息给对方408235859
售后服务QQ:点击发送消息给对方17708515 点击发送消息给对方307742704 点击发送消息给对方287976517 点击发送消息给对方363783715
《中华人民共和国增值电信业务经营许可证》编号:川B2-20030065号