3Com Switch 8800 Advanced Software V5 Configuration Guide

330 CHAPTER 30: OSPF CONFIGURATION
Configuring OSPF Route
Redistribution
To configure OSPF route redistribution, use the following commands:
n
Using the import-route command cannot redistribute a default external
route. To do so, you need to use the default-route-advertise command.
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 will advertise
the default route to the CE.
By filtering redistributed routes, OSPF translates only routes, which are not
filtered out, into Type5 LSAs or Type7 LSAs for advertisement.
You can configure default values of parameters for redistributed routes, such
as the cost, upper limit, tag and type of external routes. The tag is used to
indicate information related to protocol, for example, when redistributing BGP
routes, OSPF uses the tag to differentiate AS IDs.
Configuring OSPF
Network Optimization
You can optimize your OSPF network in the following ways:
Configure the priority of
OSPF routes
preference [ ase ] [
route-policy
route-policy-name ] value
Optional
The priority of OSPF internal
routes defaults to 10
The priority of OSPF external
routes defaults to 150
To do... Use the command... Remarks
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
other protocols
import-route protocol [
process-id | 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
Redistribute a default route default-route-advertise [
always | cost cost | type type
| route-policy
route-policy-name ]*
default-route-advertise
summary cost cost
Optional
Not redistributed by default
Configure the default values
of parameters for
redistributed routes (cost,
route number, tag and type)
default { cost cost | limit
limit | tag tag | type type } *
Optional
By default, the default cost is
1, default upper limit of routes
redistributed per time is 1000,
default tag is 1 and default
type of redistributed routes is
Type2.