route-distinguisher (EVPN)

Function

The route-distinguisher command configures an RD for an EVPN instance.

The undo route-distinguisher command deletes the RD of an EVPN instance.

By default, no RD is configured for an EVPN instance.

Format

route-distinguisher route-distinguisher

undo route-distinguisher route-distinguisher

Parameters

Parameter Description Value
route-distinguisher

Specifies an RD.

An RD can be in either of the following formats:

  • 2-byte AS number: 4-byte user-defined number, such as 1:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte AS number: 2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number in dotted notation: 2-byte user-defined number, such as 0.0:3 or 0.1:0. The AS number is in the format of x.y, where x and y are integers ranging from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0.0:0.
  • 4-byte IP address: 2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.

Views

B-EVPN instance view, BD EVPN view, EVPN instance view, VPWS-EVPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

An RD must be configured for an EVPN instance after the EVPN instance is created. To configure an RD for an EVPN instance, run the route-distinguisher command.

Different EVPN instances may have the same route prefix. To allow a PE to determine to which EVPN instance a route belongs, run the route-distinguisher command to configure an RD for each EVPN instance on the PE. After the configuration, a route sent from an EVPN instance will carry an RD, making the route a globally unique EVPN route.

Precautions

Running the undo route-distinguisher command in the B-EVPN instance view causes EVPN-related configurations to be deleted.

Example

# Configure an RD for EVPN instance evpn1.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evpn1
[*HUAWEI-evpn-instance-evpn1] route-distinguisher 22:1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >