Enables the exchange of information with BGP neighbors and peer groups.
Address exchange for IPv4 address family is enabled by default. Address exchange for IPv6 address family must be enabled explicitly.
BGP address-family IPv4 unicast configuration mode
BGP address-family IPv6 unicast configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
BGP address-family L2VPN EVPN configuration mode
The no form of the command disables the exchange of an address with a BGP neighbor or peer group.
The following example establishes a BGP session with a neighbor with the IPv6 address 2001:2018:8192::125.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 2001:2018:8192::125 activate
The following example establishes a BGP session with a neighbor with the IP address 10.1.1.1 in L2VPN EVPN configuration mode.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family l2vpn evpn device(config-bgp-evpn)# neighbor 10.1.1.1 activate
The following example establishes a BGP session with a neighbor with the IP address 20.0.0.1 and activates IPv6 address family for this neighbor.
SLX(config)# router bgp SLX(config-bgp-router)# neighbor 20.0.0.1 remote-as 200 SLX(config-bgp-router)# address-family ipv6 unicast SLX(config-bgp-ipv6u)# neighbor 20.0.0.1 activate