Chapter 50
| IP Routing Commands
Policy-based Routing for BGP
– 1161 –
Command Usage
Note that there may be situations in which the next hop and source router address
of the route are not the same.
Example
Console(config)#route-map RD permit 6
Console(config-route-map)#match ip route-source rd-sources
Console(config-route-map)#set weight 30
Console(config-route-map)#
match metric This command sets the metric value to match in routing messages. Use the no form
to remove this entry from a route map.
Syntax
match metric metric-value
no match metric
metric-value – The metric value in the routing messages.
(Range: 0-4294967295)
Command Mode
Route Map
Example
Console(config)#route-map RD permit 7
Console(config-route-map)#match metric 60
Console(config-route-map)#set weight 30
Console(config-route-map)#
match origin This command sets the originating protocol to match in routing messages. Use the
no form to remove this entry from a route map.
Syntax
match origin {egp | igp | incomplete}
no match origin
egp – Routes learned from exterior gateway protocols.
igp – Routes learned from internal gateway protocols.
incomplete – Routes of uncertain origin.
Command Mode
Route Map