R3303-HP HSR6800 Routers Layer 2 - WAN Command Reference

88
<Sysname> system-view
[Sysname] l2tp-group 2
[Sysname-l2tp2] allow l2tp virtual-template 1 remote aaa
# Specify L2TP group 1 as the default L2TP group, accept the L2TP tunneling request initiated by any peer,
and create a VA interface based on virtual template 1.
<Sysname> system-view
[Sysname] l2tp-group 1
[Sysname-l2tp1] allow l2tp virtual-template 1
Related commands
l2tp-group
display l2tp session
Use display l2tp session to display information about L2TP sessions.
Syntax
display l2tp session [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display information about L2TP sessions.
<Sysname> display l2tp session
Total session = 1
LocalSID RemoteSID LocalTID
17922 12990 1
Table 16 Command output
Field Descri
p
tion
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.