02-13-2014 02:30 AM - edited 03-07-2019 06:10 PM
I recently saw the command "neighbor x.x.x.x activate" under router bgp configuration. Neighbors are automatically activated if configured properly. Then why do we need this command?
02-13-2014 02:35 AM
Hi,
This command is used under family-address to tell other peers which family-address we support( ipv4/ipv6 unicast, ipv4/ipv6 multicast, ipv4/ipv6 VPN).This is for MP-BGP but now you can use it with BGP as replacement for default ipv4 configuration.
Regards
Alain
Don't forget to rate helpful posts.
02-13-2014 02:40 AM
Thanks Cadet.
But why will anybody want to use this command when normal BGP config works just fine? I guess there is no need, just that if IPv6 (or protocol other than IPv4) is used, then this command is a must as IPv4 is default for BGP...Is that right?
02-13-2014 03:18 AM
This can be used on CE VRFs. CE IP addresses are known only at appropriate VRF level hence it makes no sense in defining the neighbor at process level.
As the IPv4 address families are used to represent routing session for protocols that use IPv4 address prefix. We need to activate in IPv4 routing session.
02-13-2014 03:56 AM
Hello
I guess there is no need, just that if IPv6 (or protocol other than IPv4) is used, then this command is a must as IPv4 is default for BGP...Is that right? - NO that inst correct
By default bgp assumes you want to use ipv4 unicast bgp, however if you disable this prior to defining you bgp peers
no bgp default ipv4-unicast than you need to specify this activate command so that peer will establish.
router bgp xxx
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor x.x.x.x remote-as xx
address-family ipv4
neighbor x.x.x.x activate
res
Paul
Hope this have been helpful.
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide