debugging l2tp

Function

The debugging l2tp command enables the debugging function on the LAC module and LNS module at both ends of an L2TP tunnel or enables the debugging function upon online failures.

The undo debugging l2tp command disables the debugging function on the LAC module and LNS module at both ends of an L2TP tunnel or enables the debugging function upon online failures.

By default, the debugging function is disabled.

This command is supported only on the NetEngine 8000 F1A.

Format

debugging l2tp lac [ cfgcmd | [ control | payload | event | error | dump | syn | message | all | rui | packet | protocol [ tunnel-item tunnel-id ] ] [ interface { interface-type interface-num | interface-name } [ pevlan pevlanid [ cevlan cevlanid ] ] | l2tp-group group-name | peer peer-ip | mac-address mac-address ] ]

debugging l2tp lns [ cfgcmd | [ control | payload | event | error | dump | syn | message | all | packet | protocol ] [ l2tp-group group-name | peer peer-ip | tunnel-item tunnel-id [ session-item session-id ] ] ] slot slot-id

debugging l2tp online-fail

undo debugging l2tp lac [ cfgcmd | [ control | payload | event | error | dump | syn | message | all | rui | packet | protocol [ tunnel-item tunnel-id ] ] [ interface { interface-type interface-num | interface-name } [ pevlan pevlanid [ cevlan cevlanid ] ] | l2tp-group group-name | peer peer-ip | mac-address mac-address ] ]

undo debugging l2tp lns [ cfgcmd | [ control | payload | event | error | dump | syn | message | all | packet | protocol ] [ l2tp-group group-name | peer peer-ip | tunnel-item tunnel-id [ session-item session-id ] ] ] slot slot-id

undo debugging l2tp online-fail

Parameters

Parameter Description Value
cfgcmd

Debugging of the entry delivery function.

-

control

Debugging of a control packet.

-

payload

Debugging of an L2TP data packet.

-

event

Debugging of an event.

-

error

Debugging of error processing.

-

dump

Debugging of a PPP packet.

-

syn

Debugging of a synchronization timer.

-

message

L2TP message switch.

-

all

All debugging functions.

-

rui

L2TP RUI switch.

-

packet

L2TP packet switch.

-

protocol

Debugging l2tp protocol packet switch.

-

tunnel-item tunnel-id

Tunnel index.

The value is an integer in the range 0 to 65535.

interface interface-type interface-num

Interface type and number.

The interface types supported on the LAC side include Ethernet, GE, Eth-Trunk and VE.

If the configured interface is an Ethernet, GE, Eth-Trunk or VE sub-interface, pevlan <pevlan-id> can be configured.

interface-name

Interface name.

-

pevlan pevlanid

Outer VLAN ID.

The value is an integer in the range 1 to 4094.

cevlan cevlanid

Inner VLAN ID.

The value is an integer in the range 1 to 4094.

l2tp-group group-name

Name of an L2TP group.

The value is a string of 1 to 32 characters.

peer peer-ip

IP address of a peer.

This value is in dotted decimal notation.

mac-address mac-address

MAC address.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. The MAC address cannot be set to FFFF-FFFF-FFFF.

lns

LNS module.

-

session-item session-id

Session index.

The value is an integer in the range 0 to 65535.

slot slot-id

Slot ID of a board.

The value is a string of 1 to 15 case-sensitive characters, spaces not supported.

online-fail

Online failure.

-

lac

LAC module.

-

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
l2tp execute

Usage Guidelines

Usage Scenario

When a tunnel or session of LAC or LNS fails to be set up or becomes disconnected, this command can be used to enable the debugging of corresponding options to replicate the failure of the tunnel or session setup. You can analyze the debugging information to locate problems.

  • You can specify only one of the interface, l2tp-group, and peer parametersat a time in the debugging l2tp lac command. This configuration overrides the previous one. If no parameters are specified in the debugging l2tp lac command, the default combination of debugging switches is control, event, error and message.
  • You can specify only one of the l2tp-group and peer parameters at a time in the debugging l2tp lns command. This configuration overrides the previous one. If no parameters are specified in the debugging l2tp lns slot command, the default combination of debugging switches is control, event, error and message.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Enable the debugging of the L2TP event in slot 1 on the LNS module.
<HUAWEI> debugging l2tp lns event slot 1
# Enable the debugging of the L2TP control packet on the LAC module.
<HUAWEI> debugging l2tp lac control
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.