Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
5-15
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, Release 5.0(3)U2(2)
OL-25782-02
Chapter 5 Configuring Basic BGP
Configuring Basic BGP
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 64496
switch(config-router)#
Enables BGP and assigns the AS number to the local
BGP speaker. The AS number can be a 16-bit integer
or a 32-bit integer in the form of a higher 16-bit
decimal number and a lower 16-bit decimal number in
xx.xx format.
Step 3
neighbor ip-address remote-as as-number
Example:
switch(config-router)# neighbor
209.165.201.1 remote-as 64497
switch(config-router-neighbor)#
Configures the IPv4 address and AS number for a
remote BGP peer. The ip-address format is x.x.x.x.
Step 4
description text
Example:
switch(config-router-neighbor)#
description Peer Router B
switch(config-router-neighbor)#
(Optional) Adds a description for the neighbor. The
description is an alphanumeric string up to 80
characters.
Step 5
timers keepalive-time hold-time
Example:
switch(config-router-neighbor)# timers
30 90
(Optional) Adds the keepalive and hold time BGP
timer values for the neighbor. The range is from 0 to
3600 seconds. The default is 60 seconds for the
keepalive time and 180 seconds for the hold time.
Step 6
shutdown
Example:
switch(config-router-neighbor)# shutdown
(Optional) Administratively shuts down this BGP
neighbor. This command triggers an automatic
notification and session reset for the BGP neighbor
sessions.
Step 7
address-family ipv4 {unicast |
multicast}
Example:
switch(config-router-neighbor)#
address-family ipv4 unicast
switch(config-router-neighbor-af)#
Enters neighbor address family configuration mode for
the unicast IPv4 address family.
Step 8
show bgp ipv4 {unicast | multicast}
neighbors
Example:
switch(config-router-neighbor-af)# show
bgp ipv4 unicast neighbors
(Optional) Displays information about BGP peers.
Step 9
copy running-config startup-config
Example:
switch(config-router-neighbor-af) copy
running-config startup-config
(Optional) Saves this configuration change.