The display l2tp session command displays L2TP sessions.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
lac |
Displays the L2TP session information of the LAC. |
- |
lns |
Displays the L2TP session information of the LNS. |
- |
slot slot-id |
Displays the L2TP session information of the specified tunnel board. |
The value is an integer that ranges from 1 to 16. |
tunnel-item tunnel-id |
Specifies a local tunnel index. |
The value is an integer ranging from 1 to 65535. |
session-item session-id |
Displays the L2TP session information of the specified session ID. |
The value is an integer ranging from 1 to 65535. |
source-ip source-ip-address |
Displays information about the L2TP tunnel session with the specified source IP address. When L2TP tunnel session information is displayed based on the source IP address, public and private network IP addresses are not differentiated. |
The value is in dotted decimal notation. |
destination-ip destination-ip-address |
Displays information about the L2TP tunnel session with the specified destination IP address. |
The value is in dotted decimal notation. |
The display l2tp session command displays the number of L2TP sessions that are established on the current device, local session ID and remote session ID of each session, and the corresponding local tunnel ID. After an L2TP tunnel is established, you can run the display l2tp session command to view whether local tunnel IDs of some sessions belong to the L2TP tunnel, and how many these sessions are present.In the scenario where 1:1 inter-board backup is configured on the LNS, run the display l2tp session lns slot backup command to check session entries in backup mode.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display l2tp session lns slot 1 LocalSID RemoteSID LocalTID RemoteTID UserID UserName ------------------------------------------------------------------------------ 278 24768 13921 7958 62172 user5@hz 355 24769 4561 13818 62173 user9@hz Total 2, 2 printed from slot 1
<HUAWEI> display l2tp session lns slot 1 session-item 19 --------------------------------------- State: Up GroupNum: 23 LocalCallID: 19 RemoteCallID: 22837 LocalTunnelID: 17122 Sequence: 0 PeerFramingType: 1 PeerBearerType: 3 AuthenName: 123@ddd PPP index: 0xfefefefe IfIndex: 312 winIdleTimer: 0 CtrlCallAckTimer: 0 ResultCode: 0 CallingNumber: 00e0-fcf4-d682 TraceId: 0 OuterToS: 0xff ---------------------------------------
<HUAWEI> display l2tp session lac
2020-08-24 16:14:20.100
LocalSID RemoteSID LocalTID RemoteTID PPPID UserID UserName
----------------------------------------------------------------------------
1 1 1 97 0 0 user@czg2
----------------------------------------------------------------------------
Total 1, printed 1
Item | Description |
---|---|
LocalSID | Unique ID of a local session. |
RemoteSID | Unique ID of a remote session. |
LocalTID | Local tunnel ID. |
RemoteTID | Remote tunnel ID. |
UserID | User ID. |
UserName | User name. |
PPP index | PPP index:0xfefefefe. |
PPPID | PPP entry index, the value is 0. |
Tunnel id | Tunnel ID. |
Call id | Local session ID. |
Remote Call id | Remote session ID. |
Call State | Session state. |
Remote tunnel name | Remote tunnel name. |
Remote Address | Remote IP address. This IP address is the LNS IP address configured using the start l2tp command in the L2TP group view or delivered by the RADIUS server. |
Lns-reply Address | Source IP address of packets replied by the LNS. |
Port | Remote port number. |
Local tunnel name | Local tunnel name. |
Local Address | Local IP address. |
PPPoESessionID | Session ID of a PPPoE user. |
PPPoEUserMac | MAC address of a PPPoE user. |
Session username | User name of the current session. |
State | Tunnel status. |
GroupNum | L2TP group ID. |
LocalCallID | Local session ID. |
RemoteCallID | Remote session ID. |
LocalTunnelID | Local tunnel ID. |
Sequence | Sequence number. |
PeerFramingType | Frame type of the peer device (1: asynchronous; 2: synchronous; 3: both synchronous and asynchronous). |
PeerBearerType | AVP No. 4 attribute value (1: simulated; 2: digital; 3: both simulated and digital). |
AuthenName | User authentication name. |
IfIndex | Index of the tunnel interface. |
winIdleTimer | ID of the idle-cut timer for the tunnel. |
CtrlCallAckTimer | ID of the timeout timer for control packets. |
ResultCode | Error code for a session teardown reason. |
CallingNumber | Index assigned to each session. |
TraceId | Service trace ID. |
OuterToS | ToS value in the outer VLAN tag of data packets. |
ConfigOuterToS | ToS value in the outer IP header of control packets sent by an LNS. |