8-7
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-6392-01
Chapter 8 Configuring IP Addresses, Routing, and DHCP
Configuring OSPF
• To match any routes that have a specified metric, enter the following command:
FWSM(config-route-map)# match metric
metric_value
The metric_value can be from 0 to 4294967295.
• To match any routes that have a next hop router address that matches a standard ACL, enter the
following command:
FWSM(config-route-map)# match ip next-hop
acl_id
[
acl_id
] [...]
See the “Adding a Standard Access Control List” section on page 10-17 to add the standard ACL.
If you specify more than one ACL, then the route can match any of the ACLs.
• To match any routes with the specified next hop interface, enter the following command:
FWSM(config-route-map)# match interface vlan
number
[vlan
number
]
If you specify more than one interface, then the route can match either interface.
• To match any routes that have been advertised by routers that match a standard ACL, enter the
following command:
FWSM(config-route-map)# match ip route-source
acl_id
[
acl_id
] [...]
See the “Adding a Standard Access Control List” section on page 10-17 to add the standard ACL.
If you specify more than one ACL, then the route can match any of the ACLs.
• To match the route type, enter the following command:
FWSM(config-route-map)# match route-type {internal | external [type-1 | type-2]}
Step 3 Enter one or more set commands.
If a route matches the match commands, then the following set commands determine the action to
perform on the route before redistributing it.
• To set the metric, enter the following command:
FWSM(config-route-map)# set metric
metric_value
The metric_value can be a value between 0 and 294967295
• To set the metric type, enter the following command:
FWSM(config-route-map)# set metric-type {type-1 | type-2}
• To set the next hop router IP address, enter the following command:
FWSM(config-route-map)# set ip next-hop
ip_address
[
ip_address
] [...]
The next hop must be an adjacent router. If you specify more than one address, if the interface
associated with the first next hop address is down, then the next address is used.
The following example redistributes routes with a hop count equal to 1. The FWSM redistributes these
routes as external link-state advertisements (LSAs) with a metric of 5, metric type of Type 1, and a tag
equal to 1.
FWSM(config)# route-map 1-to-2 permit
FWSM(config-route-map)# match metric 1
FWSM(config-route-map)# set metric 5
FWSM(config-route-map)# set metric-type type-1