Enable route redistribution, Example using a route map – Brocade TurboIron 24X Series Configuration Guide User Manual

Page 669

Advertising
background image

Brocade TurboIron 24X Series Configuration Guide

635

53-1003053-01

Configuring OSPF

TurboIron(config)#router ospf

TurboIron(config-ospf-router)#default-metric 4

Syntax: default-metric <value>

The <value> can be from 1 – 16,777,215. The default is 10.

Enable route redistribution

To enable route redistribution, use one of the following methods.

NOTE

Do not enable redistribution until you have configured the redistribution filters. Otherwise, you might
accidentally overload the network with routes you did not intend to redistribute.

To enable redistribution of RIP and static IP routes into OSPF, enter the following commands.

Example using a route map

To configure a route map and use it for redistribution of routes into OSPF, enter commands such as
the following.

The commands in this example configure some static IP routes, then configure a route map and
use the route map for redistributing static IP routes into OSPF.

The ip route commands configure the static IP routes. The route-map command begins
configuration of a route map called “abc”. The number indicates the route map entry (called the
“instance”) you are configuring. A route map can contain multiple entries. The software compares
packets to the route map entries in ascending numerical order and stops the comparison once a
match is found.

The match command in the route map matches on routes that have 5 for their metric value (cost).
The set command changes the metric in routes that match the route map to 8.

The redistribute static command enables redistribution of static IP routes into OSPF, and uses
route map “abc“ to control the routes that are redistributed. In this example, the route map allows
a static IP route to be redistributed into OSPF only if the route has a metric of 5, and changes the
metric to 8 before placing the route into the OSPF route table.

TurboIron(config)#router ospf

TurboIron(config-ospf-router)#redistribution rip

TurboIron(config-ospf-router)#redistribution static

TurboIron(config-ospf-router)#write memory

TurboIron(config)#ip route 10.1.1.0 255.255.0.0 10.95.7.30

TurboIron(config)#ip route 10.1.2.0 255.255.0.0 10.95.7.30

TurboIron(config)#ip route 10.1.3.0 255.255.0.0 10.95.7.30

TurboIron(config)#ip route 10.4.1.0 255.255.0.0 10.95.7.30

TurboIron(config)#ip route 10.4.2.0 255.255.0.0 10.95.7.30

TurboIron(config)#ip route 10.4.3.0 255.255.0.0 10.95.7.30

TurboIron(config)#ip route 10.4.4.0 255.255.0.0 10.95.7.30 5

TurboIron(config)#route-map abc permit 1

TurboIron(config-routemap abc)#match metric 5

TurboIron(config-routemap abc)#set metric 8

TurboIron(config-routemap abc)#router ospf

TurboIron(config-ospf-router)#redistribute static route-map abc

Advertising