Send document comments to nexus7k-docfeedback@cisco.com.
11-32
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.x
OL-20002-02
Chapter 11      Configuring Advanced BGP
Configuring Advanced BGP
This example shows how to configure BGP conditional advertisement:
switch# config t
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. 
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
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.
Step 6
show ip bgp neighbor
Example:
switch(config-router-neighbor-af)# show 
ip bgp neighbor
(Optional) Displays information about BGP and the 
configured conditional advertisement route maps.
Step 7
copy running-config startup-config
Example:
switch(config-router-neighbor-af)# copy 
running-config startup-config
(Optional) Saves this configuration change. 
Command Purpose