BGP peer groups are used to simplify configuration and to improve performance. It can be used when a router has a group of neighbors with the same update policies. The update is generated once per group rather than for each neighbor.
To create and use a peer group follow next steps:
neighbor group-name peer-groupto create a peer-group, where
group-nameis the name that you give to the peer group.
- next, enter
neighbor ip-address peer-group group-namecommand, which will make a neighbor to be part of peer group.
clear ip bgp peer-group group-namecommand in exec mode.
Now, let’s proceed to configuration. Below you have the scenario that will be used.I will show how to configure BGP peer group on BORDER router in AS 64520 from picture above. Loopback ip addresses are used as source of BGP packets. Let’s assume we have connection from BORDER router to all devices in AS 64520. If to not use BGP peer group, configuration on BORDER router with the others will look like this:
router bgp 64520 neighbor 10.0.0.2 remote-as 64520 neighbor 10.0.0.2 update-source loopback 0 neighbor 10.0.0.2 next-hop-self neighbor 10.0.0.3 remote-as 64520 neighbor 10.0.0.3 update-source loopback 0 neighbor 10.0.0.3 next-hop-self neighbor 10.0.0.4 remote-as 64520 neighbor 10.0.0.4 update-source loopback 0 neighbor 10.0.0.4 next-hop-self
With this configuration BGP updates will be generated for each neighbor, but if use peer group, updates are generated once per peer-group. If to use BGP peer-group, configuration on BORDER router will look like this:
router bgp 64520 neighbor local peer-group neighbor local remote-as 64520 neighbor local update-source loopback 0 neighbor local next-hop-self neighbor 10.0.0.2 peer-group local neighbor 10.0.0.3 peer-group local neighbor 10.0.0.4 peer-group local
The name of BGP peer-group is local, this you can see from configuration above, also we get a more robust configuration.
That’s all for now, I wish all the best to you!31942 views