Reference Guide

To add an IBGP neighbor, congure the as-number parameter with the same BGP as-number congured in the router bgp
as-number command.
8 Assign a peer-template with a peer-group name from which to inherit to the neighbor in ROUTER-NEIGHBOR mode.
inherit template template-name
9 Enable the neighbor in ROUTER-BGP mode.
no shutdown
When you add a peer to a peer group, it inherits all the peer group congured parameters. When you disable a peer group, all the peers
within the peer template that are in the
Established state move to the Idle state. A neighbor cannot become a part of a peer group if
it has any of these commands congured:
advertisement-interval
next-hop-self
route-map out
route-reflector-client
send-community
A neighbor may keep its conguration after it is added to a peer group if the neighbor conguration is more specic than the peer group
and if the neighbor conguration does not aect outgoing updates.
To display the peer-group conguration assigned to a BGP neighbor, enter the show ip bgp peer-group peer-group-name
command. The show ip bgp neighbor command output does not display peer-group congurations.
The following example shows a sample conguration:
Congure peer templates
OS10# configure terminal
OS10(config)# router bgp 64601
OS10(config-router-bgp-64601)# template leaf_v4_ebgp
OS10(config-router-template)# description peer_template_1_abcd
OS10(config-router-template)# address-family ipv4 unicast
OS10(config-router-bgp-template-af)# distribute-list leaf_v4_in in
OS10(config-router-bgp-template-af)# distribute-list leaf_v4_out out
OS10(config-router-bgp-template-af)# route-map set_aspath_prepend in
OS10(config-router-bgp-template-af)# exit
OS10(config-router-template)# exit
OS10(config-router-bgp-64601)# neighbor 100.5.1.1
OS10(config-router-neighbor)# inherit template leaf_v4
OS10(config-router-neighbor)# remote-as 64802
OS10(config-router-neighbor)# no shutdown
OS10(config-router-neighbor)# exit
OS10(config-router-bgp-64601)# neighbor 100.6.1.1
OS10(config-router-neighbor)# inherit template leaf_v4
OS10(config-router-neighbor)# remote-as 64802
OS10(config-router-neighbor)# no shutdown
View peer group status
OS10# show ip bgp peer-group leaf_v4
Peer-group leaf_v4, remote AS 0
BGP version 4
Minimum time between advertisement runs is 30 seconds
Description: peer_template_1_abcd
For address family: Unicast
BGP neighbor is leaf_v4, peer-group external
Update packing has 4_OCTET_AS support enabled
Number of peers in this group 2
Peer-group members:
100.5.1.1
100.6.1.1
OS10# show ip bgp peer-group leaf_v4 summary
BGP router identifier 100.0.0.8 local AS number 64601
306
Layer 3