F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101

219
Configuring OSPF route redistribution
Only active routes can be redistributed. Use the display ip routing-table protocol command to view route
state information.
1. Configuring OSPF to redistribute routes from other routing protocols
On a router running OSPF and other routing protocols, you can configure OSPF to redistribute routes
from other protocols such as RIP, BGP, static, and direct, and advertise them in Type-5 LSAs or Type-7
LSAs. In addition, you can filter redistributed routes so that OSPF advertises only permitted routes.
To configure OSPF route redistribution:
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 OSPF to
redistribute routes from a
different protocol.
import-route protocol [ process-id |
all-processes | allow-ibgp ] [ cost cost | type
type | tag tag | route-policy
route-policy-name ] *
By default, OSPF does not
redistribute routes.
4. Configure OSPF to filter
redistributed routes before
advertisement.
filter-policy { acl-number | ip-prefix
ip-prefix-name } export [ protocol
[ process-id ] ]
Optional.
By default, OSPF does not
filter redistributed routes
before advertisement.
2. 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.
3. Configuring the default parameters for redistributed routes
Perform this task to configure default parameters for redistributed routes, including cost, tag, and type.
Tags indicate information about protocols. For example, when redistributing BGP routes, OSPF uses tags
to identify AS IDs.
To configure the default parameters for redistributed routes: