Implementing OSPF on Cisco IOS XR Software
How to Implement OSPF on Cisco IOS XR Software
RC-217
Cisco IOS XR Routing Configuration Guide
OL-14356-01
Step 4
redistribute protocol [process-id] {level-1 |
level-1-2 | level-2} [metric metric-value]
[metric-type type-value] [match {internal |
external [1 | 2} | nssa-external [1 | 2}] [tag
tag-value] [route-map map-tag | policy
policy-tag]
Example:
RP/0/RP0/CPU0:router(config-ospf)# redistribute
bgp 1 level-1
or
RP/0/RP0/CPU0:router(config-router)#
redistribute bgp 1 level-1-2 metric-type 1
Redistributes OSPF routes from one routing domain to
another routing domain.
or
Redistributes OSPFv3 routes from one routing domain to
another routing domain.
• This command causes the router to become an ASBR
by definition.
• OSPF tags all routes learned through redistribution as
external.
• The protocol and its process ID, if it has one, indicate
the protocol being redistributed into OSPF.
• The metric is the cost you assign to the external route.
The default is 20 for all protocols except BGP, whose
default metric is 1.
• The OSPF example redistributes BGP autonomous
system 1, Level 1 routes into OSPF as Type 2 external
routes.
• The OSPFv3 example redistributes BGP autonomous
system 1, Level 1 and 2 routes into OSPF. The external
link type associated with the default route advertised
into the OSPFv3 routing domain is the Type 1 external
route.
Note RPL is not supported for OSPFv3.
Command or Action Purpose