Procedure Configuring BGP Configuring Peer Policy Template Inheritance with the neighbor inherit peer-policy Command 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 neighbor ip-address remote-as autonomous-system-number Example: Device(config-router)# neighbor 192.168.1.2 remote-as 40000 Configures a peering session with the specified neighbor.
The explicit remote-as statement is required for the neighbor inherit statement in Step 6 to work. If a peering is not configured, the specified neighbor in Step 6 will not accept the session template. Step 5 address-family ipv4 [multicast | unicast | vrf vrf-name] Example: Device(config-router)# address-family ipv4 unicast Enters address family configuration mode to configure a neighbor to accept address family-specific command configurations. Step 6 neighbor ip-address inherit peer-policy policy-template-name Example: Device(config-router-af)# neighbor 192.168.1.2 inherit peer-policy GLOBAL Sends a peer policy template to a neighbor so that the neighbor can inherit the configuration.
The example configures a router to send the peer policy template that is named GLOBAL to the 192.168.1.2 neighbor to inherit. This template can be applied to a neighbor, and if another peer policy template is indirectly inherited from GLOBAL, the indirectly inherited configuration will also be applied. Up to seven additional peer policy templates can be indirectly inherited from GLOBAL. Step 7 end Example: Exits address family configuration mode and returns to privileged EXEC mode. Configuring BGP 49