PPPoE 服务名称表故障排除
问题
描述
PPPoE 服务名称表配置错误可能会导致 PPPoE 服务无法正确激活。PPPoE 服务名称表的配置选项很简单,应该可以简化发现配置错误的位置。如果服务名称表与 PADI 数据包中携带的服务名称标记不匹配,则 PPPoE 客户端无法连接。
症状
服务名称表配置错误的症状是客户端连接进程在协商阶段停止,并且 PADI 数据包被忽略。您可以使用该 show pppoe statistics 命令检查 PPPoE 数据包计数以查找问题。
正确配置服务名称表时,发送和接收的数据包将对称递增。以下示例输出显示 PADO 发送计数等于 PADI 接收计数,PADS 发送计数等于 PADR 接收计数。此输出表示 PPPoE 协商正在成功进行,且服务名称表配置不正确。
user@host> show pppoe statistics ge-2/0/3.1
Active PPPoE sessions: 2
PacketType Sent Received
PADI 0 16
PADO 16 0
PADR 0 16
PADS 16 0
PADT 0 0
Service name error 0 0
AC system error 0 0
Generic error 0 0
Malformed packets 0 0
Unknown packets 0 0
当服务名称表配置错误时,命令输出 show pppoe statistics 指示底层接口接收的PADI数据包数在增加,但发送的PADO数据包数仍为零。以下示例输出显示 PADI 计数为 100,PADO 计数为 0。
user@host> show pppoe statistics ge-2/0/3.1
Active PPPoE sessions: 0
PacketType Sent Received
PADI 0 100
PADO 0 0
PADR 0 0
PADS 0 0
PADT 0 0
Service name error 0 0
AC system error 0 0
Generic error 0 0
Malformed packets 0 0
Unknown packets 0 0
如果您认为存在配置错误,请在底层接口上使用命令 monitor traffic 来确定 PPPoE 客户端正在请求哪个服务名称。以下示例输出显示客户端在服务名称标记中请求 Service1。
user@host> monitor traffic interface ge-2/0/3.1 print-hex print-ascii Listening on ge-2/0/3.1, capture size 96 bytes 11:49:41.436682 In PPPoE PADI [Service-Name "Service1"] [Host-Uniq UTF8] [TAG-0x120 UTF8] [Vendor-Specific UTF8] 0x0000 ffff ffff ffff 0090 1a42 0ac1 8100 029a .........B...... 0x0010 8863 1109 0000 00c9 0101 0008 5365 7276 .c..........Serv 0x0020 6963 6531 0103 0004 1200 9c43 0120 0002 ice1.......C.... 0x0030 044a 0105 00ab 0000 0de9 0124 783a 3132 .J.........$x:12 0x0040 3030 3963 009c
然后,您可以使用该 show pppoe service-name-tables 命令来确定是拼错了服务名称,还是根本没有配置服务。
原因
典型的配置错误出现在服务名称表配置中。
解决方案
使用适当的语句来纠正配置错误。