cisco — Configuring Peer Policy Template Inheritance with the inherit peer-policy Command

Configuring BGP Configuring Peer Policy Template Inheritance with the inherit peer-policy Command Command or Action Purpose Device(config)# router bgp 45000 Step 4 template peer-policy policy-template-name Example: Device(config-router)# template peer-policy NETWORK1 Enter policy-template configuration mode and creates a peer policy template. Step 5 route-map map-name {in| out} Example: Device(config-router-ptmp)# route-map ROUTE in (Optional) Applies the specified route map to inbound or outbound routes. Note Any supported BGP policy configuration command can be used here. Step 6 inherit peer-policy policy-template-name sequence-number Example:

Device(config-router-ptmp)# inherit peer-policy GLOBAL 10 Configures the peer policy template to inherit the configuration of another peer policy template. • The sequence-number argument sets the order in which the peer policy template is evaluated. Like a route map sequence number, the lowest sequence number is evaluated first. • The example configures this peer policy template to inherit the configuration from GLOBAL. If the template created in these steps is applied to a neighbor, the configuration GLOBAL will also be inherited and applied indirectly.

Up to six additional peer policy templates can be indirectly inherited from GLOBAL for a total of eight directly applied and indirectly inherited peer policy templates. • This template in the example will be evaluated first if no other templates are configured with a lower sequence number. Step 7 end Example: Device(config-router-ptmp)# end Exits policy-template configuration mode and returns to privileged EXEC mode. Step 8 show ip bgp template peer-policy [policy-template-name[detail]] Example: Displays locally configured peer policy templates. • The output can be filtered to display a single peer policy template with the Configuring BGP 47