Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring Routing Information (Rev. 03)
Controlling and Modifying Routing Information
© 2008 Foundry Networks, Inc.
Page 28 of 48
device-name
(config)#
route-map RMP1 permit 10
device-name
(config-route-map)#
<
match and set commands for instance 10
>
device-name
(config)#
route-map RMP1 permit 20
device-name
(config-route-map)#
< match and set commands for instance 20
>
When the route map RMP1, is applied to inbound or outbound routing updates, the lowest instance
(in the above example, instance 10) is applied first. If the match criteria of this instance are not met,
the second instance is applied, and so on, until either a match criterion is met, or all the criteria in
the last instance have failed to match.
Example 2
The following example defines a route map with the name
test
, and sets the match criteria to
access-list
acl-test
. It specifies that if a route matches the criteria defined in access-list
acl-test
, the
route metric value is set to 15.
device-name
(config)#
route-map test
device-name
(config)#
route-map test permit 10
device-name
(config-route-map)#
match ip address acl-test
device-name
(config-route-map)#
set metric 15
Configuring Route Map Match Commands
The
match
commands, in Route-map Configuration mode, may be given in any order, and the
route must pass all match commands in order to be redistributed according to the set actions
specified in the
set
commands.
Table 12
lists the application software
match
commands.
Table 12: Route Map Match
Commands
Command
Description
match ip address
Creates an entry in the configured route map based on the IP address
criteria in the named access list.
match ip next-hop
Creates an entry in the configured route map based on a next-hop
router address defined in the specified named access list.
match metric
Matches the specified metric.
match interface
Creates an entry in the configured route map to match routes’ first-hop
IP interface to the specified IP interface.
Matching IP Address
The
match ip address
command, in Route-map Configuration mode, creates an entry in the
configured route map based on the IP address criteria in the named access list. The
no
form of the
command removes the specified match criteria.