IP性能配置排错
故障现象:ip数据报文转发正常,但tcp和udp协议不能正常工作。
故障排除:可以打开相应的调试开关,查看调试信息。
通过display命令先查看ip性能的运行情况,并确认用户使用的电脑运行正常。
使用命令terminal debugging将调试信息输出到控制台上。
用debugging udp packet命令打开udp调试开关,跟踪udp的数据包。
[h3c] terminal debugging
[h3c] debugging udp packet
以下为udp数据报的格式:
udp output packet:
source ip address:202.38.160.1
source port:1024
destination ip address 202.38.160.1
destination port: 4296
用debugging tcp packet命令打开tcp调试开关,跟踪tcp的数据包。
[h3c] terminal debugging
[h3c] debugging tcp packet
即可实时查看接收或发送的tcp报文,其具体报文格式如下:
tcp output packet:
source ip address:202.38.160.1
source port:1024
destination ip address 202.38.160.1
destination port: 4296
sequence number :4185089
ack number: 0
flag :syn
packet length :60
data offset: 10