Cisco Cisco IOS Software Release 12.0(24)S

Page de 42
      BGP Configuration Using Peer Templates
How to Configure BGP Using Peer Templates
13
Cisco IOS Release: Multiple Releases (see the Feature History table)
Configuring Peer Session Template Inheritance with the neighbor inherit 
peer-session Command
This task configures a router to send a peer session template to a neighbor to inherit the configuration 
from the specified peer session template with the neighbor inherit peer-session command. Use the 
following steps to send a peer session template configuration to a neighbor to inherit:
SUMMARY STEPS
1.
enable
2.
configure terminal 
3.
router bgp as-number
4.
neighbor ip-address remote-as as-number 
5.
neighbor ip-address inherit peer-session session-template-name 
6.
exit 
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configure
 terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
router bgp 
as-number 
Example:
Router(config)# router bgp 101
Enters router configuration mode and creates a BGP routing 
process. 
Step 4
neighbor
 ip-address remote-as as-number 
Example:
Router(config-router)# neighbor 172.16.0.1 
remote-as 202
Configures a peering session with the specified neighbor.
The explicit remote-as statement is required for the 
neighbor inherit statement in Step 5 to work. If a 
peering is not configured, the specified neighbor in 
Step 5 will not accept the session template.