Configuring Advanced 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
advertise-map adv-map {exist-map
exist-rmap | non-exist-map
nonexist-rmap }
Example:
switch(config-router-neighbor-af)#
advertise-map advertise exist-map exist
Step 6
show ip bgp neighbor
Example:
switch(config-router-neighbor-af)# show
ip bgp neighbor
Step 7
copy running-config startup-config
Example:
switch(config-router-neighbor-af)# copy
running-config startup-config
This example shows how to configure BGP conditional advertisement:
switch# configure terminal
switch(config)# router bgp 65536
switch(config-router)# neighbor 192.0.2.2 remote-as 65537
switch(config-router-neighbor)# address-family ipv4 unicast
switch(config-router-neighbor-af)# advertise-map advertise exist-map exist
switch(config-router-neighbor-af)# exit
switch(config-router-neighbor)# exit
switch(config-router)# exit
switch(config)# route-map advertise
switch(config-route-map)# match as-path pathList
switch(config-route-map)# exit
switch(config)# route-map exit
switch(config-route-map)# match ip address prefix-list plist
switch(config-route-map)# exit
switch(config)# ip prefix-list plist permit 209.165.201.0/27
Configuring Route Redistribution
You can configure BGP to accept routing information from another routing protocol and redistribute that
information through the BGP network. Optionally, you can assign a default route for redistributed routes.
Cisco Nexus 3000 Series NX-OS Unicast Routing Configuration Guide, NX-OS Release 5.0(3)U1(1)
6-30
Chapter 6
Purpose
Configures BGP to conditionally advertise routes
based on the two configured route maps:
adv-map—Specifies a route map with match
•
statements that the route must pass before BGP
passes the route to the next route map. The
adv-map is a case-sensitive, alphanumeric string
up to 63 characters.
exist-rmap—Specifies a route map with match
•
statements for a prefix list. A prefix in the BGP
table must match a prefix in the prefix list before
BGP will advertise the route. The exist-rmap is a
case-sensitive, alphanumeric string up to 63
characters.
nonexist-rmap—Specifies a route map with match
•
statements for a prefix list. A prefix in the BGP
table must not match a prefix in the prefix list
before BGP will advertise the route. The
nonexist-rmap is a case-sensitive, alphanumeric
string up to 63 characters.
(Optional) Displays information about BGP and the
configured conditional advertisement route maps.
(Optional) Saves this configuration change.
Configuring Advanced BGP