< Home

route-distinguisher (MPLS-L2VPN instance view)

Function

The route-distinguisher command configures an RD for an MPLS L2VPN instance.

By default, no RD is configured in the MPLS L2VPN instance view.

Format

route-distinguisher route-distinguisher

Parameters

Parameter Description Value
route-distinguisher Specifies the value of an RD. The formats of an RD are as follows:
  • 16-bit AS number:32-bit user-defined number

    For example, 102:3.

    An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.

  • 32-bit IP address:16-bit user-defined number

    For example, 192.168.122.15:1.

    An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A 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. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A 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.

-

Views

MPLS-L2VPN instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a Kompella VLL networking, an L2VPN instance takes effect only after an RD is configured.

Precautions

VPNs on the same PE have different RDs. The same VPN can have the same RD or different RDs on different PEs.

To change the RD of an L2VPN instance, delete the L2VPN instance and create a new L2VPN instance.

Kompella VLL and Kompella VPLS must use different RDs.

Example

# Set the RD of an MPLS L2VPN instance to 300:1.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn1 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 300:1

# Set the RD of an MPLS L2VPN instance to 1.1.1.1:5.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn2 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 1.1.1.1:5

# Set the RD of an MPLS L2VPN instance to 16.30:50.

<HUAWEI> system-view
[HUAWEI] mpls l2vpn vpn2 encapsulation vlan
[HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 16.30:50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >