destination (Tunnel interface view)

Function

The destination command configures a destination address for a tunnel.

The undo destination command deletes the destination address of a tunnel.

By default, no destination address is configured for a tunnel.

Format

destination [ vpn-instance vpn-instance-name ] ip-address

undo destination [ [ vpn-instance vpn-instance-name ] ip-address ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Specifies the name of the VPN instance to which the destination address of a tunnel belongs.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

ip-address

Specifies the destination address of a tunnel.

The value is in dotted decimal notation.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gre write

Usage Guidelines

Usage Scenario

When configuring GRE tunnels, you need to create tunnel interfaces and use the destination command to configure the destination addresses of tunnels.

Prerequisites

The tunnel mode has been configured using the tunnel-protocol command.

Configuration Impact

The same source or destination IP address cannot be configured for two or more tunnel interfaces that use the same encapsulation protocol.

Example

# Configure the destination IP address for a GRE tunnel named Tunnel10 as 2.2.2.2.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol gre
[*HUAWEI-Tunnel10] destination 2.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >