BGP Peer Groups Overview and Configuration Example
What is BGP Peer-group
You can group BGP neighbors who share the same outbound policies together in what is called a BGP peer group.
Instead of configuring each neighbor with the same policy individually, a peer group allows you to group the policies which can be applied to individual peers thus making efficient update calculations along with simplified configuration.
Requirements of Peer Groups
Peer groups have these requirements:
- All members of a peer group must share identical outbound announcement policies (such as distribute-list, filter-list, and route-map), except for default-originate, which is handled on a per-peer basis even for peer group members.
- You can customize the inbound update policy for any member of a peer group.
- A peer group must be either internal (with internal BGP (iBGP) members) or external (with external BGP (eBGP) members). Members of an external peer group have different autonomous system (AS) numbers.
BGP Peer Groups Configuration Example
#Define the peer group:
neighbor LD-BGP-Group peer-group
# Associate peers to the the peer group:
neighbor 172.16.10.2 peer-group LD-BGP-Group
neighbor 172.16.20.2 peer-group LD-BGP-Group
neighbor 172.16.30.2 peer-group LD-BGP-Group
# Apply the peer group:
neighbor LD-BGP-Group remote-as 65010
neighbor LD-BGP-Group next-hop-self
Code language: CSS (css)
Reference: Cisco