ospf-metricThe metric or cost to assign to the redistributed
routes. If this option is not used, a default metric of 1 will be used for
redistributed BGP routes and a default metric of 20 will be used for all other
protocols. The range of values is 016,777,214.

metric-typeRoutes are redistributed into OSPF as either type
1 or type 2 routes. The default is type 2.

tag-valueA 32-bit value that is attached to the
redistributed routes. The route tag is not used by OSPF but can be referenced in
a route map for making policy decisions. One possible use is to base the
decision to redistribute a route based on the route tag(see Section 14-6). The
default tag value is 0. The range of values for the tag is
04,294,967,295.

Purpose: To redistribute routes learned from another routing process
into OSPF. Redistributed routes become OSPF external type 2 routes by default.
The default cost or metric of a redistributed route is 1 for BGP and 20 for all
other protocols. This command will redistribute classful routes into OSPF only
if the subnets keyword is not used. There are three general types of
classful routes:

In Figure 14-1, Router B is receiving six routes from Router C via EIGRP.
Three of the EIGRP routes are classful (5.0.0.0/8, 145.5.0.0/16, 205.5.5.0/24)
and three are classless (6.0.0.0/12, 146.6.0.0/20, 206.6.6.0/28). Before
redistributing the EIGRP routes into OSPF on Router B, configure the routers as
shown in the listing that follows.

Only the EIGRP classful routes were redistributed into OSPF. As you can see
in the routing table on Router A, EIGRP routes were redistributed as external
type 2 with a cost or metric of 20. This information can also be found by
inspecting the OSPF database on Router B.