advertise
To advertise additional paths for a BGP peer policy template based on the best path selection, use the advertise command in address family configuration mode at the specific VPN or VRF level.
Route advertisements that you configure with the advertise command apply to all VPNs configured on the router. The advertise command can be issued for either a VPN, or for all VPNs on a device.
advertise [ bgp ] [ connected ] [ ospf type ] [ static ]
no advertise [ bgp ] [ connected ] [ ospf type ] [ static ]
Syntax Description
bgp |
BGP Routes: Advertise all BGP routes learned by the Cisco IOS XE Catalyst SD-WAN devices to OMP. |
connected |
Connected Routes: Advertise all connected routes on the Cisco IOS XE Catalyst SD-WAN devices to OMP. The connected routes are advertised by default. To disable advertisement, use the no advertise connected command. |
ospf type |
OSPF Routes: Advertise all OSPF routes learned by the local Cisco IOS XE Catalyst SD-WAN devices to OMP. For the global OMP configuration, type can be external, to advertise routes learned from external ASs. For the VPN-specific OMP configuration, type can be external, to advertise routes learned from the local AS. For the global OMP configuration, OSPF external routes are advertised by default. |
static |
Static Routes: Advertise all static routes configured on the Cisco IOS XE Catalyst SD-WAN devices to OMP. Static routes are advertised by default. To disable advertisement, use the no advertise static command. |
Command Default
This command has no default behavior.
Command Modes
OMP configuration (config-omp)
Address family configuration (config-af)
Command History
Release | Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.6.1a |
Command qualified for use in Cisco SD-WAN Manager CLI templates. |
Example
The following example shows how to advertise to Cisco Catalyst SD-WAN Controller, the routes that a Cisco IOS XE Catalyst SD-WAN device has learned from the local network in a branch network that is running static, connected, and OSPF protocols.
config-transaction
sdwan
omp
address-family ipv4
advertise static
advertise connected
advertise ospf external
Advertise routes to OMP:
show running-config vpn 1
omp
no shutdown
graceful-restart
distance 100
timers
holdtime 15
graceful-restart-timer 120
exit
advertise static
advertise connected
advertise ospf external
!