Specifications

Send document comments to nexus3k-docfeedback@cisco.com.
5-13
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
Use the no router bgp command to remove the BGP process and the associated configuration.
This example shows how to enable BGP with the IPv4 unicast address family and manually add one
network to advertise:
switch# configure terminal
switch(config)# router bgp 64496
switch(config-router)# address-family ipv4 unicast
switch(config-router-af)# network 192.0.2.0
switch(config-router-af)# copy running-config startup-config
Restarting a BGP Instance
You can restart a BGP instance and clear all peer sessions for the instance.
To restart a BGP instance and remove all associated peers, use the following command:
Step 5
network ip-prefix [route-map map-name]
Example:
switch(config-router-af)# network
192.0.2.0
(Optional) Specifies a network as local to this
autonomous system and adds it to the BGP routing
table.
For exterior protocols, the network command controls
which networks are advertised. Interior protocols use
the network command to determine where to send
updates.
Step 6
show bgp all
Example:
switch(config-router-af)# show bgp all
(Optional) Displays information about all BGP address
families.
Step 7
copy running-config startup-config
Example:
switch(config-router-af)# copy
running-config startup-config
(Optional) Saves this configuration change.
Command Purpose
Command Purpose
no router bgp autonomous-system-number
Example:
switch(config)# no router bgp 201
Deletes the BGP process and the associated
configuration.
Command Purpose
restart bgp instance-tag
Example:
switch(config)# restart bgp 201
Restarts the BGP instance and resets or
reestablishes all peering sessions.