clear services l2tp tunnel
Syntax
clear services l2tp tunnel (all | interface sp-fpc/pic/port | local-gateway gateway-address | local-gateway-name gateway-name | local-tunnel-id tunnel-id | peer-gateway gateway-address | peer-gateway-name gateway-name | tunnel-group group-name)
Description
(M10i and M7i routers: LNS only. MX Series routers: LAC and LNS.) Clear Layer 2 Tunneling Protocol (L2TP) tunnels.
On MX Series routers, you cannot issue the clear services
l2tp tunnel
command in parallel with statistics-related show services l2tp
commands from separate terminals. If this clear
command is running, then you must press Ctrl+c to make
the command run in the background before issuing any of the show
commands listed in the following table:
|
|
|
|
|
|
|
Options
all | Clear all L2TP tunnels. Best Practice:
The |
sp-fpc/pic/port | (Optional) Clear only the L2TP tunnels using the specified adaptive services interface. This option is not available for L2TP on MX Series routers. |
local-gateway gateway-address | Clear only the L2TP tunnels associated with the local gateway with the specified address. |
local-gateway-name gateway-name | Clear only the L2TP tunnels associated with the local gateway with the specified name. |
local-tunnel-id tunnel-id | Clear only the L2TP tunnels that have the specified local tunnel identifier. |
peer-gateway gateway-address | Clear only the L2TP tunnels associated with the peer gateway with the specified address. |
peer-gateway-name gateway-name | Clear only the L2TP tunnels associated with the peer gateway with the specified name. |
tunnel-group group-name | Clear only the L2TP tunnels in the specified tunnel group. This option is not available for L2TP LAC on MX Series routers. |
Required Privilege Level
view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear services l2tp tunnel
user@host> clear services l2tp tunnel 17185 Tunnel 17185 closed
Release Information
Command introduced before Junos OS Release 7.4.
Support for LAC on MX Series routers introduced in Junos OS Release 10.4.
Support for LNS on MX Series routers introduced in Junos OS Release 11.4.