Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 137

Advertising
background image

Brocade Virtual ADX Switch and Router Guide

123

53-1003246-01

Configuring OSPF

6

NOTE

Redistribution is permitted for all routes by default, so the permit redistribute 1 all command in the
example above is shown for clarity but is not required.

You also have the option of specifying import of just OSPF or static routes, as well as specifying that
only routes for a specific network or with a specific cost (metric) be imported, as shown in the
command syntax below.

Syntax: deny | permit redistribute filter-num all | connected | static

[address ip-addr ip-mask [match-metric value [set-metric value]]]

Example

To redistribute static routes into OSPF, enter the following commands on the Layer 3 Switch acting
as an ASBR.

Virtual ADXASBR(config)# router ospf

Virtual ADXASBR(config-ospf-router)# permit redistribute 1 all

Virtual ADXASBR(config-ospf-router)# write memory

Syntax: deny | permit redistribute filter-num all | connected | static

address ip-addr ip-mask
[match-metric value | set-metric value]

NOTE

Redistribution is permitted for all routes by default, so the permit redistribute 1 all command in the
example above is shown for clarity but is not required.

You also have the option of specifying import of just OSPF or static routes, as well as specifying that
only routes for a specific network or with a specific cost (metric) be imported, as shown in the
command syntax below.

Syntax: [no] redistribution connected |static [route-map map-name]

For example, to enable redistribution static IP routes into OSPF, enter the following commands.

Virtual ADX(config)# router ospf

Virtual ADX(config-ospf-router)# redistribution static

Virtual ADX(config-ospf-router)# write memory

NOTE

The redistribution command does not perform the same function as the permit redistribute and
deny redistribute commands. The redistribute commands allow you to control redistribution of
routes by filtering on the IP address and network mask of a route. The redistribution commands
enable redistribution for routes of specific types (static, directly connected, and so on). Configure all
your redistribution filters before enabling redistribution.

NOTE

Do not enable redistribution until you have configured the redistribution filters. If you enable
redistribution before you configure the redistribution filters, the filters will not take affect and all
routes will be distributed.

Advertising