华为路由器静态路由配置命令( 三 )


【使用指南】
在低速广域网线路上运行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 $#@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 。再以下的信息主要反映了该接口报文的收发情况,比如说接收和发送队列的最大长度、当前队列中报文数和由于队列满而丢弃报文数,接收和发送的报文数,接收和发送的组播报文数,不能识别的报文数等等 。
【相关命令】
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 couldnt 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
0 mask requests, 0 mask replies, 0 quench
0 parameter, 0 timestamp, 0 info request
Sent: 0 redirects, 0 unreachable, 0 echo, 14 echo reply
0 mask requests, 0 mask replies, 0 quench
0 parameter problem, 0 timestamp, 0 info reply
以上显示信息包括:
IP 统计信息:
接收:接收到1664 个报文,其中1638 个报文送给上层协议,没有报文格式错,没有报文校验错,没有未知协议报文,没有报文选项错 。
分片:没有收到分片,没有丢弃分片,重装成功的分片数为0,超时分片为数为0;分组成功的报文数为0,不能被分组的报文数为0,被创建发送分片数为0 。

推荐阅读