R0106-HP MSR Router Series Layer 2 - WAN Command Reference(V7)

97
If you execute this command multiple times for an L2TP group, the most recent configuration takes effect.
Examples
# Specifies that the LAC initiate tunneling requests to the LNS when the username of the user is
test@aabbcc.net.
<Sysname> system-view
[Sysname] l2tp-group 1 mode lac
[Sysname-l2tp1] user fullusername test@aabbcc.net
vpn-instance
Use vpn-instance to specify the VPN to which a tunnel peer belongs.
Use undo vpn-instance to restore the default.
Syntax
vpn-instance vpn-instance-name
undo vpn-instance
Default
A tunnel peer belongs to the public network.
Views
L2TP group view
Predefined user roles
network-admin
Parameters
vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Usage guidelines
By default, the device transmits L2TP control messages and data messages over the public network. With
this feature, the device transmits these messages in the specified VPN by searching the routing table in
that VPN.
When one L2TP endpoint is in a VPN, you should configure this endpoint to belong to the VPN on the
peer for correct packet forwarding between the two endpoints.
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.
The specified VPN must already exist.
Examples
# Configure the VPN vpn1 to which the tunnel peer belongs.
<Sysname>system-view
[Sysname] l2tp-group 1 mode lac
[Sysname-l2tp1] vpn-instance vpn1
Related commands
ip vpn-instance (MPLS Command Reference)
ip binding vpn-instance (MPLS Command Reference)