< Home

route-distinguisher

Function

The route-distinguisher command configures a route distinguisher (RD) for an EVPN instance address family.

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

Format

route-distinguisher route-distinguisher

Parameters

Parameter Description Value
route-distinguisher
Specifies the value of an RD. The RD can be in the following forms:
  • 2-byte AS number: 4-byte user-defined number, for example, 101: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. That is, an RD cannot be 0:0.

  • Integral 4-byte AS number: 2-byte user-defined number, for example, 0:3 or 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • 4-byte AS number in dotted notation: 2-byte user-defined number, for example, 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535, and the user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.

  • IPv4 address: 2-byte user-defined number, for example, 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

EVPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After an EVPN instance is created, run this command to configure an RD in the EVPN instance view.

Different EVPN instances may have the same route prefix. RDs can be configured for EVPN instances so that EVPN routes sent to the peer device are added with RD attributes. In this way, EVPN routes are unique globally and Rx devices can easily distinguish EVPN instances.

Precautions

After you configure the RD for an EVPN instance address family, the RD cannot be modified or deleted. When you need to modify an RD, delete the corresponding EVPN instance and reconfigure the RD.

Example

# Configure an RD for EVPN instance evn1.

<HUAWEI> system-view
[HUAWEI] evpn vpn-instance evn1 bd-mode
[HUAWEI-evpn-instance-evn1] route-distinguisher 22:1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >