Send document comments to nexus7k-docfeedback@cisco.com.
10-13
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 10 Configuring Basic BGP
Configuring Basic BGP
Use the no router bgp command to remove the BGP process and the associated configuration.
The following example shows how to enable BGP with the IPv4 unicast address family and manually
add one network to advertise:
switch# config t
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 instanceand clear all peer sessions for the instance.
To restart a BGP instance and remove all associated peers, use the following command:
Shutting Down BGP
You can shut down the BGP protoco and gracefully disable BGP and retains the configuration.
To shut down BGP, use the following command in router configuration mode:
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.