R0106-HP MSR Router Series Layer 2 - WAN Configuration Guide(V7)

73
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 ] ]
Disconnect a specified 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 ] ]
L2TP configuration examples
Configuration example for NAS-initiated L2TP tunnel
Network requirements
As shown in Figure 26, a PPP user is connected to an LNS through an LAC.
Set up an L2TP tunnel between the LAC and LNS to allow the PPP user to access the corporate network.
Figure 26 Network diagram
Configuration procedure
1. Configure the LAC:
# Configure IP addresses for the interfaces. (Details not shown.)
# Create a local user named vpdnuser, set the password, and enable the PPP service.
<LAC> system-view
[LAC] local-user vpdnuser class network
[LAC-luser-network-vpdnuser] password simple Hello
[LAC-luser-network-vpdnuser] service-type ppp
[LAC-luser-network-vpdnuser] quit
# Configure local authentication for PPP users in ISP domain system.
[LAC] domain system
[LAC-isp-system] authentication ppp local
[LAC-isp-system] quit
# Configure CHAP authentication on interface Async 2/1/0.
[LAC] interface async 2/1/0
[LAC-Async2/1/0] ppp authentication-mode chap