在接口上配置PPP协议以后,LCP协商不成功导致接口协议Down。
本类故障的常见原因主要包括:
链路两端接口上的PPP相关配置错误。
接口的物理层没有Up。
PPP协议报文被丢弃。
链路存在环路。
检查链路延时是否影响上层业务。
2.故障诊断流程
故障诊断思路:
检查链路两端的PPP相关配置错误。
检查接口是否物理Up。
检查接口协议报文是否收发正常。
检查链路是否存在环路。
检查链路的延时是否过大。
可按照图1-1排除此类故障。
图1-1 LCP协商不成功故障诊断流程图
3.故障处理步骤
说明
请保存以下步骤的执行结果,以便在故障无法解决时快速收集和反馈信息。
操作步骤
步骤 1 检查链路两端的PPP配置是否正确。
在协议down的接口视图下执行命令display this查看PPP相关配置。
[Huawei-Serial2/0/0]display this
#
interface Serial2/0/0
link-protocol ppp
undo shutdown
ip address 10.10.1.1 255.255.255.0
#
return
检查如下两端对应的PPP相关的配置是否正确,如果不正确,请参考PPP的配置手册修改。
? 确认认证及被认证类型保持一致,配置中ppp authentication-mode authentication-mode命令表示本端作为认证端所采用的认证模式,需要查看对端也就是被认证端所采用的认证模式,例如有ppp pap local-user user-name password simple password这个配置就表示被认证端采用的是PAP认证。
? 判断被验证方和验证方的PPP认证配置的密码一致。
1)认证模式为PAP模式的场景下用户名的及密码的查看方式如下:
被验证方需要在接口视图下来查看用户名和密码。
[Huawei-Serial2/0/0] displaythis
#
interface Serial2/0/0
link-protocol ppp
ppp pap local-user huawei passwordsimple huawei
undo shutdown
#
return
认证方需要则需要在AAA视图下查看用户名及密码。
[Huawei] aaa
[Huawei-aaa] display this
#
aaa
local-user huawei password cipher%$%$t"}TJ~\;SKu%wY$mKGdY%*!u%$%$
#
return
2)验证方配置用户名方式的CHAP认证场景下用户名和密码的查看方式如下:
被认证方需要查在接口视图下查看用户名,再根据用户名在AAA视图下查看密码。
[Huawei-Serial2/0/0] displaythis
#
interface Serial2/0/0
link-protocol ppp
ppp chap user huawei
undo shutdown
#
return
[Huawei-Pos1/0/0] aaa
[Huawei-aaa] display this
#
aaa
local-user huawei password cipher%$%$t"}TJ~\;SKu%wY$mKGdY%*!u%$%$
#
return
验证方需要在AAA视图下查看用户名和密码。
[Huawei] aaa
[Huawei-aaa] display this
#
aaa
local-user huawei password cipher%$%$t"}TJ~\;SKu%wY$mKGdY%*!u%$%$
#
return
3)验证方配置没有用名方式的CHAP认证,则用户名和密码的查看方式如下:
被验证方需要在接口视图下查看用户名和密码:
[Huawei-Serial2/0/0] displaythis
#
interface Serial2/0/0
link-protocol ppp
pppchap user huawei
ppp chap password simple huawei
undo shutdown
#
return
验证方需要在AAA视图下查看用户名和密码:
[Huawei] aaa
[Huawei-aaa] display this
#
aaa
local-userhuawei password cipher %$%$t"}TJ~\;SKu%wY$mKGdY%*!u%$%$
#
return
如果都正确,请执行步骤2。
步骤 2 检查接口是否为物理Up状态。
执行命令display interface interface-type interface-number查看接口物理状态:
如果接口物理状态不是Up,请处理接口物理故障。详细的故障处理方法请参见物理对接类问题的定位。
如果接口状态是Up,请执行步骤3。
步骤 3 检查接口的协议报文是否收发正常。
执行display interface interface-type interface-number查看接口报文收发个数以确认报文是否收发正常。
[Huawei]display interface Serial 2/0/0
Serial2/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2010-02-05 06:35:43
Description:HUAWEI, AR Series, Serial2/0/0 Interface
Route Port,The Maximum Transmit Unit is 4470, Hold timer is 10(sec)
Internet Address is 108.108.1.1/24
Link layer protocol is PPP
LCP opened, IPCP opened
The Vendor PN is HFBR-57E0P
The Vendor Name is AVAGO
Port BW: 155M, Transceiver max BW: 155M, Transceiver Mode: MultiMode
WaveLength: 1310nm, Transmission Distance: 2000m
Physical layer is Packet Over SDH
Scramble enabled, clock master, CRC-32, loopback: none
Flag J0 "NetEngine "
Flag J1 "NetEngine "
Flag C2 22(0x16)
SDH alarm:
section layer: none
line layer: none
path layer: none
SDH error:
section layer: B1 0
line layer: B2 0 REI 44
path layer: B3 0 REI 23
Statistics last cleared:never
Last 300 seconds input rate 24bits/sec, 0 packets/sec
Last 300 seconds output rate 24bits/sec, 0 packets/sec
Input: 70945 packets, 1135144 bytes
Input error: 0 shortpacket, 0longpacket, 0 CRC, 0 lostpacket
Output: 70945 packets, 1135140 bytes
Output error: 0 lostpackets
Output error: 0 overrunpackets, 0underrunpackets
如果接收或者发送的报文数量是0,或者多次显示发现接收或者发送的报文个数没有增长,说明报文在链路上丢失,请先确认物理连接是否正确,请参见物理对接中“物理接口不能up定位思路”一节。
如果物理连接正确,请处理报文所丢失的故障。
如果报文收发正常,请执行步骤4。
注意
打开调试开关将影响系统的性能。调试完毕后,应及时执行undo debugging all命令关闭调试开关。打开调试开关将影响系统的性能。调试完毕后,应及时执行undo debugging all命令关闭调试开关。
此外,还可以打开debugging ppp all interface interface-type interface-number,来查看PPP协议报文收发以及PPP状态机的状态变化情况。
Jun 2 2010 17:19:41.310.1 HuaweiPPP/7/debug2:Slot=1;
PPP Event:
Serial2/0/0 LCP TO+(Timeout withcounter > 0) Event
state acksent , Retransmit = 4
Jun 2 2010 17:19:41.310.2 HuaweiPPP/7/debug2:Slot=1;
PPP Packet:
Serial2/0/0 Output LCP(c021) Pkt,Len 18
State acksent, code ConfReq(01), id3, len 14
MRU(1), len 4, val 1176
MagicNumber(5), len 6, val 00abb891
Jun 2 2010 17:19:41.310.1 HuaweiPPP/7/debug2:Slot=1;
PPP Packet:
Serial2/0/0 Input LCP(c021) Pkt, Len 18
State acksent, code ConfAck(02), id3, len 14
MRU(1), len 4, val 1176
MagicNumber(5), len 6, val 00abb891
Jun 2 2010 17:19:41.310.2 HuaweiPPP/7/debug2:Slot=1;
PPP Event:
Serial2/0/0 LCP RCA(Receive ConfigAck) Event
state acksent
步骤 4 检查链路是否存在环路。
执行命令display interface interface-type interface-number查看接口物理状态:
[Huawei]display interface Serial 2/0/0
Serial2/0/0 current state : UP
Line protocol current state : DOWN
Description:HUAWEI, AR Series, Serial 2/0/0 Interface
Route Port,The Maximum Transmit Unit is 4470, Hold timer is 10(sec)
Internet protocol processing : disabled
Link layer protocol is PPP, loopback isdetected
LCP closed
The Vendor PN is HFBR-57E0P
The Vendor Name is AVAGO
Port BW: 155M, Transceiver max BW: 155M, Transceiver Mode: MultiMode
WaveLength: 1310nm, Transmission Distance: 2000m
Physical layer is Packet Over SDH
Scramble enabled, clock master, CRC-32, loopback: local
Flag J0 "NetEngine "
Flag J1 "NetEngine "
Flag C2 22(0x16)
SDH alarm:
section layer: none
line layer: none
path layer: none
SDH error:
section layer: B1 22
line layer: B2 94 REI 145
path layer: B3 44 REI 86
Statistics last cleared:never
Last 300 seconds input rate 56bits/sec, 0 packets/sec
Last 300 seconds output rate 56bits/sec, 0 packets/sec
Input: 40530 packets, 890400 bytes
Input error: 0 shortpacket, 0longpacket, 2 CRC, 0 lostpacket
Output: 36512 packets, 946612 bytes
Output error: 0 lostpackets
Output error: 0 overrunpackets, 0underrunpackets
如果有loopback is detected,显示说明链路存在环路,请确认环路产生的原因,并消除环路。
如果不存在环路,请执行步骤5。
步骤 5 检查链路延时是否影响上层业务。
在PPP协商过程中,华为路由器设备上PPP协议报文的超时时间可配。缺省情况下,超时时间是3秒,最大可配PPP协议报文的超时时间是10秒。如果在超时时间内没有收到对端的应答报文,则PPP将会重发前一次发送的报文。所以,要保证链路延时小于当前所配置的PPP协议报文的超时时间。
请使用测试设备提前检测链路的延时。
如果时延已经影响上层业务:
? 如果链路时延小于10秒,执行ppp timer negotiate命令配置PPP协议报文的超时时间小于链路时延。
配置完成后如果链路时延依旧影响上层业务,请更换相应的设备或者进行相应的维修处理。
?如果链路延时大于9秒,请更换相应的设备或者进行相应的维修处理。
如果时延不影响上层业务,请执行步骤6。
步骤 6 请收集如下信息,并联系技术支持人员。
上述步骤的执行结果。
设备的配置文件、日志信息、告警信息。
----结束
版权声明:本文著作权归新newPPP平台所有,NewPPP小编欢迎分享本文,您的收藏是对我们的信任,newppp谢谢大家支持!