Configuring BGP Configuring Peer Session Template Inheritance with the inherit peer-session Command Command or Action Purpose Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 router bgp autonomous-system-number Example: Device(config)# router bgp 101 Enters router configuration mode and creates a BGP routing process. Step 4 template peer-session session-template-name Example: Device(config-router)# template peer-session CORE1 Enter session-template configuration mode and creates a peer session template. Step 5 description text-string Example: Device(config-router-stmp)# description CORE-123 (Optional) Configures a description.
The text string can be up to 80 characters. Note Any supported general session command can be used here. For a list of the supported commands, see the “Restrictions” section. Step 6 update-source interface-type interface-number Example: Device(config-router-stmp)# update-source loopback 1 (Optional) Configures a router to select a specific source or interface to receive routing table updates. The example uses a loopback interface. The advantage to this configuration is that the loopback interface is not as susceptible to the effects of a flapping interface. Note Any supported general session command can be used here. For a list of the supported commands, see the “Restrictions” section.
Step 7 inherit peer-session session-template-name Example: Device(config-router-stmp)# inherit peer-session INTERNAL-BGP Configures this peer session template to inherit the configuration of another peer session template. The example configures this peer session template to inherit the configuration from INTERNAL-BGP. This template can be applied to a neighbor, and the configuration INTERNAL-BGP will be applied indirectly. No additional peer session templates can be directly applied. However, the directly inherited Configuring BGP 42