Cisco Cisco IOS Software Release 12.0(24)S

Page de 42
      BGP Configuration Using Peer Templates
How to Configure BGP Using Peer Templates
9
Cisco IOS Release: Multiple Releases (see the Feature History table)
Configuring Peer Session Templates
This task creates and configures a peer session template.
Peer Session Templates Simplify BGP Configuration
General session commands can be configured once in a peer session template and then applied to many 
neighbors through the direct application of a peer session template or through indirect inheritance from 
peer session templates. The configuration of peer session templates simplifies the configuration of 
general session commands that are commonly applied to all neighbors within an autonomous system.
Note
The commands in Step 5 and 6 are optional and could be replaced with any supported general session 
commands. 
Restrictions
The following restrictions apply to the peer session templates:
A peer session template can directly inherit only one session template, and each inherited session 
template can also contain one indirectly inherited session template. So, a neighbor or neighbor group 
can be configured with only one directly applied peer session template and seven additional 
indirectly inherited peer session templates.
A BGP neighbor cannot be configured to work with both peer groups and peer templates. A BGP 
neighbor can be configured to belong only to a peer group or to only inherit policies from peer 
templates. 
SUMMARY STEPS
1.
enable
2.
configure terminal 
3.
router bgp as-number 
4.
template peer-session session-template-name 
5.
remote-as as-number 
6.
timers keepalive-interval hold-time 
7.
exit peer-session