Configures a route-map instance that dictates the packet forwarding behavior based on the match and set actions for ingress ACLs.
Config mode
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.
Message | Reason |
---|---|
Error: route-map name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots | Name begins with non-alphabetic character, contains invalid characters, or does not begin with an underscore. |
Error: route-map name identifier must start with an alphabetic character or an underscore | Name begins with non-alphabetic character or does not begin with an underscore. |
Error: route-map name identifier cannot exceed 64 characters | Name is longer than 64 characters. |
Error: route-map name identifier must not be reserved keyword | Name includes the reserved word indicated. |
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
The following examples show error messages for the route-map command.
device# configure terminal device(config)# route-map ab#c1 100 Error: keypath:/routemaps/routemap[name=ab#c1]/name contains one or more unsupported character ('@', '$', '#', '[', ']') for key:name device(config)# route-map ^abc1 100 Error: route-map name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots. device(config)# route-map abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc 100 Error: route-map name identifier cannot exceed 64 characters device(config-listener-policy)# route-map egress 10 Error: route-map name identifier must not be reserved keyword "egress" device(config)# route-map a]dff 20 Error: invalid keypath:/name error:path /name, contains invalid token name device(config)# route-map a^abc1 100 Error: route-map name identifier must be an arbitrary sequence of alphabets, numerals, underscores, hyphens or dots.