match length




match length minimum-length maximum-length
no match length minimum-length maximum-length


Syntax Description:

minimum-length Minimum Level 3 length of the packet, inclusive, allowed for a match. Range is from 0 to 0x7FFFFFFF.
maximum-length Maximum Level 3 length of the packet, inclusive, allowed for a match. Range is from 0 to 0x7FFFFFFF.


Command Description:

To base policy routing on the Level 3 length of a packet, use the match length command in route-map configuration mode. To remove the entry, use the no form of this command.

Use the ip policy route-map interface configuration command, the route-map global configuration command, and the match and set route-map configuration commands, to define the conditions for policy routing packets. The ip policy route-map command identifies a route map by name. Each route-map has a list of match and set commands associated with it. The match commands specify the match criteria--the conditions under which policy routing occurs. The set commands specify the set actions--the particular routing actions to perform if the criteria enforced by the match commands are met.

The match route-map configuration command has multiple formats. The match commands can be given in any order, and all match commands must "pass" to cause the packet to be routed according to the set actions given with the set commands. The no forms of the match commands remove the specified match criteria.

You might want to base your policy routing on the length of packets so that your interactive traffic and bulk traffic are directed to different routers.


In the following example, packets 3 to 200 bytes long, inclusive, will be routed to FDDI interface 0:

Router(config)# interface serial 0
Router(config-if)# ip policy route-map interactive

Router(config)# route-map interactive
Router(config-route-map)# match length 3 200 
Router(config-route-map)# set interface fddi 0



Related Commands:

ip policy route-map
match ip address
set default interface
set interface
set ip default next-hop verify-availability
set ip next-hop

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)