![Cisco Nexus 3548 series Command Reference Manual Download Page 36](http://html.mh-extra.com/html/cisco/nexus-3548-series/nexus-3548-series_command-reference-manual_2609162036.webp)
16
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
advertise-map (BGP)
advertise-map (BGP)
To configure Border Gateway Protocol (BGP) conditional advertisement, use the
advertise-map
command. To remove BGP conditional advertisement, use the
no
form of this command.
advertise-map
adv-map
{
exist-map
exist-rmap
|
non-exist-map
nonexist-rmap
}
Syntax Description
Command Default
None
Command Modes
BGP neighbor address-family command mode
Command History
Usage Guidelines
Use the
advertise-map
command to conditionally advertise selected routes. The routes or prefixes that
BGP conditionally advertises are defined in two route maps, the
adv-map
and an
exist-map
or
nonexist-map
. The e
xist-map
or
nonexist-map
specifies the prefix that the BGP tracks. The
adv-map
specifies the prefix that BGP advertises to the specified neighbor when the condition is met.
This command requires the LAN Enterprise Services license.
Examples
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
adv-map
Route map with
match
statements that the route must pass before BGP passes
theroute to the next route map. The adv-map is a case-sensitive, alphanumeric
string up to 63 characters.
exist-map
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.
non-exist-map
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.
Release
Modification
5.0(3)A1(1)
This command was introduced.