User guide
Configuring OSPF Configuring OSPF
page 1-24 OmniSwitch AOS Release 7 Advanced Routing Configuration Guide March 2015
To verify a route map configuration, use the show ip route-map command:
-> show ip route-map
Route Maps: configured: 1 max: 200
Route Map: ospf-to-bgp Sequence Number: 10 Action permit
match tag 8
set tag 5
Deleting a Route Map
Use the no form of the ip route-map command to delete an entire route map, a route map sequence, or a
specific statement within a sequence.
To delete an entire route map, enter no ip route-map followed by the route map name. For example, the
following command deletes the entire route map named redistipv4:
-> no ip route-map redistipv4
To delete a specific sequence number within a route map, enter no ip route-map followed by the route
map name, then sequence-number followed by the actual number. For example, the following command
deletes sequence 10 from the redistipv4 route map:
-> no ip route-map redistipv4 sequence-number 10
Note that in the above example, the redistripv4 route map is not deleted. Only those statements associated
with sequence 10 are removed from the route map.
To delete a specific statement within a route map, enter no ip route-map followed by the route map name,
then sequence-number followed by the sequence number for the statement, then either match or set and
the match or set parameter and value. For example, the following command deletes only the match tag 8
statement from route map redistipv4 sequence 10:
-> no ip route-map redistipv4 sequence-number 10 match tag 8
Setting the Metric
A route map can be used to set the metric by adding, subtracting, or replacing the metric of a route as in
the example below:
-> ip route-map set-metric set metric 1 effect add
• Add - Adds the given value to the routes metric
• Subtract - Subtracts the given value from the metric (can't be less than 1)
• Replace - Uses the given value for the routes metric
• None - Ignores the given value and passes the routes metric through
Denying A Route
With route maps denying a route does not mean that all the other routes are automatically permitted. It is
necessary to configure proper permit/deny rule for each route. However, a permit rule can be be created to
allow all routes and then specific rules for denying certain routes can be created as in the example below:
-> ip route-map leakin match ip-address 0.0.0.0/0 permit (permits all routes)
-> ip route-map leakin-example match ip-address 14.14.0.0/16 (deny route)