cisco — Configuring Basic Peer Policy Templates

Note 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 inherit policies only from peer templates. To configure basic peer policy templates, perform this procedure: Procedure Configuring BGP Configuring Basic Peer Policy Templates Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example:

Device# configure terminal Enters global configuration mode. Step 3 router bgp autonomous-system-number Example: Device(config)# router bgp 45000 Enters router configuration mode and creates a BGP routing process. Step 4 template peer-policy policy-template-name Example: Device(config-router)# template peer-policy GLOBAL Enters policy-template configuration mode and creates a peer policy template. Step 5 maximum-prefix prefix-limit [threshold] [restart restart-interval | warning-only] Example: Device(config-router-ptmp)# maximum-prefix 10000 (Optional) Configures the maximum number of prefixes that a neighbor accept from this peer.

Note Any supported BGP policy configuration command can be used here. For a list of the supported commands, see the “Peer Policy Templates” section. Step 6 weight weight-value Example: Device(config-router-ptmp)# weight 300 (Optional) Sets the default weight for routes that are sent from this neighbor. Note Any supported BGP policy configuration command can be used here. For a list of the Configuring BGP 45