Friday, June 27, 2014

BGP Peer Template

Background Information

  1. peer-groups are commonly used to make it easier to configure many peers with identical settings.
  2. peer templates is newer and replaces peer-groups as an improvement to this process.
  3. Peer templates have the added benefit of inheritance and can be hierarchical.

Summary

  1. template peer-policy to create a policy template.
  2. template peer-session to create a session template.
  3. inherit peer-policy within a policy template to inherit another policy template.
  4. inherit peer-session within a session template to inherit another session template.
  5. neighbor X inherit peer-policy to inherit settings from a policy template
  6. neighbor X inherit peer-session to inherit settings from a session template
  7. show ip bgp template peer-policy to view policy templates
  8. 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