clear services l2tp session
Syntax
clear services l2tp session (all | interface interface-name | local-gateway gateway-address | local-gateway-name gateway-name | local-session-id session-id | local-tunnel-id tunnel-id | peer-gateway gateway-address | peer-gateway-name gateway-name | routing-instance routing-instance-name | tunnel-group group-name | user username)
Description
Clear L2TP sessions on LAC and LNS.
On MX Series routers, you cannot issue the clear services l2tp session
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 |
Close all L2TP sessions. Best Practice:
The |
interface interface-name |
Clear only the L2TP sessions using the specified adaptive services or inline services interface. The interface type depends on the line card as follows:
|
local-gateway gateway-address |
Clear only the L2TP sessions associated with the specified local gateway address. |
local-gateway-name gateway-name |
Clear only the L2TP sessions associated with the specified local gateway name. |
local-session-id session-id |
Clear only the L2TP sessions with this identifier for the local endpoint of the L2TP session. |
local-tunnel-id tunnel-id |
Clear only the L2TP sessions associated with the specified local tunnel identifier. |
peer-gateway gateway-address |
Clear only the L2TP sessions associated with the peer gateway with the specified address. |
peer-gateway-name gateway-name |
Clear only the L2TP sessions associated with the peer gateway with the specified name. |
routing-instance routing-instance-name |
Clear only the L2TP sessions associated with the specified routing instance. |
tunnel-group group-name |
Clear only the L2TP sessions associated with the specified tunnel group. This option is not available for L2TP LAC on MX Series routers. |
user username |
Clear only the L2TP sessions for the specified username. |
Required Privilege Level
clear
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear services l2tp session
user@host> clear services l2tp session 31694 Session 31694 closed
Sample Output
clear services l2tp session interface
user@host> show services l2tp session Tunnel local ID: 17185 Local Remote State Interface Interface ID ID unit Name 5117 1 Established 1073741828 si-2/0/0 34915 2 Established 1073741829 si-2/1/0 6454 3 Established 1073741830 si-2/0/0 46142 4 Established 1073741831 si-2/1/0
command-name
user@host> clear services l2tp session interface si-2/0/0 Session 5117 closed Session 6454 closed
command-name
user@host> show services l2tp session Tunnel local ID: 17185 Local Remote State Interface Interface ID ID unit Name 34915 2 Established 1073741829 si-2/1/0 46142 4 Established 1073741831 si-2/1/0