source (NVE interface view)

Function

The source command configures an IP address for a source VXLAN tunnel endpoint (VTEP).

The undo source command deletes the IP address of a source VTEP.

By default, no IP address is configured for any source VTEP.

Format

source ip-address

undo source [ ip-address ]

Parameters

Parameter Description Value
ip-address

Specifies an IP address for a source VTEP.

The value is in dotted decimal notation.

Views

NVE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

A VTEP is a VXLAN tunnel endpoint that encapsulates or decapsulates VXLAN packets. It is represented by a network virtualization edge (NVE).

To configure an IP address for a source VTEP, run the source command. In VXLAN packets, the source IP address is the source VTEP's IP address, and the destination IP address is a remote VTEP's IP address. This pair of VTEP addresses corresponds to a VXLAN tunnel.

Precautions

Either a physical interface's IP address or loopback interface address can be specified for a source VTEP. Using the loopback interface address as the source VTEP's IP address is recommended.

Generally, you need to configure different VTEP IP addresses for the NVE interfaces of different devices; otherwise, traffic forwarding error may occur. However, in some special scenarios (for example, a multi-active VXLAN gateways scenario), you need to configure the same VTEP IP address for the gateways' NVE interfaces.

Example

# Configure the IP address 1.1.1.1 for a source VTEP.
<HUAWEI> system-view
[~HUAWEI] interface nve 1
[*HUAWEI-Nve1] source 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >