
summary-prefix address mask
[
not-advertise
] [
tag tag
]
•
•
summary-prefix ipv6-prefix / prefix-length
[
not-advertise
] [
tag tag
]
6.
commit
DETAILED STEPS
Purpose
Command or Action
configure
Step 1
Enables OSPF routing for the specified routing process and
places the router in router configuration mode.
Do one of the following:
Step 2
•
router ospf process-name
or
•
router ospfv3 process-name
Enables OSPFv3 routing for the specified routing process
and places the router in router ospfv3 configuration mode.
Example:
RP/0/RP0/CPU0:router(config)# router ospf 1
The
process-name
argument is any
alphanumeric string no longer than 40 characters.
Note
or
RP/0/RP0/CPU0:router(config)# router ospfv3 1
Configures a router ID for the OSPF process.
router-id
{
router-id
}
Step 3
Example:
We recommend using a stable IPv4 address as
the router ID.
Note
RRP/0/RP0/CPU0:router(config-ospf)# router-id
192.168.4.3
Redistributes OSPF routes from one routing domain to
another routing domain.
redistribute protocol
[
process-id
] {
level-1
|
level-1-2
|
level-2
} [
metric metric-value
] [
metric-type
Step 4
type-value
] [
match
{
external
[
1
|
2
]} [
tag tag-value
] [
route-policy policy-name
]
or
Redistributes OSPFv3 routes from one routing domain to
another routing domain.
Example:
RP/0/RP0/CPU0:router(config-ospf)# redistribute
bgp 100
• This command causes the router to become an ASBR
by definition.
or
• OSPF tags all routes learned through redistribution as
external.
RP/0/RP0/CPU0:router(config-router)#redistribute
bgp 110
• 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
Routing Configuration Guide for Cisco NCS 6000 Series Routers, IOS XR Release 6.4.x
298
Implementing OSPF
Redistribute Routes into OSPF