Send document comments to nexus3k-docfeedback@cisco.com
6-12
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Chapter 6      Configuring Advanced BGP
Configuring Advanced BGP
Note When editing a template, you can use the no form of a command at either the peer or template level to 
explicitly override a setting in a template. You must use the default form of the command to reset that 
attribute to the default state.
SUMMARY STEPS
1. configure terminal
2. router bgp autonomous-system-number
3. template peer-session template-name 
4. password number password
5. timers keepalive hold
6. exit 
7. neighbor ip-address remote-as as-number 
8. inherit peer-session template-name
9. (Optional) description text
10. (Optional) show bgp peer-session template-name
11. (Optional) copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
router bgp 
autonomous-system-number
Example:
switch(config)# router bgp 65536
switch(config-router)#
Enables BGP and assigns the autonomous system 
number to the local BGP speaker.
Step 3
template peer-session 
template-name
Example:
switch(config-router)# template 
peer-session BaseSession
switch(config-router-stmp)#
Enters peer-session template configuration mode.
Step 4
password 
number password
Example:
switch(config-router-stmp)# password 0 
test
(Optional) Adds the clear text password test to the 
neighbor. The password is stored and displayed in type 
3 encrypted form (3DES).
Step 5
timers 
keepalive hold
Example:
switch(config-router-stmp)# timers 30 90
(Optional) Adds the BGP keepalive and holdtimer 
values to the peer-session template.
The default keepalive interval is 60. The default hold 
time is 180.