• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2215
  • Last Modified:

BGP peer-group vs peer-session

Can some body explain the difference between peer-group and template peer-session/peer-policy commands of BGP?
0
rash911
Asked:
rash911
1 Solution
 
MysidiaCommented:
Cisco's configuration guides provide the details:
http://www.cisco.com/en/US/docs/ios/12_0s/feature/guide/s_bgpct.html#wp1027129

Templates offer more flexibility.  Grouping was an earlier feature, and some attributes cannot be bound to a BGP peer group that can be used with templates.

A peer can directly inherit from one session template.  A session template can inherent from another session template  in a hierarchical arrangement.
For example:   You can have a template A,  and a template B that is based on template A through inheretence (nesting).    Then a peer that template B is applied to,  will include properties defined in both template A and template B, with properties added in template B  overriding  defaults provided by template A.
     

This notion of  inheretence is unique to templates.   When you use peer groups, a peer is a member of one group, and there is no inheretence  or basing groups off one another.


The BGP update policy is different.   Updates for members of a peer group are grouped together  (at least on routers that do not support Dynamic update peer groups).

This reduces CPU usage on the router, due to BGP scan, but results in restrictions, including:
* All neighbors in the same peer group have to share the same outbound routing policies
* All neighbors in the same peer group must have the same address family.
You cannot have an IPv4 peer and an IPv6 peer in the same peer group.
But if using peer templates,  they could use the same template.



0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now