export route-policy (EVPN instance view)

Function

The export route-policy command associates an EVPN instance with an export routing policy.

The undo export route-policy command disassociates an EVPN instance with an export routing policy.

By default, an EVPN instance is not associated with any export routing policy.

Format

export route-policy policy-name

undo export route-policy

Parameters

Parameter Description Value
policy-name

Specifies the name of a routing policy.

The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

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

By default, an EVPN instance adds all VPN targets in the export VPN target list to EVPN routes to be advertised to its peers. To control route export more precisely, run the export route-policy command to associate the EVPN instance with an export routing policy and set attributes for eligible routes.

Prerequisites

An RD has been configured for the EVPN instance using the route-distinguisher command.

If the export route-policy to be associated with a VPN instance IPv4 address family does not exist, configure the export route-policy first.

Configuration Impact

If the command is run more than once, the latest configuration overrides the previous one.

Example

# Associate an EVPN instance with an export routing policy named rp2.
<HUAWEI> system-view
[~HUAWEI] route-policy rp2 permit node 10
[*HUAWEI-route-policy] apply community 10:1
[*HUAWEI-route-policy] quit
[*HUAWEI] evpn vpn-instance vrf vpws
[*HUAWEI-evpn-instance-vrf] route-distinguisher 100:1
[*HUAWEI-evpn-instance-vrf] export route-policy rp2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >