Cisco Cisco IOS Software Release 12.0(24)S

Page de 42
      BGP Configuration Using Peer Templates
How to Configure BGP Using Peer Templates
8
Cisco IOS Release: Multiple Releases (see the Feature History table)
Peer policy template POLICY-TEMPLATE-TWO is processed second because it has the next highest 
sequence number. It inherits the configuration from peer policy template POLICY-TEMPLATE-ONE 
and applies a weight of 1000. However, this template is also configured to apply a weight of 2000. So 
the value of 2000 will overwrite the value inherited from peer policy template 
POLICY-TEMPLATE-ONE.
template peer-policy POLICY-TEMPLATE-TWO 20
inherit peer-policy POLICY-TEMPLATE-ONE
weight 2000
exit peer-policy
Finally, peer policy template POLICY-TEMPLATE-THREE inherits the configurations from peer policy 
template ONE and TWO. But because peer policy template POLICY-TEMPLATE-THREE is also 
configured to apply a weight, the weight of 3000 overwrites the weight value of 2000 that was inherited 
from peer policy template POLICY-TEMPLATE-TWO. 
Template peer-policy POLICY-TEMPLATE-THREE 30
inherit peer-policy POLICY-TEMPLATE-TWO 
weight 3000 
exit peer-policy
The directly applied peer policy template and the inherit statement with the highest sequence number 
will always have priority and be applied last. Commands that are reapplied in subsequent peer templates 
will always overwrite the previous values. This behavior is designed to allow you to apply common 
policy configurations to large neighbor groups and specific policy configurations only to certain 
neighbors and neighbor groups without duplicating individual policy configuration commands. 
Peer policy templates support only policy configuration commands. BGP policy configuration 
commands that are configured only for specific address families or NLRI configuration modes are 
configured with peer policy templates.
How to Configure BGP Using Peer Templates
This section contains the following procedures: