CLI Guide

Layer 3 Routing Commands 1737
redistribute (OSPF)
Use the redistribute command in Router OSPF Configuration mode to
configure OSPF protocol to allow redistribution of routes from the specified
source protocol/routers. Use the no version of the command to disable
redistribution from the selected source or to reset options to their default
values.
Syntax
redistribute {protocol}[metric metric-value] [metric-type type-value] [tag
tag-value] [subnets]
no redistribute {protocol}[metric] [metric-type] [tag] [subnets]
protocol —One of the following:
static—Specifies that static routes are to be redistributed.
connected—Specifies that connected routes are to be redistributed.
bgp—Specifies BGP originated routes are to be redistributed.
rip—Specifies RIP originated routes are to be redistributed.
metric-value—Specifies the metric to use when redistributing the route.
(Range: 0–16777214)
type-value—One of the following:
Type 1 external route.
Type 2 external route.
tag-value—Inserts the specified tag value into redistributed routes.(Range:
0–4294967295)
subnets—Specifies whether to redistribute the routes to subnets.
Default Configuration
The default tag value is 0.
There is no default metric or route map configured.
Command Mode
Router OSPF Configuration mode