DGS-6604
m
redistribute (OSPF)
CLI Reference Guide
518
redistribute (OSPF)
Use
redistribute
to redistribute routes from other routing domain into OSPF
routing domain. Use the no form of the command to disable redistribution.
redistribute
PROTOCOL
[metric
METRIC
-
VALUE
] [metric-type
TYPE
-
VALUE
]
no redistribute
PROTOCOL
Default
Disabled
metric-type
TYPE-VALUE:
Type 2 external route
Command Mode
Router configuration
Usage Guideline
A router receiving a link-state protocol with an internal metric will consider the
cost of the route from itself to the redistributing router plus the advertised cost to
reach the destination. An external metric only considers the advertised metric to
reach the destination.
Whenever the
redistribute
or the
default-information originate
configuration
commands are used to redistribute routes into an OSPF routing domain, the
router automatically becomes an ASBR. However, an ASBR does not, by default,
generate a default route into the OSPF routing domain.
BGP, RIP, connected, static routes can be redistributed to OSPF.
The redistribute metric is determined by following rules in order:
1. If the redistribute metric is specified, use the user specified value.
2. If the redistribute route is default route, the metric will be 1.
3. If "default metric" is configured, use the specified value.
Syntax Description
PROTOCOL
The source protocol from which routes are being redistributed from. It can be
one of the following keywords: bgp, connected, static, or rip. The static keyword
is used to redistribute IP static routes. The connected keyword refers to routes
that are established automatically by virtue of having enabled IP on an interface.
For routing protocols such as Open Shortest Path First (OSPF), these routes will
be redistributed as external to the autonomous system.
metric
METRIC-
VALUE
(Optional) If a metric is not specified, OSPF puts a default value of 20 as
redistributing routes from all other protocols except Border Gateway Protocol
(BGP) routes, which get a metric of 1. However when redistributing from one
OSPF process to another OSPF process, the metric will be carried through.
metric-type
TYPE
-
VALUE
(Optional) For OSPF, the external link type associated with the route advertised
into the OSPF routing domain. It can be one of two values: 1-Type 1 external
route 2-Type 2 external route. If a metric-type is not specified, the Switch adopts
a Type 2 external route. This is only for OSPF.