Specifications
Send document comments to nexus3k-docfeedback@cisco.com.
5-12
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
Creating a BGP Instance
You can create a BGP instance and assign a router ID to the BGP instance. See the “BGP Router
Identifier” section on page 5-4. Cisco NX-OS supports 2-byte or 4-byte autonomous system (AS)
numbers in plain-text notation or as.dot notation. See the “4-Byte AS Number Support” section on
page 5-2 for more information.
BEFORE YOU BEGIN
Ensure that you have enabled the BGP feature (see the “Enabling the BGP Feature” section on
page 5-11).
BGP must be able to obtain a router ID (for example, a configured loopback address).
SUMMARY STEPS
1. configure terminal
2. router bgp autonomous-system-number
3. (Optional) router-id ip-address
4. (Optional) address-family ipv4 {unicast | multicast}
5. (Optional) network ip-prefix [route-map map-name]
6. (Optional) show bgp all
7. (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 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
router-id ip-address
Example:
switch(config-router)# router-id
192.0.2.255
(Optional) Configures the BGP router ID. This IP
address identifies this BGP speaker. This command
triggers an automatic notification and session reset for
the BGP neighbor sessions.
Step 4
address-family ipv4{unicast | multicast}
Example:
switch(config-router)# address-family
ipv4 unicast
switch(config-router-af)#
(Optional) Enters global address family configuration
mode for the IPv4 address family. This command
triggers an automatic notification and session reset for
all BGP neighbors.