Users Guide

Layer 3 Routing Commands 1843
Syntax
redistribute ospf [metric integer] [match [internal] [external 1] [external 2]
[nssa-external 1] [nssa-external 2]]
no redistribute [ospf | bgp | static | connected]
redistribute {bgp | connected | static} [metric integer]
metric integer — Specifies the metric to use when redistributing the route.
Range: 0-15.
match internal — Adds internal matches to any match types presently
being redistributed.
match external 1 — Adds routes imported into OSPF as Type-1 external
routes into any match types presently being redistributed.
match external 2 — Adds routes imported into OSPF as Type-2 external
routes into any match types presently being redistributed.
match nssa-external 1 — Adds routes imported into OSPF as NSSA Type-
1 external routes into any match types presently being redistributed.
match nssa-external 2 — Adds routes imported into OSPF as NSSA Type-
2 external routes into any match types presently being redistributed.
static — Redistributes static routes.
bgp — Redistributes BGP originated routes.
connected — Redistributes directly-connected routes.
Default Configuration
metric integer — not configured
match — internal
Command Mode
Router RIP Configuration mode.
User Guidelines
When redistributing a route metric, the receiving protocol must understand
the metric. The OSPF metric is a cost value equal to 10
8
/ link bandwidth in
bits/sec. For example, the OSPF cost of GigabitEthernet is 1 = 10
8
/10
8
= 1.
The RIP metric is a hop count with a maximum value of 15.