六 第四章网络协议配置命令


4.5.3 ifquelen arp配置ARP接收队列长度 。
ifquelen arp queue-length
【参数说明】
queue-length为接口队列长度 。
【命令模式】
全局配置模式
【使用指南】
配置ARP接收队列长度 , 可能会影响到以太网口运行效率 , 最好在技术支持人员的指导下配置 。
【举例】
配置ARP的接收队列长度为70 。
Quidway(config)#ifquelen arp 70
【相关命令】
show ip interface
4.5.4 ip tcp header-compression答应或禁止接口上TCP报文头压缩 。
[ no ] ip tcp header-compression
【缺省情况】
接口上缺省为禁止TCP报文头压缩 。
【命令模式】
接口配置模式
【使用指南】
在低速广域网线路上运行PPP协议时 , 由于TCP报文头占全部传输数据的很大比例 , 这时可以对TCP报文头压缩以提高数据传输效率 。
【举例】
在PPP接口Serial0上答应TCP报文头压缩 。
Quidway(config-if-Serial0)#ip tcp header-compression
【相关命令】
encapsulation ppp
4.5.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
4.5.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
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 。再以下的信息主要反映了该接口报文的收发情况 , 比如说接收和发送队列的最大长度、当前队列中报文数和由于队列满而丢弃报文数 , 接收和发送的报文数 , 接收和发送的组播报文数 , 不能识别的报文数等等 。
【相关命令】
show interface
4.5.7 show ip traffic显示IP流量统计信息 。
show ip traffic
【命令模式】
特权用户模式
【使用指南】
该命令显示IP收发和拆包、组包的统计信息 , 有助于故障诊断 。
【举例】
Quidway#show ip traffic
IP statistics:
Rcvd: 1370 total, 1349 local destination
0 format errors, 0 checksum errors
0 unknown protocol, 0 bad options
Frags: 0 fragment rcvd, 0 fragment dropped

0 reassembled, 0 timeouts
0 fragmented, 0 couldn"t fragment, 0 fragment sent
Sent: 359 generated, 0 forwarded, 0 raw ip packets
0 dropped, 0 no route, 0 Compress fails
ICMP statistics:
Rcvd: 0 format errors, 0 checksum errors
0 redirects, 0 unreachable, 14 echo, 0 echo reply

推荐阅读