retain route-target all

This L2VPN EVPN command is configured on the Spine node to retain and advertise all the EVPN routes without changing their route-targets. That is because there are no local VNIs (VxLAN network identifiers) configured on the Spine node that import the matching route-targets. This setting is applied to all the BGP neighbors activated in the EVPN Address Family mode. The route-targets can be updated in the outbound using the outbound route-maps as usual.

Default Disabled
Format retain route-target all
Mode L2VPN Address-Family Config Mode

Example: Enabling the configuration to retain the route-targets on received EVPN routes from neighbors:

(Router) (Config)# router bgp 10
(Router) (Config-router)# address-family l2vpn evpn
(Router) (Config-router-af-evpn)# retain route-target all
(Router) (Config-router-af-evpn)# exit

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo