88
Ste
Command
Remarks
3. Assign the tunnel peer to a
VPN.
vpn-instance vpn-instance-name
By default, a tunnel peer belongs
to the public network.
The tunnel peer and the physical
port connecting to the tunnel peer
should belong to the same VPN.
The VPN to which this physical
port belongs is configured by
using the ip binding vpn-instance
command.
Setting the TSA ID of the LTS
To detect loops, the LTS compares the configured TSA ID with each TSA ID AVP in a received ICRQ
packet.
• If a match is found, a loop exists. The LTS immediately tears down the session.
• If no match is found, the LTS performs the following operations:
{ Encapsulates the configured TSA ID into a new TSA ID AVP.
{ Appends it to the packet.
{ Sends the packet to the next hop LTS.
To avoid loop detection errors, make sure the TSA ID of each LTS is unique.
To set the TSA ID of the LTS:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Set the TSA ID of the LTS and
enable L2TP loop detection on
the LTS.
l2tp tsa-id tsa-id
By default, the TSA ID of the LTS is
not configured, and L2TP loop
detection is disabled on the LTS.
Displaying and maintaining L2TP
Execute display commands in any view and reset commands in user view.
Task Command
Display L2TP tunnel information. display l2tp tunnel [ statistics ]
Display L2TP session information. display l2tp session [ statistics ]
Display information about virtual PPP interfaces.
display interface [ virtual-ppp [ interface-number ] ] [ brief
[ description | down ] ]
Display information about L2TP VA pools. display l2tp va-pool
Disconnect a specific L2TP tunnel. reset l2tp tunnel { id tunnel-id | name remote-name }
Clear the statistics for virtual PPP interfaces. reset counters interface [ virtual-ppp [ interface-number ] ]