Software Version 2.8.1

91

Redistributing External Routes

OSPF static route redistribution has been enhanced to support additional route sources. OSPF can now import and redistribute BGP, RIP, non-OSPF interface, and statically configured routes. It can also optionally assign any of the following settings to all routes it imports:

a route metric

the External metric type

a tag—a number to label the route

Alternatively, you can assign a route map to select particular routes and set their route parameters. The route map can also filter out a subset of routes, so you do not have to import all routes.

The import settings also allow you to select whether to redistribute subnets (classless network routes), or only classfull network routes.

To import and redistribute external routes into OSPF, create a route redistribution definition for the source routing protocol, using the command:

add ospf redistribute protocol={bgpinterfaceripstatic}

[other-options...]

To delete a route redistribution definition and stop importing routes, use the command:

delete ospf redistribute protocol={bgpinterfaceripstatic}

To change a route redistribution definition, use the command:

set ospf redistribute protocol={bgpinterfaceripstatic}

[other-options]

Interaction with global OSPF parameters

To display the currently configured route redistribution definitions, use the command:

show ospf redistribute

You can still use the asexternal, bgpfilter, bgpimport, bgplimit, rip, and staticexport parameters of the set ospf command to configure OSPF to import BGP, RIP and static routes. However, we recommend that you use route redistribution definitions to import and redistribute routes into OSPF, as they provides more control over how the routes are imported.

For compatibility, the asexternal, bgpimport, rip, and staticexport parameters are synchronised with the equivalent redistribution definition. Changing the setting of these parameters will add or delete the corresponding route redistribution definition, as summarised in the following table.

When you change this

 

 

 

set ospf parameter...

From...

To...

Then OSPF...

 

 

 

 

rip

off or export

import or both

adds a RIP route redistribution definition

 

 

 

 

 

import or both

off or export

deletes the RIP route redistribution definition

 

 

 

 

bgpimport

off

on

adds a BGP route redistribution definition

 

 

 

 

 

on

off

deletes the BGP route redistribution definition

Software Version 2.8.1 C613-10477-00 REV B

Page 91
Image 91
Allied Telesis AT-8700XL, RAPIER I, X900-48FE manual Redistributing External Routes, Interaction with global Ospf parameters