The vpn-target evpn command configures the VPN target extended community attribute for EVPN routes in the VPN instance IPv6 address family.
The undo vpn-target evpn command deletes the VPN target extended community attribute of EVPN routes in the VPN instance IPv6 address family.
By default, no VPN target extended community list is configured for EVPN routes in the VPN instance IPv6 address family.
Parameter | Description | Value |
---|---|---|
vpn-target |
Specifies the VPN target to be added to the VPN target list of a VPN instance IPv6 address family. |
The three formats of a VPN target are as follows:
|
vrfRtType |
Adds a VPN target to the VPN target list of a VPN instance IPv6 address family. |
The value is an enumerated type:
|
all |
Delete all the VPN targets of a VPN instance IPv6 address family. |
- |
Usage Scenario
When advertising EVPN IPv6 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 IPv6 address family. If the VPN targets carried in received IRBv6 routes or IPv6 prefix routes overlap with those in the import VPN targets list of EVPN routes in the local VPN instance IPv6 address family, only the IRBv6 route or IPv6 prefix route can be added to the routing table of the local VPN instance IPv6 address family.
Prerequisites
The ipv6-family command has been run in the VPN instance view to enable the IPv6 address family, and the route-distinguisher command has been run in the VPN instance view to set an RD for the VPN instance IPv6 address family.
Configuration Impact
If the vpn-target evpn command is not used, a PE does not install received IRBv6 routes or IPv6 prefix routes into the routing table of its VPN instance IPv6 address family.
After the undo vpn-target evpn command is run, all routes learned through IRBv6 routes or IPv6 prefix routes in the VPN instance address family are deleted.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf1 [*HUAWEI-vpn-instance-vrf1] ipv6-family [*HUAWEI-vpn-instance-vrf1-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vrf1-af-ipv6] vpn-target 5:5 evpn