1758 CHAPTER 104: L2TP CONFIGURATION COMMANDS
■ 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.
Related command: l2tp-group.
Example # 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
Syntax display l2tp session
View Any view
Parameter None
Description Use the
display l2tp session command to display information about L2TP
sessions.
Related command: display l2tp tunnel.
Example # Display information about L2TP sessions.
<Sysname> display l2tp session
Total session = 1
LocalSID RemoteSID LocalTID
11 2
Table 470 Description on the fields of the display l2tp session command
Field Description
Total session Number of active sessions
LocalSID Unique ID of the session at the local end
RemoteSID Unique ID of the session at the remote end
LocalTID Unique ID of the tunnel at the local end