Chapter 5
Configuring Basic BGP
S e n d d o c u m e n t c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
Command
Step 5
network ip-prefix [route-map map-name ]
Example:
switch(config-router-af)# network
192.0.2.0
Step 6
show bgp all
Example:
switch(config-router-af)# show bgp all
Step 7
copy running-config startup-config
Example:
switch(config-router-af)# copy
running-config startup-config
Use the no router bgp command to remove the BGP process and the associated configuration.
Command
no router bgp autonomous-system-number
Example:
switch(config)# no router bgp 201
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:
Command
restart bgp instance-tag
Example:
switch(config)# restart bgp 201
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Purpose
(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.
(Optional) Displays information about all BGP address
families.
(Optional) Saves this configuration change.
Purpose
Deletes the BGP process and the associated
configuration.
Purpose
Restarts the BGP instance and resets or
reestablishes all peering sessions.
Configuring Basic BGP
5-13