R3303-HP HSR6800 Routers Layer 3 - IP Routing Configuration Guide

77
Configuring OSPF to redistribute a default route
The import-route command cannot redistribute a default external route. Perform this task to redistribute a
default external route.
To configure OSPF to redistribute a default external route:
Ste
p
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 VPNs.
The PE router advertises the
default route in a Type-3
LSA to the CE router.
Configuring the default parameters for redistributed routes
Perform this task to configure default parameters cost, 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:
Ste
p
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. Configure the default
parameters for
redistributed routes (cost,
upper limit, tag, and
type).
default { cost cost | limit limit | tag tag | type
type } *
Optional.
The default cost is 1, the
default maximum number
of routes redistributed per
time is 1000, the default
tag is 1, and default type
of redistributed routes is
Type-2.
Advertising a host route