Route-maps contain a set of filters that select traffic (match clauses) and associated actions (mark clauses) for routing. Every route-map entry has a precedence value. Lower the precedence, higher is the route-map‘s priority. All incoming packets are matched against these route-maps entries. The route-map entry with highest precedence (lowest numerical value) is applied first. In case of a match, action is taken based on the mark clause specified in the route-map. In case of no match, the route-map entry with the next highest precedence is applied. If the incoming packet does not match any of the route-map entries, it is subjected to typical destination-based routing. Each route-map entry can optionally enable/disable logging.
ACL rules configured under route map entries merge to create a single ACL. Route map precedence values determine the prioritization of the rules in this merged ACL. An IP DSCP value is also added to the ACL rules.
Mark (or action) clauses determine the routing function when a packet satisfies match criteria. If no mark clauses are defined, the default is to fallback to destination-based routing for packets satisfying the match criteria. If no mark clause is configured and fallback to destination-based routing is disabled, then the packet is dropped. The mark clause defines one of following actions:
route-map <1-100>
route-map <1-100>
route-map <1-100> | Creates a route map entry, sets a precedence value for the route map,
and enters the route map configuration mode
Note: Lower the sequence
number, higher is the precedence.
|
<DEVICE>(config-routing-policy-testpolicy)#route-map 1
nx9500-6C8809(config-routing-policy-testpolicy)#show context routing-policy testpolicy logging route-map 1 nx9500-6C8809(config-routing-policy-testpolicy)#
nx9500-6C8809(config-routing-policy-testpolicy)#route-map 1 nx9500-6C8809(config-routing-policy-testpolicy-route-map-1)#? Route Map Mode commands: default-next-hop Default next-hop configuration (aka gateway-of-last-resort) fallback Fallback to destination based routing if no next-hop is configured or all are unreachable mark Mark action for route map match Match clause configuration for Route Map next-hop Next-hop configuration no Negate a command or set its defaults clrscr Clears the display screen commit Commit all changes made in this session do Run commands from Exec mode end End current mode and change to EXEC mode exit End current mode and down to previous mode help Description of the interactive help system revert Revert changes service Service Commands show Show running system information write Write running configuration to memory or terminal nx9500-6C8809(config-routing-policy-testpolicy-route-map-1)#
Command | Description |
---|---|
default-next-hop | Sets the default next hop for packets satisfying match criteria |
fallback | Configures a fallback to the next destination |
mark | Marks action clause for packets satisfying match criteria |
match | Sets match clauses for the route map |
next-hop | Sets the next hop for packets satisfying match criteria |
no (route-map-config-mode-command) | Removes the route-map settings or reverts them to default values |
no (routing-policy-config-mode-command) | Removes a route map from the routing policy |