1-31
Configuring OSPF Route Redistribution
Configure route redistribution into OSPF
If the router runs OSPF and other routing protocols, you can configure OSPF to redistribute RIP, IS-IS,
BGP, static, or direct routes and advertise these routes in Type-5 LSAs or Type-7 LSAs.
By filtering redistributed routes, OSPF translates only routes not filtered out into Type-5 LSAs or Type-7
LSAs for advertisement.
Follow these steps to configure OSPF route redistribution:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter OSPF view
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
instance-name
] *
—
Configure OSPF to
redistribute routes from
another protocol
import-route
protocol
[
process-id |
all-processes
|
allow-ibgp
] [
cost
cost
|
type
type
|
tag tag
|
route-policy
route-policy-name
] *
Required
Not configured by
default.
Configure OSPF to filter
redistributed routes before
advertisement
filter-policy
{
acl-number
|
ip-prefix
ip-prefix-name
}
export
[
protocol
[
process-id
] ]
Optional
Not configured by
default.
Only active routes can be redistributed. You can use the
display ip routing-table
protocol
command
to display route state information.
Configure OSPF to redistribute a default route
Using the
import-route
command cannot redistribute a default external route. To do so, you need to
use the
default-route-advertise
command.
Follow these steps to configure OSPF to redistribute a default external route:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter OSPF view
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
instance-name
] *
—
default-route-advertise
[
always
|
cost
cost
|
type
type
|
route-policy
route-policy-name
] *
Redistribute a default route
default-route-advertise
summary cost
cost
Optional
Not redistributed
by default.