Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

clear services l2tp destination

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear services l2tp destination 
<all | local-gateway gateway-address | peer-gateway gateway-address>

Description

Clear all Layer 2 Tunneling Protocol (L2TP) destinations and all tunnels and sessions that belong to the destinations. This command is available only for LAC on MX Series routers.

Note:

You cannot issue the clear services l2tp destination 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:

show services l2tp destination extensive

show services l2tp summary statistics

show services l2tp destination statistics

show services l2tp tunnel extensive

show services l2tp session extensive

show services l2tp tunnel statistics

show services l2tp session statistics

Options

all

Close all L2TP destinations.

Best Practice:

The all option is not intended to be used as a means to perform a bulk logout of L2TP subscribers. We recommend that you do not use the all option in a production environment. Instead of clearing all subscribers at once, consider clearing subscribers in smaller group, based on interface, tunnel, or destination end point.

local-gateway gateway-address

Clear only the L2TP destinations and all tunnels and sessions associated with the specified local gateway address.

peer-gateway gateway-address

Clear only the L2TP destinations and all tunnels and sessions associated with the peer gateway with the specified address.

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 destination all

content_copy zoom_out_map
user@host> clear services l2tp destination all             

  Destination 2 closed

Release Information

Command introduced in Junos OS Release 10.4.

footer-navigation