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 3
neighbor prefix remote-as route-map
map-name
Example:
switch(config-router)# neighbor
192.0.2.0/8 remote-as routemap BGPPeers
switch(config-router-neighbor)#
Step 4
show bgp ipv4 {unicast | multicast}
neighbors
Example:
switch(config-router-neighbor-af)# show
bgp ipv4 unicast neighbors
Step 5
copy running-config startup-config
Example:
switch(config-router-neighbor-af) copy
running-config startup-config
This example shows how to configure dynamic AS numbers for a prefix peer:
switch# configure terminal
switch(config)# route-map BGPPeers
switch(config-route-map)# match as-number 64496, 64501-64510
switch(config-route-map)# match as-number as-path-list List1, List2
switch(config-route-map)# exit
switch(config)# router bgp 64496
switch(config-router)# neighbor 192.0.2.0/8 remote-as route-map BGPPeers
switch(config-router-neighbor)# description Peer Router B
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# copy running-config startup-config
See
Chapter 11, "Configuring Route Policy Manager"
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
Purpose
Configures the IPv 4 prefix and a route map for the list
of accepted AS numbers for the remote BGP peers.
The prefix format for IPv4 is x.x.x.x/length. The length
range is from 1 to 32.
The map-name can be any case-sensitive,
alphanumerics string up to 63 characters.
(Optional) Displays information about BGP peers.
(Optional) Saves this configuration change.
for information on route maps.
Configuring Basic BGP
5-17