redistribute
This command imports external routing information from other routing domains (tha t
is, protocols or static routes) into the autonomous system. Use the
no
form to
disable this feature.
Syntax
[
no
]
redistribute
(
ospf
|
static
} [
metric
<metric-value>]
ospf - External routes will be imported fro m the O pen S hortest Pat h F irst
(OSPF) protocol into this routing domain.
static - Static routes will be imported into this routi ng doma in.
metric-value - Metric value assigned t o all e xternal route s fo r the s pec ified
protocol. (Range: 1-15)
Command Mode
Router Configuration
Default Setting
redistribution - none:
metric-value - set by the default-metric command (see page 42-7)
Command Usage
When a metric value has no t been configured by the redistribute command,
the
default-metric
command (page 42-7) sets the metric value to be used for
all imported external routes.
A route metric must be used to resolve the pro blem of r edistr ibu ting extern al
routes with incompatible metrics.
It is advisable to use a low metric when redistributing routes from another
protocol into RIP. Using a high metric limits the usefulness of external routes
redistributed into RIP. For example, if a metric of 10 is defined for redistributed
routes, these routes can only be advertised to router s up to 5 hops away , at
which point the metric exceeds the max imum hop count of 15. By defining a
low metric of 1, traffic can follow a imported rou te the max imum n umber of
hops allowed within a RIP domain. However, using a l ow met ric ca n in cr ea se
the possibility of routing loops For example, this can occur if there are multiple
redistribution points and the router learns about th e same exte rnal networ k
with a better metric from a redistribution point other than that derived from the
original source.
Example
This example redistributes routes learned from OSPF and sets the metric for all
external routes imported from OSPF to a valu e of 3.
Console(config-router)#redistribute ospf metric 3
Console(config-router)#
42-11
Routing Information Protocol (RIP)
42