Configuring ospf route redistribution, Configuring ospf to redistribute a default route – H3C Technologies H3C SR8800 User Manual

Page 106

Advertising
background image

90

Step Command

Remarks

2.

Enter OSPF view.

ospf [ process-id | router-id router-id
| vpn-instance vpn-instance-name ] * N/A

3.

Configure a

preference for OSPF.

preference [ ase ] [ route-policy
route-policy-name ] value

Optional.
By default, the preference of OSPF

internal routes is 10, and the preference
of OSPF external routes is 150.

Configuring OSPF route redistribution

Configuring OSPF to redistribute routes from another routing protocol

On a router running OSPF and other routing protocols, you can configure OSPF to redistribute routes
from other protocols such as RIP, IS-IS, BGP, static, and direct routes, and advertise them in Type-5 LSAs

or Type-7 LSAs.
By filtering redistributed routes, OSPF translates only permitted routes into Type-5 LSAs or Type-7 LSAs for

advertisement.
To configure OSPF route redistribution:

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.

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.

NOTE:

Using the import-route command cannot redistribute a default external route. To do so, you must use the
default-route-advertise command.

You can configure default parameters such as the cost, upper limit, tag, and type for redistributed routes.
Tags are used to indicate information related to protocols. For example, when redistributing BGP routes,
OSPF uses tags as AS IDs.

Only active routes can be redistributed. You can use the display ip routing-table protocol command to
view route state information.

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:

Advertising