- 57 -
5.4.4 Redistribute Routing Information
The router can redistribute routing information from a source route entry into the RIP tables. For example, you can
instruct the router to re-advertise connected, kernel, or static routes as well as routing protocol-derived routes. This
capability applies to all the IP-based routing protocols.
To redistribute routing information from a source route entry into the RIP table, perform the following task in router
configuration mode.
Command Purpose
Redistribute
{
connected
|
kernel
|
static
|
ospf
|
bgp | rip
}
metric
value
|
route-map
map-tag
]
Advertise routing information into the RIP tables.
You may also conditionally control the redistribution of routes between the two domains using
route-map
command
from global configuration mode.
Use route maps for finer control over how routes are advertised throughout the network. Use the
route-map
command in conjunction with the match and set commands to define the conditions for redistributing routes from one
routing protocol to another and within the same routing protocol.
Command Purpose
route-map
map-tag
{
deny
|
permit
}
sequence-number
Create a route-map.
You can define multiple route maps with the same map-name. Maps with the same map-name are differentiated by a
sequence-number. If a route passing through a route map controlling redistribution does not meet any of the match
criteria, the route is passed through the next instance of the route map with the same map-name and next higher
sequence number. Route processing continues until a match is made or the route is processed by all instances of the
route map with no match. If the route is processed by all instances of a route map with no match, the route is not
accepted (inbound route maps) or forwarded (outbound route maps).
Router(config)#
route-map map-tag permit 10
Router(config-route-map)#
?
end End current mode and change to enable mode
exit Exit current mode and down to previous mode
help Description of the interactive help system
match Match values from routing table
no Negate a command or set its defaults
on-match Exit policy on matches
quit Exit current mode and down to previous mode
route-map Create route-map or enter route-map command mode
set Set values in destination routing protocol
Router(config-route-map)#
One or more
match
and
set
commands typically follow a
route-map
command. If there are no
match
commands,
then everything matches. If there are no
set
commands, nothing is done. Therefore, you need at least one match or
set command. You can enter match commands into a route map in any order. If the match criteria are met, and
permit is on, then the route is redistributed or controlled as defined by the set commands and route-map processing
is complete. If the match criteria are met, and deny is on, then the route is not redistributed or controlled and route-
map processing is complete.