route-map

Configures a route-map instance that dictates the packet forwarding behavior based on the match and set actions for ingress ACLs.

Syntax

route-map name sequence_number
no route-map { name sequence_number } | all

Parameters

name
Specifies the name of the route-map to be used for packet forwarding as part of this ingress group. Valid range is 1 through 64.
The name must start with an alphabet character or an underscore character, followed by alphanumeric characters or special characters (underscores, hyphens, or periods).
sequence_number
Assigns sequence number to the route-map instance. This defines the order of route-map instances within a route-map. Valid range is 1 through 65535.
all
Specifies all route-maps when using the no form of this command.

Modes

Config mode

Usage Guidelines

Two route-map instances cannot have the same sequence-number.

Any attempts to remove an unconfigured route-map are ignored.

The no route-map name command deletes a route-map and no route-map [name] [sequence-number] command deletes the route-map with the specified sequence number.

The following reserved keywords cannot be used as name identifiers: all, ingress-group, egress, egress-group, match, list, access-list, route-map, and listener-policy.

Examples

The following examples show how to configure a route-map named rmap1 with the sequence number 10.

device# configure terminal
device(config)# route-map rmap1 10
device(config-route-map)# match mac access-list mac_acl1 
device(config-route-map)# match ip access-list ipv4_acl1 
device(config-route-map)# match ipv6 access-list ipv6_acl1
device(config-route-map)# set egress-group eg200 
 
device# show route-map all 
route-map rm1 1 
forward-action permit 
match ip access-list acl4 (active) 
match mac access-list acl2 (pending) 
egress-group eg1 
Policy matches: 0 packets, 0 bytes, 0 Packet/sed, 0 Bits/sec

The following examples delete a route map and a route map with a sequence number.

device# configure terminal
device(config)# no route-map rm1
device(config)# no route-map rmap1 10