Use the neighbor activate command in IPv4 VRF Address Family Config mode to enable exchange of IPv4 VRF prefixes with a neighbor.
Using this command under the address-family vpnv4 unicast mode enables the local BGP router to send VPNv4 prefixes to its BGP peer across the backbone. Each address carried in an NLRI is prefixed with an 8-byte Route distinguisher value.
Using this command under the address-family l2vpn mode enables the local BGP router to send L2VPN prefixes to its BGP peer across the backbone. Each address carried in an NLRI is prefixed with an 8-byte Route distinguisher value.
When IPv4 VRF/VPNv4/L2VPN is enabled for a neighbor, the adjacency is brought down and restarted to communicate the change to the peer. It is recommended that the user completely configures all the required IPv4 routing policies for the peer before activating the peer.
When L2VPN is disabled for a neighbor, the configured commands for L2VPN address family will be cleared and set the default configuration in L2VPN EVPN address family.
| Default | IPv4 VRF/VPNv4/L2VPN prefixes are not sent to the neighbor. |
| Format | neighbor prefix activate |
| Mode |
|
| Parameter | Description |
|---|---|
| prefix | An IPv4 address in dotted notation. |
Example: The following example enables the exchange of VPNv4 and L2VPN prefixes with the external peer at 1.1.1.1.
(R1) (Config)# router bgp 1 (R1) (Config-router)# neighbor 1.1.1.1 remote-as 2 (R1) (Config-router)# address-family vpnv4 unicast (R1) (Config-router-af-vpnv4)# neighbor 1.1.1.1 activate (R1) (Config-router-af-vpnv4)# exit (R1) (Config-router)# address-family l2vpn evpn (R1) (config-router-af-l2vpn-evpn)# neighbor 1.1.1.1 activate