Configuring BGP EVPN Route Filters
An Ethernet Virtual Private Network (EVPN)
prefix list can be configured, permitting or denying specific routes. By default,
routes
that do not match a prefix list are learned or advertised. To prevent a route from
being
learned or advertised, you must configure and apply a prefix list to deny the route.
The following task creates an EVPN prefix list. The EVPN prefix list denies MAC addresses 02e0.52cb.55c8 and 02e0.52cb.55c9 and permits all other MAC addresses.
- Enter global configuration mode.
- Configure an IP prefix list instance. Specify that MAC address 02e0.52cb.55c8 is denied.
- For the same IP prefix list instance, specify that MAC address 02e0.52cb.55c9 is denied.
- For the same IP prefix list instance, specify that all other MAC addresses are permitted.
The following example creates an EVPN prefix list that denies MAC addresses 02e0.52cb.55c8 and 02e0.52cb.55c9 and permits all other MAC addresses.
device# configure terminal device(config)# ip evpn-prefix-list plist deny 02e0.52cb.55c8 device(config)# ip evpn-prefix-list plist deny 02e0.52cb.55c9 device(config)# ip evpn-prefix-list plist permit any