The vpn-target evpn command configures the VPN target extended community attribute for EVPN routes in the VPN instance.
The undo vpn-target evpn command deletes the VPN target extended community attribute of EVPN routes in the VPN instance.
By default, no VPN target extended community list is configured for EVPN routes in the VPN instance.
Parameter | Description | Value |
---|---|---|
vpn-target |
Specifies a VPN target to be configured for a VPN instance. |
The format of a VPN target can be as follows:
|
vrfRtType |
Adds a VPN target to the VPN target list of a VPN instance. |
The value is an enumerated type:
|
all |
Deletes all the VPN targets of a VPN instance. |
- |
Usage Scenario
When advertising EVPN IP prefix routes to other PE peers, the local PE must carry all VPN targets in the export VPN target list configured for EVPN routes in the local VPN instance. If the VPN targets carried in received IRB routes or IP prefix routes overlap with those in the import VPN targets list of EVPN routes in the local VPN instance, only the IRB route or IP prefix route can be added to the routing table of the local VPN instance.
Prerequisites
A route distinguisher (RD) has been configured using the route-distinguisher command.
Configuration Impact
If the vpn-target evpn command is not used, a PE does not install received IRB routes or IP prefix routes into the routing table of its VPN instance.
After the undo vpn-target evpn command is run, all routes learned through IRB routes or IP prefix routes in the VPN instance are deleted.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf1 [*HUAWEI-vpn-instance-vrf1] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vrf1-af-ipv4] vpn-target 3:3 export-extcommunity evpn [*HUAWEI-vpn-instance-vrf1-af-ipv4] vpn-target 4:4 import-extcommunity evpn