1758
C
104: L2TP C
HAPTER
Related command:
Example
display l2tp session
Syntax
View
Parameter
Description
Related command:
Example
C
ONFIGURATION
OMMANDS
The allow l2tp command is available for only LNSs. If the tunnel name on the
■
LAC is specified, ensure that it is the same as the tunnel name configured on
the LAC.
l2tp-group.
# Accept the L2TP tunneling request initiated by the peer (LAC) of AS8010 and
create a virtual access interface according to virtual template 1.
<Sysname> system-view
[Sysname] l2tp-group 2
[Sysname-l2tp2] allow l2tp virtual-template 1 remote AS8010
# Specify L2TP group 1 as the default L2TP group, accept the L2TP tunneling
request initiated by any peer, and create a virtual access interface based on virtual
template 1.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] allow l2tp virtual-template 1
display l2tp session
Any view
None
Use the
display l2tp session
sessions.
display l2tp tunnel.
# Display information about L2TP sessions.
<Sysname> display l2tp session
Total session = 1
LocalSID
1
1
Table 470 Description on the fields of the display l2tp session command
Field
Total session
LocalSID
RemoteSID
LocalTID
command to display information about L2TP
RemoteSID
LocalTID
2
Description
Number of active sessions
Unique ID of the session at the local end
Unique ID of the session at the remote end
Unique ID of the tunnel at the local end