Predefined user roles
network-admin
Parameters
vpn-instance-name: Specifies a VPN instance by its name, a c ase-sensitive string of 1 to 31
characters.
Usage guidelines
This command enables the device to transmit L2TP control messages and data messages in the
specified VPN by searching the routing table in that VPN.
When one L2TP endpoint is in a V PN, assign the peer endpoint to the VPN 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
# Assign the tunnel peer to VPN vpn1.
<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)
132