Cisco Cisco Packet Data Interworking Function (PDIF)
Exec Mode Commands (A-C)
▀ clear l2tp
▄ Command Line Interface Reference, StarOS Release 16
3808
clear l2tp
Clears all or specific Layer 2 Tunnelling Protocol (L2TP) statistics or clears and disconnects all or specified sessions or
tunnels.
tunnels.
Product
PDSN
GGSN
LNS
Privilege
Security Administrator, Administrator, Operator
Mode
Exec
The following prompt is displayed in the Exec mode:
[local]host_name#
Syntax
clear l2tp { statistics [ lac-service service_name | lns-service service_name | peer-
address ip_address ] | tunnels { all [ clear-sa ] | callid call_id | lac-service
service_name [ clear-sa ] | lns-service service_name | peer-address ip_address [ clear-sa
] } }
address ip_address ] | tunnels { all [ clear-sa ] | callid call_id | lac-service
service_name [ clear-sa ] | lns-service service_name | peer-address ip_address [ clear-sa
] } }
statistics [ lac-service service_name | lns-service service_name | peer-address
ip_address ]
ip_address ]
With no optional keywords specified, this command clears all L2TP statistics for the current context.
lac-service service_name
: Clears all L2TP statistics for the specified LAC service in the current
context.
lns-service service_name
: Clears all L2TP statistics for the specified LNS service in the current
context.
peer-address ip_address
: Clears all L2TP statistics for the destination (peer LNS) at the specified IP
address. The IP address is entered using IPv4 dotted-decimal notation.
tunnels { all [ clear-sa ] | callid call_id | lac-service service_name [ clear-sa
] | peer-address ip_address [ clear-sa ] }
] | peer-address ip_address [ clear-sa ] }
all
: Clears all tunnels in the current context.
lac-service
service_name: Clears all tunnels in the current context that belong to the specified LAC
service and closes the tunnels.
lns-service
service_name: Clears all tunnels in the current context that belong to the specified LNS
service and closes the tunnels.
peer-address
ip_address: Clears all tunnels in the current context whose destination (peer LNS) is the
system at the specified IP address. The IP address is specified using IPv4 dotted-decimal notation.
callid
call_id: Uses the unique identifier that specifies a particular tunnel in the system to clear that tunnel
and disconnect it. The output of the command
show l2tp tunnels
contains a field labeled Callid Hint
which lists the call id information to use with this command. This is an 8-byte hexadecimal number.
clear-sa
: If any security associations have been established they are cleared.