![background image](http://html1.mh-extra.com/html/foundry-networks/fastiron-edge-switch-x424/fastiron-edge-switch-x424_manual_2324269552.webp)
Foundry Configuration Guide for the FESX, FSX, and FWSX
20 - 28
© Foundry Networks, Inc.
December 2005
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.
The following command shows the result of the redistribution filter. Since only one of the static IP routes
configured above matches the route map, only one route is redistributed. Notice that the route’s metric is 5 before
redistribution but is 8 after redistribution.
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
FESX424 Router(config)# ip route 1.1.0.0 255.255.0.0 207.95.7.30
FESX424 Router(config)# ip route 1.2.0.0 255.255.0.0 207.95.7.30
FESX424 Router(config)# ip route 1.3.0.0 255.255.0.0 207.95.7.30
FESX424 Router(config)# ip route 4.1.0.0 255.255.0.0 207.95.6.30
FESX424 Router(config)# ip route 4.2.0.0 255.255.0.0 207.95.6.30
FESX424 Router(config)# ip route 4.3.0.0 255.255.0.0 207.95.6.30
FESX424 Router(config)# ip route 4.4.0.0 255.255.0.0 207.95.6.30 5
FESX424 Router(config)# route-map abc permit 1
FESX424 Router(config-routemap abc)# match metric 5
FESX424 Router(config-routemap abc)# set metric 8
FESX424 Router(config-routemap abc)# router ospf
FESX424 Router(config-ospf-router)# redistribute static route-map abc
FESX424 Router(config-ospf-router)# show ip ospf database external extensive
Index Aging LS ID Router Netmask Metric Flag
1 2 4.4.0.0 10.10.10.60 ffff0000 80000008 0000
Summary of Contents for FastIron Edge Switch X424
Page 36: ...Foundry Configuration Guide for the FESX FSX and FWSX 2 12 Foundry Networks Inc December 2005...
Page 56: ...Foundry Configuration Guide for the FESX FSX and FWSX 3 20 Foundry Networks Inc December 2005...
Page 70: ...Foundry Configuration Guide for the FESX FSX and FWSX 4 14 Foundry Networks Inc December 2005...
Page 198: ...Foundry Configuration Guide for the FESX FSX and FWSX 8 38 Foundry Networks Inc December 2005...
Page 316: ...Foundry Configuration Guide for the FESX FSX and FWSX 12 26 Foundry Networks Inc December 2005...
Page 350: ...Foundry Configuration Guide for the FESX FSX and FWSX 15 12 Foundry Networks Inc December 2005...
Page 458: ...Foundry Configuration Guide for the FESX FSX and FWSX 18 18 Foundry Networks Inc December 2005...
Page 712: ...Foundry Configuration Guide for the FESX FSX and FWSX 22 32 Foundry Networks Inc December 2005...
Page 760: ...Foundry Configuration Guide for the FESX FSX and FWSX A 34 Foundry Networks Inc December 2005...
Page 796: ...Foundry Configuration Guide for the FESX FSX and FWSX C 18 Foundry Networks Inc December 2005...
Page 820: ...Foundry Configuration Guide for the FESX FSX and FWSX E 10 Foundry Networks Inc December 2005...