Cisco Cisco IOS Software Release 12.0(24)S

Page de 42
      BGP Configuration Using Peer Templates
How to Configure BGP Using Peer Templates
15
Cisco IOS Release: Multiple Releases (see the Feature History table)
Configuring Peer Policy Templates
This task creates and configures a peer policy template. 
Peer Policy Templates Simplify and Improve the Flexibility of BGP Configuration
Peer policy templates are used to configure BGP policy commands that are configured for neighbors that 
belong to specific address-families and NLRI configuration modes. Peer policy templates can be 
configured in address family and NLRI configuration modes. Like peer session templates, peer policy 
templates are configured once and then applied to many neighbors through the direct application of a 
peer policy template or through inheritance from peer policy templates. Once the router is in peer policy 
template mode, you can configure any address family-specific command. The configuration of peer 
policy templates simplifies and improves the flexibility of BGP configuration. A specific policy can be 
configured once and referenced many times. Because a peer policy supports up to eight levels of 
inheritance, very specific and very complex BGP policies can also be created. 
Note
The commands in Steps 5 through 8 are optional and could be replaced with any supported BGP policy 
configuration commands. 
Restrictions
The following restrictions apply to the peer policy templates:
A peer policy template can directly or indirectly inherit up to eight peer policy 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-policy policy-template-name 
5.
send-community [both | extended | standard]
6.
maximum-prefix prefix-limit [threshold] [restart restart-interval | warning-only]
7.
weight weight-value
8.
prefix-list prefix-list-name {in | out}
9.
exit peer-policy