An EVPN route-policy can be configured to control EVPN route receiving and advertisement.
An EVPN route-policy is used to match specified EVPN route information or some attributes in EVPN route information and to change these attributes as required. In addition, an EVPN route-policy can be deployed to control the routing table size, thereby conserving system resources.
if-match clause
Defines the matching rules that EVPN routes meet. The matching objects are some attributes of the EVPN routes.
apply clause
Specifies actions. Specifically, configuration commands are run after a route satisfies the matching rules specified by the if-match clauses. The apply clauses can change some attributes of EVPN routes.
After a route-policy is created, apply the route-policy to EVPN or L3VPN to make it take effect.
Filter Criteria |
Configuration Procedure |
---|---|
Filtering by VNI |
|
Filtering by MPLS label |
|
Filtering by route type |
|
Filtering by Ethernet tag |
|
Filtering by MAC address |
|
Filtering by encapsulation extended community attribute |
|
(Optional) Configuring an apply Clause helps you add or modify the attributes of EVPN routes.
Usage Scenario |
Configuration Procedure |
---|---|
Control route receiving and advertisement between BGP EVPN peers. |
|
Control the routes sent by an EVPN instance through EVPN or the routes received by an EVPN instance through BGP EVPN. |
|
Control the routes sent by an L3VPN instance through EVPN or the routes received by an L3VPN instance through BGP EVPN. |
|