Cisco Cisco IOS Software Release 12.0(24)S

Page de 42
      BGP Configuration Using Peer Templates
How to Configure BGP Using Peer Templates
10
Cisco IOS Release: Multiple Releases (see the Feature History table)
DETAILED STEPS
What to Do Next
After the peer session template is created, the configuration of the peer session template can be inherited 
or applied by another peer session template with the inherit peer-session or neighbor inherit 
peer-session
 command. 
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
template peer-session
 session-template-name
Example:
Router(config-router)# template peer-session 
INTERNAL-BGP 
Enters session-template configuration mode and creates a 
peer session template.
Step 5
remote-as 
as-number
Example:
Router(config-router-stmp)# remote-as 202
Configures peering with a remote neighbor in the specified 
autonomous system. 
Step 6
timers
 keepalive-interval hold-time 
Example:
Router(config-router-stmp)# timers 30 300
Configures BGP keepalive and hold timers.
The hold time must be at least twice the keepalive time. 
Step 7
exit peer-session
Example:
Router(config-router-stmp)# exit peer-session
Exits session-template configuration mode and enters 
router configuration mode.