route-distinguisher (VPN instance view)

Function

The route-distinguisher command configures an RD for a VPN instance.

The undo route-distinguisher command deletes the RD configuration in a specified VPN instance.

By default, no RD is configured for a VPN instance.

Format

route-distinguisher route-distinguisher

undo route-distinguisher route-distinguisher

Parameters

Parameter Description Value
route-distinguisher

Specifies the value of an RD. Three RD formats are available:

  • 2-byte AS number: 4-byte user-defined number, for example, 1: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.
  • 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.
  • 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 0 to 65535. A user-defined number also 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.
  • 4-byte 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.

-

Views

VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l3vpn write

Usage Guidelines

Usage Scenario

After creating a VPN instance and enabling the IPv4 address family for the VPN instance, you could run the route-distinguisher command to configure an RD for the address family.

Example

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