BGP Peer Groups -
Check below configuration without BGP Peer Group -
Router1(config)#router bgp 10
Router1(config-router)#neighbor 2.2.2.2 remote-as 20
Router1(config-router)#neighbor 3.3.3.3 remote-as 30
Router1(config-router)#neighbor 2.2.2.2 update-source loopback 1
Router1(config-router)#neighbor 3.3.3.3 update-source loopback 1
Router1(config-router)#neighbor 2.2.2.2 ebgp-multihop 2
Router1(config-router)#neighbor 3.3.3.3 ebgp-multihop 2
Router1(config-router)#neighbor 2.2.2.2 route-map MED out
Router1(config-router)#neighbor 3.3.3.3 route-map MED out
Now check below same configuration with BGP Peer Group -
Router1(config)#router bgp 10
Router1(config-router)#neighbor 2.2.2.2 remote-as 20
Router1(config-router)#neighbor 3.3.3.3 remote-as 30
Router1(config-router)#neighbor R2-R3 peer-group
Router1(config-router)#neighbor 2.2.2.2 peer-group R2-R3
Router1(config-router)#neighbor 3.3.3.3 peer-group R2-R3
Router1(config-router)#neighbor R2-R3 update-source loopback 1
Router1(config-router)#neighbor R2-R3 ebgp-multihop 2
Router1(config-router)#neighbor R2-R3 route-map MED out
- Sometimes, some of the BGP neighbors share the exact same configuration, so you will have to type exact same command for each neighbor and you will have to configure each neighbor separately, it will be annoying, and it will usage a large amount of CPU resources. You can create a BGP peer group after that add the neighbors in this peer group, now you can apply all your configuration to the peer group.
- We can create a peer group via command "neighbor [Peer Group Name] peer-group"
- We can add neighbor in created peer group via command "neighbor [neighbor ip address] peer-group [Peer Group Name]".
- Basically BGP peer Groups used to simplify the configuration of BGP.
- It will also reduce the number of updates and usage less CPU resources.
Check below configuration without BGP Peer Group -
Router1(config)#router bgp 10
Router1(config-router)#neighbor 2.2.2.2 remote-as 20
Router1(config-router)#neighbor 3.3.3.3 remote-as 30
Router1(config-router)#neighbor 2.2.2.2 update-source loopback 1
Router1(config-router)#neighbor 3.3.3.3 update-source loopback 1
Router1(config-router)#neighbor 2.2.2.2 ebgp-multihop 2
Router1(config-router)#neighbor 3.3.3.3 ebgp-multihop 2
Router1(config-router)#neighbor 2.2.2.2 route-map MED out
Router1(config-router)#neighbor 3.3.3.3 route-map MED out
Now check below same configuration with BGP Peer Group -
Router1(config)#router bgp 10
Router1(config-router)#neighbor 2.2.2.2 remote-as 20
Router1(config-router)#neighbor 3.3.3.3 remote-as 30
Router1(config-router)#neighbor R2-R3 peer-group
Router1(config-router)#neighbor 2.2.2.2 peer-group R2-R3
Router1(config-router)#neighbor 3.3.3.3 peer-group R2-R3
Router1(config-router)#neighbor R2-R3 update-source loopback 1
Router1(config-router)#neighbor R2-R3 ebgp-multihop 2
Router1(config-router)#neighbor R2-R3 route-map MED out
0 comments:
Post a Comment
If you like my posts then please comment and if you don’t like then please suggest me to improve, and if you have any query related to post then please text me through the comment box or mail me on upadhyayambition@gmail.com , I will try my best to solve your queries as soon as possible.