No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
export route-policy

export route-policy


The export route-policy command associates the current VPN instance address family with an export Route-Policy.

The undo export route-policy command disassociates the current VPN instance address family from the export Route-Policy.

By default, the current VPN instance address family is not associated with any export Route-Policy.


CE6810LI series do not support this command.


export route-policy policy-name [ add-ert-first ]

VPN instance view:

undo export route-policy

VPN instance IPv4 address family view:

undo export route-policy [ policy-name ]


Parameter Description Value
policy-name Specifies the name of the export Route-Policy to be associated with the VPN instance address family. The name is a string of 1 to 200 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string.
add-ert-first Adds ERTs to VPN routes before these routes are matched against an export routing policy. -


VPN instance view, VPN instance IPv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can implement a more accurate advertisement of the routes of the VPN instance address family based on the export Route-Policy than that based on the extended community attribute. The export Route-Policy is used to filter the routing information and to set the routing attributes of the routes that pass the filtering.

The export route-policy command advertises local routes of the VPN instance address family to other VPN instances address family. The peer route-policy command or the filter-policy command run in the BGP VPN instance address family view filters routes of the VPN instance address family advertised to or received from CE neighbors.

By default, ERTs are added to VPN routes before these routes are matched against an export routing policy. If the export routing policy contains RT-related filtering rules, these rules cannot apply to these routes. If you want to apply the RT-related filtering rules defined in an export routing policy to VPN routes, run the add-ert-first command to configure the system to add ERTs to VPN routes before matching these routes against the export routing policy.


The route-distinguisher command has been executed to set the RD of the VPN instance.


The current VPN instance address family can be associated with only one export Route-Policy. If the export route-policy command is run several times, the latest configuration overrides the previous configurations.

If the route policy does not exist, you need to configure the route policy.


# Apply an export Route-Policy named poly-1 to the IPv4 address family of the VPN instance named vrf1.

<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[*HUAWEI-vpn-instance-vrf1] ipv4-family
[*HUAWEI-vpn-instance-vrf1-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vrf1-af-ipv4] export route-policy poly-1
Related Topics
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 68815

Downloads: 374

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next