retain route-target all

Configures a route reflector (RR) to accept all route targets (RTs).

Syntax

retain route-target all
no retain route-target all

Command Default

This feature is disabled.

Modes

BGP address-family L2VPN EVPN configuration mode

Usage Guidelines

The no form of the command disables the retaining of all RTs.

Examples

The following example configures a RR to accept all RTs.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-evpn)# retain route-target all