83
Step Command
Remarks
3.
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
] *
Not configured by default
4.
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
Configuring OSPF to redistribute a default route
Using the
import-route
command cannot redistribute a default external route. To do so, you must use the
default-route-advertise
command.
To configure OSPF to redistribute a default external route:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter OSPF view.
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
vpn-instance-name
] *
N/A
3.
Redistribute a default
route.
default-route-advertise
[ [ [
always
|
permit-calculate-other
] |
cost
cost
|
route-policy
route-policy-name
|
type
type
]
* |
summary cost
cost
]
Not redistributed by default.
The
default-route-advertise
summary cost
command is
applicable only to VPN, and
the default route is
redistributed in a Type-3 LSA.
The PE router advertises the
default route to the CE router.
Configuring the default parameters for redistributed routes
You can configure default parameters, such as the cost, upper limit, tag and type for redistributed routes.
Tags indicate information related to protocols. For example, when redistributing BGP routes, OSPF uses
tags to identify AS IDs.
To configure the default parameters for redistributed routes:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter OSPF view.
ospf
[
process-id
|
router-id
router-id
|
vpn-instance
vpn-instance-name
] *
N/A