打开或关闭L2TP控制报文的调试信息开关。
[ no ] debug l2tp control
【缺省情况】
系统缺省为关闭L2TP控制报文的调试信息开关。
【命令模式】
特权用户模式
【使用指南】
使用此命令用于查看L2TP各种控制报文的详细内容(如Start Control Connection Request报文等)。
以下是路由器收到Windows 2000 beta2版本发出的VPN连接请求的调试信息,输出信息中打印了报文内相关AVP的值与长度:
MsgRecvAndDistribute : receive a SCCR_MESSAGE or STOP_CCN_MESSAGE pass to upper layer
L2TP : Receive control message
type: START_CONTROL_CONNECTION_REQUEST
L2TP : Protocol version, value: 0100
value len : 2
L2TP : Framing capability, value: 1
value len : 4
L2TP : Bearer capability, value: 0
value len : 4
L2TP : Firmware revision, value: 1280
value len : 2
L2TP : Host name, value: NONE
value len : 4
L2TP : Vendor name, value: Microsoft
value len : 9
L2TP : Assigned call number, value: 4
value len : 2
L2TP : Receive window size, value: 8
value len : 2
L2TP : Message header built for start control reply.
L2TP : Message type, value: START_CONTROL_CONNECTION_REPLY
L2TP : Protocol version, value : 0100
L2TP : Framing capability, value : 3
L2TP : Bearer capability, value : 3
L2TP : Host name, value : Quidway
L2TP : Assigned tunnel number, value: 1
L2TP : receive window size, value: 4
L2tpSend::send control message: 0) Nr(1)
【举例】
Quidway#debug l2tp control
【相关命令】
monitor,debug all,show debugging,debug l2tp all
打开或关闭L2TP的PPP报文调试信息开关。
[ no ] debug l2tp dump
【缺省情况】
系统缺省关闭L2TP的PPP报文调试信息开关。
【命令模式】
特权用户模式
【使用指南】
使用此命令用于查看L2TP接收到的报文和发送的报文是否正确,一般只在进行调试时才使用。
下面举例说明该调试信息格式。
From l2tp virtual Port :1 to l2tp
FF 03 C0 21 01 01 00 0E 01 04
05 DC 05 06 00 01 15 23
其中:第一行“From l2tp virtual Port :1 to l2tp”表示这是一个从上层(PPP)传下来的报文,需要由L2TP进行发送,接下来的两行就是该报文的内容,最多可以输出报文的前100个字节,如果少于100个,则按实际数目进行打印。
To virtual l2tp Port : 1
FF 03 C0 21 01 00 00 11 05 06
6E 21 38 83 07 02 08 02 0D 03
06
其中:“To virtual l2tp Port : 1”表示这是一个提交给上层的报文,接下来是报文的内容。
【举例】
Quidway#debug l2tp dump
【相关命令】
monitor,debug all,show debugging,debug l2tp all
打开或关闭L2TP错误的调试信息开关。
[ no ] debug l2tp error
【缺省情况】
系统缺省关闭L2TP错误的调试信息开关。
【命令模式】
特权用户模式
【使用指南】
使用此命令用于查看L2TP对错误事件的报告,如内存申请失败、发送报文出错等情况。
下面举例说明该调试信息格式。
L2TP : Fail to get a mbuffer when try to send call disconnect notify.
L2TP : Fail to send control message : in call connected.
L2TP : Zero check error when recv call control message.
其中: 第一个是一个内存申请失败的调试信息;第二个是发送控制报文失败的调试信息;第三个表明收到的控制报文中存在应该为0的位不为0的情况。
【举例】
Quidway#debug l2tp error
【相关命令】
monitor,debug all,show debugging,debug l2tp all
打开或关闭L2TP事件调试信息开关。
[ no ] debug l2tp event
【缺省情况】
系统缺省关闭L2TP事件调试信息开关。
【命令模式】
特权用户模式
【使用指南】
使用此命令用于查看L2TP各种事件,如虚拟接口的UP与DOWN,L2TP所管理的MAP的情况。
以下是收到Windows 2000 beta2版本的VPN发出的连接请求的debug信息。输出信息表明L2TP的虚拟接口1 UP,对方的地址为10.1.1.2,加了一条该地址的MAP,表明以后有输出到10.1.1.2的报文,通过Virtual-Template1.1进行发送,接下来的一条就是查找MAP的debug信息,如果没有对应的MAP,将显示为(Null)。
InitialTunnelDescriptor:: initial a tunnel descriptor
InitialSessionDescriptor:: initial a call descriptor
L2TP: l2tp virtual port:1 UP.
L2TP : add map for (10.1.1.2, Virtual-Template1.1)
L2TP : search map for (10.1.1.2), ==$#@62;$#@62; (Virtual-Template1.1)
【举例】
Quidway#debug l2tp event
【相关命令】
monitor,debug all,show debugging,debug l2tp all