route route-distinguisher auto

Function

The route route-distinguisher auto command enables automatic RD allocation.

The undo route route-distinguisher auto command disables automatic RD allocation.

By default, automatic RD allocation is disabled.

Format

route route-distinguisher auto rd-ip

undo route route-distinguisher auto [ rd-ip ]

Parameters

Parameter Description Value
rd-ip

Specifies an IPv4 address.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l3vpn write

Usage Guidelines

Usage Scenario

When an RD is not automatically assigned to an address family of a VPN instance by default, manually allocating RDs may cause RD conflicts if a large number of VPN instances need to be created and a large number of RDs are planned. To solve this problem, you can run the route route-distinguisher auto command to enable the automatic RD allocation function. In this command, set the rd-ip parameter to an IPv4 address. RDs in the format of IP-address:index can be automatically assigned to all VPN instances that have no allocated RDs. An index is an automatically allocated 2-byte number ranging from 1 to 65535.

Example

# Enable automatic RD allocation.
<HUAWEI> system-view
[~HUAWEI] route route-distinguisher auto 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >