电脑技术学习

CCNA认证培训辅导:路由器的管理

dn001

  路由器管理

  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协议

标签: