local-vni

Function

The local-vni command binds an EVPL instance in VXLAN mode to a VNI.

The undo local-vni command unbinds an EVPL instance in VXLAN mode from a VNI.

By default, an EVPL instance in VXLAN mode is not bound to any VNI.

Format

local-vni vni-id

undo local-vni vni-id

Parameters

Parameter Description Value
vni-id

Specifies the ID of a VNI to be bound to an EVPL instance.

The value is an integer ranging from 1 to 16777215.

Views

EVPL instance VXLAN mode view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nvo3 write

Usage Guidelines

Usage Scenario

To bind a P2P VXLAN tunnel to an EVPL instance, run the local-vni command to bind the EVPL instance in VXLAN mode to the VNI of the P2P VXLAN tunnel.

Precautions

  • An EVPL instance can be bound to one VNI. Likewise, a VNI can be bound to one EVPL instance.
  • The binding relationship between an EVPL instance and a VNI cannot be modified. However, you can run the undo local-vni command to delete the binding relationship and then run the local-vni command to re-create a binding relationship.
  • When an EVPL instance is deleted, its binding relationship with a VNI is also deleted.

Example

# Bind an EVPL instance to VNI 20.
<HUAWEI> system-view
[~HUAWEI] evpl instance 1 vxlan-mode
[*HUAWEI-evpl-vxlan1] local-vni 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >