As we know, configuring the BGP neighbor is not too difficult, but when we are going to configure 100 or more Number of neighbors, then it becomes pretty tedious activity.
To minimize this configuration overhead, we use the concept of BGP peer Group, where we can group the BGP Neighbors who are sharing the same outbound policies. But first, we need to manually configure 100 Peers and then add to the peer group. Hence the problem is still not resolved.
Related- BGP Neighbor States
Let’s verify BGP peer Group configuration
1 Example: Configuration step of iBGP Peer Group.
2 Example: Configuration step of eBGP peer Group.
Related- iBGP vs EBGP
With the Dynamic BGP peering feature, BGP router dynamically establishes peering with a group of remote neighbors that are configured using a range of IP addresses and BGP peer group. After a subnet range is configured for a BGP peer group and a TCP session is initiated by another router for an IP address in the subnet range, a new BGP neighbor is dynamically created as a member of that group.
So in this scenario, we will discuss how to configure Dynamic BGP peer.
As per diagram R1 wants dynamic peering with R2 and R3, so let’s verify the configuration steps;
Step 1. Define BGP peer group name
Step 2. Create a global limit of BGP dynamic subnet range neighbors. The value ranges from 1 to 5000.
Step 3. Define the IP Subnet Range and associate it with a peer group. Multiple subnets can be added to the same peer group.
Step 4. Define the remote-as for the peer group. Optionally, define the list of AS numbers that can be accepted to form neighborship with. The max limit of alternate-as numbers is 5.
Step 5. Activate the peer group under ipv4 address-family
Router1#show run | section router bgp
Router2#show run | section bgp
Router3#show run | section router bgp
Router1#show ip bgp summary
Router1#show tcp brief all
The output illustrates that the router is listening on port 179 but with foreign address of *.*
Related- BGP Interview Questions