Chapter 29
  |  IP Routing Commands
Open Shortest Path First (OSPFv3)
–  889  –
Related Commands
redistribute (889)
redistribute This command redistributes external routing information from other routing 
protocols and static routes into an autonomous system. Use the no form to disable 
this feature or to restore the default settings.
Syntax 
redistribute {connected | rip | static} [metric metric-value] 
[metric-type type-value] 
no redistribute {connected | rip | staticstatic} [metric] [metric-type] 
connected - Imports all currently connected entries.
static - IPv6 static routes will be imported into this Autonomous System.
metric-value - Metric assigned to all external routes for the specified 
protocol. (Range: 0-16777214: Default: 20)
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
metric-value - 20
type-metric - 2
Command Usage 
◆ This command is used to import routes learned from other routing protocols 
into the OSPF domain, and to generate AS-external-LSAs.
◆ When you redistribute external routes into an OSPF autonomous system (AS), 
the router automatically becomes an autonomous system boundary router 
(ASBR). 
◆ Metric type specifies the way to advertise routes to destinations outside the AS 
through External LSAs. When a Type 1 LSA is received by a router, it adds the 
internal cost 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. When a Type 2 LSA is 
received by a router, it only uses the external route metric to determine route 
cost.