< Home

reset l2tp tunnel

Function

The reset l2tp tunnel command disconnects the specified tunnel and all sessions in the tunnel.

Format

reset l2tp tunnel { peer-name remote-name | local-id tunnel-id } [ all-systems | vpn-instance vpn-instance ]

Parameters

Parameter Description Value

peer-name remote-name

Specifies the name of the peer end of a tunnel.

The value is a string of 1 to 30 characters.

local-id tunnel-id

Specifies the local ID of a tunnel.

The value is an integer ranging from 1 to 15000.

all-systems

Including all systems, including the root system and virtual system.

-

vpn-instance vpn-instance

Specifies a VPN instance.

The value must be the name of an existing VPN instance.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

If no user exists, a network fault occurs, or a tunnel needs to be torn down, run the reset l2tp tunnel command to disconnect a tunnel and all sessions in the tunnel.

In the reset l2tp tunnel command:

If the specified remote tunnel name is not matched, the command has no impact on tunnels.

If the specified remote tunnel name is matched by multiple tunnels (they have different IP addresses), all these tunnels and sessions are disconnected.

If tunnel-id is specified, only the specified tunnel is disconnected.

A tunnel can be established after a remote user calls in again.

Example

# Disconnect the tunnel whose peer name is AS8010.

<sysname> reset l2tp tunnel peer-name AS8010
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >