Send document comments to nexus7k-docfeedback@cisco.com.
11-19
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 11 Configuring Advanced BGP
Configuring Advanced BGP
2. router bgp autonomous-system-number
3. template peer template-name
4. Add appropriate attributes to the peer template.
5. exit
6. neighbor ip-address
7. inherit peer template-name
8. exit
9. Add appropriate neighbor attributes.
10. show bgp peer-template template-name
11. copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
config t
Example:
switch# config t
switch(config)#
Enters configuration mode.
Step 2
router bgp
autonomous-system-number
Example:
switch(config)# router bgp 65536
Enters BGP mode and assigns the autonomous system
number to the local BGP speaker.
Step 3
template peer
template-name
Example:
switch(config-router)# template peer
BasePeer
switch(config-router-neighbor)#
Enters peer template configuration mode.
Step 4
inherit peer-session
template-name
Example:
switch(config-router-neighbor)# inherit
peer-session BaseSession
(Optional) Inherits a peer-session template in the peer
template.
Step 5
address-family {ipv4 | ipv6}{multicast |
unicast}
Example:
switch(config-router-neighbor)#
address-family ipv4 unicast
switch(config-router-neighbor-af)#
(Optional) Configures the global address family
configuration mode for the IPv4 address family.
Step 6
inherit peer
template-name
Example:
switch(config-router-neighbor-af)#
inherit peer BasePolicy
(Optional) Applies a peer template to the neighbor
address family configuration.
Step 7
exit
Example:
switch(config-router-neighbor-af)# exit
switch(config-router-neighbor)#
Exits BGP neighbor address family configuration
mode.