13.2.7 Configuring advertised route filters
- Points to note
-
The example below shows how to set the priority of advertised BGP4 routes by using route-map and specifying the conditions and settings.
Command examples
-
(config)# ip prefix-list MY_NET_1 seq 10 permit 192.169.10.0/24
(config)# ip prefix-list MY_NET_2 seq 10 permit 192.169.20.0/24
(config)# route-map SET_EXT_OUT permit 10
(config-route-map)# match ip address prefix-list MY_NET_1
(config-route-map)# set metric 120
(config-route-map)# exit
(config)# route-map SET_EXT_OUT permit 20
(config-route-map)# match ip address prefix-list MY_NET_2
(config-route-map)# exit
Sets 120 in the MED attribute when the destination network is 192.169.10.0/24.
Allows route advertisements to be sent also to destination network 192.169.20.0/24.