Command Line Interface
4-266
4
redistribute
This command imports external routing information from other routing domains (i.e.,
protocols) into the autonomous system. Use the no form to disable this feature.
Syntax
[no] redistribute [rip | static] [metric metric-value] [metric-type type-value]
• rip - External routes will be imported from the Routing Information Protocol
into this Autonomous System.
• static - Static routes will be imported into this Autonomous System.
• metric-value - Metric assigned to all external routes for the specified
protocol. (Range: 1-65535: Default: 10)
• type-value
• 1 - Type 1 external route
• 2 - Type 2 external route (default) - Routers do not add internal route
metric to external route metric.
Command Mode
Router Configuration
Default Setting
redistribution - none
protocol - RIP and static
metric-value - 0
type-metric - 2
Command Usage
• This router supports redistribution for both RIP and static routes.
• When you redistribute external routes into an OSPF autonomous system
(AS), the router automatically becomes an autonomous system boundary
router (ASBR). If the redistribute command is used in conjunction with the
default-information originate command to generate a “default” external
route into the AS, the metric value specified in this command supersedes the
metric specified in the default-information originate command.
• Metric type specifies the way to advertise routes to destinations outside the
AS via External LSAs. Specify Type 1 to add the internal cost metric to the
external route metric. In other words, the cost of the route from any router
within the AS is equal to the cost associated with reaching the advertising
ASBR, plus the cost of the external route. Specify Type 2 to only advertise the
external route metric.
Example
This example redistributes routes learned from RIP as Type 1 external routes.
Related Commands
default-information originate (4-262)
Console(config-router)#redistribute rip metric-type 1
Console(config-router)#