Use this command in BGP router configuration mode to enter the Layer 2 VPN EVPN configuration mode. BGP neighbor has to be activated in this mode to enable the transmit and receive capability of the EVPN routes with the peer.
Default | Not configured |
Format | address-family l2vpn evpn |
Mode | BGP Router Config |
Usage Guidelines
This command takes the user into the Layer 2 VPN EVPN address family configuration mode. The following commands are available in this mode.
- neighbor ip-address activate
- neighbor ip-address send-community extended
- neighbor ip-address send-community both
- retain route-target all
- neighbor ip-address route-map route-map out
- neighbor ip-address maximum-prefix { maximum | unlimited } [threshold]
- neighbor ip-address route-reflector-client
Example: The following example shows how to enter the Layer 2 VPN EVPN address family mode and configure the available neighbor commands:
(Router) (Config)# route-map permit-all permit 20 (Router) (route-map)# set ip next-hop unchanged (Router) (route-map)# exit (Router) (Config)# router bgp 10 (Router) (Config-router)# neighbor 1.1.1.1 remote-as 10 (Router) (Config-router)# address-family l2vpn evpn (Router) (Config-router-af-evpn)# neighbor 1.1.1.1 activate (Router) (Config-router-af-evpn)# neighbor 1.1.1.1 send-community extended (Router) (Config-router-af-evpn)# neighbor 1.1.1.1 route-map permit-all out (Router) (Config-router-af-evpn)# neighbor 1.1.1.1 maximum-prefix 100 (Router) (Config-router-af-evpn)# neighbor 1.1.1.1 route-reflector-client (Router) (Config-router-af-evpn)# retain route-target all (Router) (Config-router-af-evpn)# exit (Router) (Config-router)#