evpn vpn-instance

Function

The evpn vpn-instance command creates an EVPN instance and enters the EVPN instance view.

The undo evpn vpn-instance command deletes an EVPN instance.

By default, no EVPN instance is created.

Format

evpn vpn-instance vpn-instance-name

evpn vpn-instance vpn-instance-name i-evpn

evpn vpn-instance vpn-instance-name b-evpn

evpn vpn-instance vpn-instance-name bd-mode

evpn vpn-instance vpn-instance-name vpws

undo evpn vpn-instance vpn-instance-name [ i-evpn | b-evpn | bd-mode | vpws ]

Parameters

Parameter Description Value
vpn-instance-name

Specifies the name of an EVPN instance.

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.

i-evpn

Specifies the EVPN instance as an I-EVPN instance.

Only the NetEngine 8000 F1A supports this parameter.

-

b-evpn

Specifies the EVPN instance as a B-EVPN instance.

Only the NetEngine 8000 F1A supports this parameter.

-

bd-mode

Specifies the EVPN instance as an EVPN in BD mode.

-

vpws

Specifies the EVPN instance as an EVPN in VPWS mode.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

To allow Layer 2 networks to communicate over a public network, use EVPN. EVPN instances must be configured on PEs on the public network before you perform EVPN operations. To configure an EVPN instance, run the evpn vpn-instance command.

To create a BD EVPN instance, run the evpn vpn-instance bd-mode command.

Configuration Impact

An EVPN instance functions as a virtual routing table on a PE and consumes resources on the PE.

After the undo evpn vpn-instance command is run to delete an EVPN instance, all configurations of the EVPN instance are deleted.

Follow-up Procedure

After creating an EVPN instance, perform the following operations in the EVPN instance view:

  • Run the route-distinguisher command to configure an RD for the EVPN instance.
  • Run the vpn-target command to configure VPN targets for the EVPN instance.

Precautions

A BD EVPN instance can be bound only to BDs. To bind a BD EVPN instance to a BD, run the evpn binding vpn-instance command.

Example

# Create a B-EVPN instance named vrf1.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance vrf1 b-evpn
# Create an EVPN instance named vrf1.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance vrf1
# Create a BD EVPN instance named vrf1.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance vrf1 bd-mode
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >