路由器IP性能配置命令

【路由器IP性能配置命令】 1. clear ip counters
清除IP统计信息 。
clear ip counters
【命令模式】
特权用户模式
【使用指南】
在某些非凡情况下 , 需要清除IP统计信息 , 重新进行统计 。
【举例】
清除IP统计信息 。
Quidway#clear ip counters
【相关命令】
show ip interface , show ip traffic
2. ifquelen ip
配置IP接收队列长度 。
ifquelen ip queue-length
【参数说明】
queue-length为接口队列长度 。
【命令模式】
全局配置模式
【使用指南】
配置IP接收队列长度 , 会影响系统运行效率 , 最好在技术支持人员的指导下进行 。
【举例】
配置IP的接收队列为70 。
Quidway(config)#ifquelen ip 70
【相关命令】
show ip interface
3. ifquelen arp
配置ARP接收队列长度 。
ifquelen arp queue-length
【参数说明】
queue-length为接口队列长度 。
【命令模式】
全局配置模式
【使用指南】
配置ARP接收队列长度 , 可能会影响到以太网口运行效率 , 最好在技术支持人员的指导下配置 。
【举例】
配置ARP的接收队列长度为70 。
Quidway(config)#ifquelen arp 70
【相关命令】
show ip interface
4. ip tcp header-compression
答应或禁止接口上TC 文头压缩 。
[ no ] ip tcp header-compression
【缺省情况】
接口上缺省为禁止TCP报文头压缩 。
【命令模式】
接口配置模式
【使用指南】
在低速广域网线路上运行PPP协议时 , 由于TCP报文头占全部传输数据的很大比例 , 这时可以对TCP报文头压缩以提高数据传输效率 。
【举例】
在PPP接口Serial0上答应TCP报文头压缩 。
Quidway(config-if-Serial0)#ip tcp header-compression
【相关命令】
encapsulation ppp
5.show ip cache
显示IP路由缓冲 。
show ip cache
【命令模式】
特权用户模式
【使用指南】
显示IP最近使用过的路由 , 帮助用户进行故障诊断 。
【举例】
Quidway#show ip cache
Route to destination 129.102.100.141:
Destination NetMask Type Interface GateWay
129.102.100.141 255.255.255.255 direct Ethernet0
上面显示信息表示最近刚使用过的路由是到达129.102.100.141的路由 。该路由是一条直接路由 , 输出接口为Ethernet0 。
【相关命令】
ip route
6. show ip interface
显示IP接口信息 。
show ip interface [ interface-type interface-number ]
【参数说明】
interface-type为接口类型 。
interface-number为接口编号 。
【缺省情况】
假如不指定接口 , 则缺省显示全部IP接口信息 。
【命令模式】
特权用户模式
【使用指南】
该命令输出接口上全部与IP有关的信息 , 有助于故障诊断 。
【举例】
Quidway#show ip interface serial 0
Interface is Serial0, Index is 2
ifFlags=8004 $#@60;NBMA,MULTICAST$#@62;
protocol is x25 dte ietf, MTU is 1500, speed is 64000 bps
input queue is 0/75/0 (current/max/drops)
output queue is 0/75/0 (current/max/drops)
0 packets input, 0 bytes, 0 multicasts
0 input packets dropped, 0 no protocols, 0 input errors
0 packets output, 0 bytes, 0 multicasts, 0 output errors
上面显示信息表示接口Serial0 编号为2;处于NBMA模式 , 支持组播;该接口封装的链路层协议是X.25协议 , 最大传输单元是1500字节 , 传输速率为64000bps 。再以下的信息主要反映了该接口报文的收发情况 , 比如说接收和发送队列的最大长度、当前队列中报文数和由于队列满而丢弃报文数 , 接收和发送的报文数 , 接收和发送的组播报文数 , 不能识别的报文数等等 。

推荐阅读