Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring Advanced Routing Information (Rev. 03)
Open Shortest Path First (OSPF)
© 2008 Foundry Networks, Inc
Page 15 of 68
Redistributing Routing Information between Routing Domains
The
redistribute
command, in Router OSPF Configuration mode, redistributes OSPF routes from
one routing domain into another routing domain. The
no
form of this command disables
redistribution.
Besides running multiple routing protocols simultaneously, the router can redistribute information
from one routing protocol to another. For example, the user can instruct the router to re-advertise
OSPF-derived routes using the RIP protocol, or to re-advertise static routes using the RIP protocol.
The user can also control the redistribution of routes between routing domains by defining a
method known as
route maps
between the two domains. This method requires the user to apply a
route-map
command followed by
match
and
set
commands described in chapter“
Configuring
Routing Information
”. The user can also use for that purpose the
default-metric
and the
distribute-list
commands described in this chapter. Redistributed routing information should
always be filtered by the
distribute-list
command.
Command Syntax
device-name
(config-router)#
redistribute
{
connected
|
kernel
|
rip
|
static
} [
route-map
MAP-NAME
] [
metric
<
metric
>] [
metric-type
{
1
|
2
}]
device-name
(config-router)#
no redistribute
{
connected
|
kernel
|
rip
|
static
}
Argument Description
connected
Interface routes of the router.
kernel
Kernel originated route entries.
rip
Routes known by RIP protocol.
static
Static routes.
metric
<
metric
>
(Optional). This metric is used for the redistributed routes. If a value is
not specified for this option, and no value is specified using the default-
metric command, the default metric value is 0.
metric-type 1
or
2
(Optional). The external link type associated with the default route
advertised into the OSPF routing domain. It can be one of two values:
Type 1 external route
Type 2 external route.
route-map MAP-
NAME
(Optional). OSPF should apply route-map to filter the redistributed
routes. If not specified, all routes are redistributed.
Example 1
To cause RIP routes to be redistributed into OSPF routers:
device-name
(config)#
router ospf
device-name
(config-router)#
redistribute rip
Example 2
The following example redistributes RIP routes with a hop count equal to 1 into OSPF. These
routes will be redistributed into OSPF as external link state advertisements with a metric of 5,
metric type of Type 1.
device-name
(config)#
route-map rip2ospf permit 1