Assigning a tunnel peer to a VPN
By default, the device transmits L2TP control messages and data messages over the public network. With this feature, the device transmits them in a VPN by searching the routing table in the VPN.
When one L2TP endpoint is in a VPN, assign the peer endpoint to the VPN for correct packet forwarding between the two endpoints.
To assign the tunnel peer to a VPN:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter L2TP group view. | l2tp-group group-number [ mode { lac | lns } ] | N/A |
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. |