default-color

Function

The default-color command configures the default color used by the EVPN L2VPN service when iterating the SR TE Policy or SRv6 TE Policy tunnel.

The undo default-color command restores the default setting.

By default, the default-color function is disabled.

Format

default-color color-value

undo default-color color-value

Parameters

Parameter Description Value
color-value

Set the default color used when the EVPN L2VPN service iterates the SR TE Policy or SRv6 TE Policy tunnel.

The value is an integer ranging from 0 to 4294967295.

Views

BD EVPN view, VPWS-EVPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The default-color command takes effect only on the remote cross-routes of EVPN L2VPN services on the local device.

Use the default-color command to configure the EVPN L2VPN service remote cross-route to iterate the default color of the SR TE Policy or SRv6 TE Policy tunnel. After the remote cross-route crosses to the VPN instance, if the route does not carry the color extended community attribute, use The default color value is SR TE Policy or SRv6 TE Policy tunnel iteration.

Prerequisites

A route distinguisher (RD) has been configured using the route-distinguisher command.

Configuration Impact

If the default color value has been configured on the device, when the user configures the default color value again, the new default color value will replace the original default color value.

Precautions

The color value takes effect only when the EVPN L2VPN remote cross-route crosses to the VPN instance and iterates the SR TE Policy or SRv6 TE Policy. It does not take effect when the route is sent out.

Example

# Set the default color value used for EVPN VPLS services to 200 for EVPN instances in BD mode.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evrf2 bd-mode
[*HUAWEI-evpn-instance-evrf2] route-distinguisher 20:1
[*HUAWEI-evpn-instance-evrf2] default-color 200
# Set the default color value used for EVPN VPLS services to 100 for EVPN instances in VPWS mode.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evrf1 vpws
[*HUAWEI-vpws-evpn-instance-evrf1] route-distinguisher 10:1
[*HUAWEI-vpws-evpn-instance-evrf1] default-color 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >