The vpn-target command configures VPN targets for an EVPN instance.
The undo vpn-target command deletes the VPN targets configured for an EVPN instance.
By default, no VPN targets are configured for an EVPN instance.
Parameter | Description | Value |
---|---|---|
vpn-target |
Specifies a VPN target to be configured for a VPN instance IPv4 address family. |
The format of a VPN target can be as follows:
|
vrfRtType |
Adds a VPN target to the VPN target list of a VPN instance IPv4 address family. |
The value is an enumerated type:
|
all |
Deletes all the VPN targets of a VPN instance IPv4 address family. |
- |
Usage Scenario
When a PE advertises EVPN routes to other PEs, the PE attaches all the local export VPN targets to these routes. After a PE receives EVPN routes, the PE matches export VPN targets carried in these routes against the local import VPN target list and imports these routes to the local EVPN instance routing table only if at least one export VPN target matches one import VPN target.
One vpn-target command configures a maximum of eight VPN targets. To configure more VPN targets, run the vpn-target command several times.Prerequisites
An RD has been configured for the EVPN instance using the route-distinguisher command.
Configuration Impact
If you do not configure this command, a PE cannot import received EVPN routes to its local EVPN instance routing table.
After all the VPN targets of an EVPN instance are deleted using the undo vpn-target command, all EVPN routes learned by the EVPN instance from other EVPN instances will be deleted.