< Home

tunnel source

Function

The tunnel source command configures a source interface used when the LAC initiates a tunnel establishment request to the LNS.

The undo tunnel source command restores the default setting.

Format

tunnel source loopback interface-number

undo tunnel source

Parameters

Parameter Description Value

loopback

Indicates the type of a source interface used when the LAC initiates a tunnel establishment request. The source interface can be only a loopback interface.

-

interface-number

Specifies a tunnel interface number.

-

Views

L2TP group view

Default Level

2: Configuration level

Usage Guidelines

By default, the LAC uses an interface address that is routable to the LNS in the local routing table as the source address to initiate a tunnel establishment request to the LNS. The source address is usually the address of an Internet interface of the LAC.

The command is valid only when a FW functions as a LAC. To improve communication reliability between the LAC and the LNS, run the tunnel source command on the LAC.

The specified source interface must be an existing one. If no IP address is assigned to the specified tunnel source interface, an address in the local routing table is used as the source address.

Only the USG6510E/6510E-POE, USG6530E, USG6515E/6550E/6560E/6580E, and USG6525E/6555E/6565E/6575E-B/6585E/6605E-B support this function.

Example

# Configure the LAC to use loopback1 as the tunnel source interface.

<sysname> system-view
[sysname] interface loopback 1
[sysname-Loopback1] quit
[sysname] l2tp-group 1
[sysname-l2tp-1] tunnel source loopback 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >