Redistribute Routes
You can add routes from other routing instances or protocols to the OSPF process. With the
command, you can include router information protocol (RIP), static, or directly connected routes in the
OSPF process.
To redistribute routes, use the following command in CONFIGURATION- ROUTER-OSPF mode.
Command Syntax
redistribute {bgp | connected | rip | ospf
<process-id> | static} [metric
metric-value | metric-type type-value]
[route-map map-name] [tag tag-value]
To view the current OSPF configuration, use the
command in ROUTER OSPF mode.
show config
Figure 20-17. show config Command Example
FTOS(conf-router_ospf)#show config
!
router ospf 34
network 10.1.2.32 0.0.0.255 area 2.2.2.2
network 10.1.3.24 0.0.0.255 area 3.3.3.3
distribute-list dilling in
FTOS(conf-router_ospf)#
Command Mode
CONFIG-ROUTER-OSPF-id
show running-config ospf
Usage
Specify which routes will be redistributed into
OSPF process. Configure the following
required and optional parameters:
bgp, connected ,
•
ospf <process-id>
static : enter one of the keywords to
redistribute those routes.
metric
•
metric-value
range: 0 to
4294967295.
metric-type
•
metric-type
external route type 1 or 2 for OSPF
external route type 2.
•
route-map
map-name
configured route map.
tag
•
tag-value
range: 0 to 4294967295.
command in EXEC mode or the
Open Shortest Path First (OSPFv2) | 379
redistribute
, or
: 1 for OSPF
: enter a name of a