Example using a route map – Brocade Communications Systems Layer 3 Routing Configuration ICX 6650 User Manual

Page 219

Advertising
background image

Brocade ICX 6650 Layer 3 Routing Configuration Guide

201

53-1002603-01

Configuring OSPF

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 redistribution 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.

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

The bgp | connected | rip | static parameter specifies the route source.

The route-map map-name parameter specifies the route map name. The following match
parameters are valid for OSPF redistribution:

match ip address | next-hop ACL-num

match metric num

match tag tag-value

The following set parameters are valid for OSPF redistribution:

set ip next hop ip-addr

set metric [+ | - ]num | none

set metric-type type-1 | type-2

set tag tag-value

NOTE

You must configure the route map before you configure a redistribution filter that uses the route
map.

Brocade(config)#ip route 10.1.0.0 255.255.0.0 192.168.7.30

Brocade(config)#ip route 10.2.0.0 255.255.0.0 192.168.7.30

Brocade(config)#ip route 10.3.0.0 255.255.0.0 192.168.7.30

Brocade(config)#ip route 10.4.0.0 255.255.0.0 192.168.6.30

Brocade(config)#ip route 10.5.0.0 255.255.0.0 192.168.6.30

Brocade(config)#ip route 10.6.0.0 255.255.0.0 192.168.6.30

Brocade(config)#ip route 10.7.0.0 255.255.0.0 192.168.6.30 5

Brocade(config)#route-map abc permit 1

Brocade(config-routemap abc)#match metric 5

Brocade(config-routemap abc)#set metric 8

Brocade(config-routemap abc)#router ospf

Brocade(config-ospf-router)#redistribution static route-map abc

Advertising