User guide

Configuring BGP Configuring Redistribution
OmniSwitch AOS Release 7 Advanced Routing Configuration Guide March 2015 page 4-49
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 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)
Configuring Route Map Sequences
A route map may consist of one or more sequences of statements. The sequence number determines which
statements belong to which sequence and the order in which sequences for the same route map are
processed.
To add match and set statements to an existing route map sequence, specify the same route map name and
sequence number for each statement. For example, the following series of commands creates route map
rm_1 and configures match and set statements for the rm_1 sequence 10: