Background Information
- peer-groups are commonly used to make it easier to configure many peers with identical settings.
- peer templates is newer and replaces peer-groups as an improvement to this process.
- Peer templates have the added benefit of inheritance and can be hierarchical.
Summary
- template peer-policy to create a policy template.
- template peer-session to create a session template.
- inherit peer-policy within a policy template to inherit another policy template.
- inherit peer-session within a session template to inherit another session template.
- neighbor X inherit peer-policy to inherit settings from a policy template
- neighbor X inherit peer-session to inherit settings from a session template
- show ip bgp template peer-policy to view policy templates
- show ip bgp template peer-session to view session templates
router bgp 6500
template peer-session TEM1
remote-as 6500
template peer-session TEM2
inherit peer-session TEM1 1
timers 10 180
template peer-policy TEM1
next-hop-self
template peer-policy TEM2
inherit peer-policy TEM1 1
send-community both
neighbor 10.1.1.1 inherit peer-session TEM2
address-family ipv4
neighbor 10.1.1.1 inherit peer-policy TEM2