对于指定的点对点协议(PPP)接口,顾名思义,启用PPP调试命令通常会启用所有调试选项。如果未指定PORT参数,则通常将调试信息或数据传输到通常从其输入命令的端口或telnet会话,否则,将其传输到指定的PORT参数。
此命令中包含几个参数。下面给出了一些参数:
DEBUG参数:
通常需要此参数来指定需要禁用哪些调试选项。此参数的值通常是单个项目,或者基本上是各个项目的逗号分隔列表。下表列出了一些点对点协议(PPP)调试选项:
Option | Description |
---|---|
ALL | Represents all debug options that are available. |
AUTH | Represents PPP Authentication. Authentication failure will be caused most commonly if LCP opens on a link or connection but network protocols simply remain in the CLOSED state. |
BAPPKT | Represents BAP packets that are usually received over or through the interface. |
BAPSTATE | Represents all transitions of BAP state machine. |
CALLBACK | Represents all transitions of CALLBACK state machine. |
DEMAND | Represents all packets that simply cause on-demand links to get activated. |
ENCO | Represents that ENCO state machine is generally required to control and handle attachment to and detachment simply from ENCO i.e. encryption/compression module. |
LCP | Represents all transitions of LCP state machine. |
NCP | Represents all transitions of NCP state machine. |
PKT | Represents all packets that are being received and transmitted on the PPP interface. |
UTILISATION | Represents utilization measurements simply for each of the lower layer interface and the overall utilization. |
- PORT参数:
通常需要此参数来指定需要将调试输出发送或发送到的异步端口。通常,这可以使调试在脚本中启用。每次输入此ENABLE PPP DEBUG命令时,每次都使用此规则计算调试输出的目的地。 - TIMEOUT参数:
通常需要使用此参数来指定调试结束或自动停止的时间(秒)。默认设置为“无”。如果此参数未指定NONE,则应手动禁用调试功能。 - NUMPKTS参数:
通常,需要此参数来指定仅在为PKT调试而停止调试之前就需要显示的数据包数量。默认设置为CONT。数据包调试将无限期继续,如果此参数指定了CONT,则应手动将其禁用。
句法 –
ENABLE PPP=ppp-interface
DEBUG={UTILISATION|CALLBACK|ENCO|NCP
|AUTH|DEMAND|BAPPKT||BAPSTATE|LCP|ALL}
[, ...]
[PORT=port-number] [TIMEOUT={NONE|1..4000000000}]
[NUMPKTS={CONT|1..4000000000}]
这里,
- ppp-interface:表示PPP接口的数量。
- port-number:表示路由器上异步端口的总数。