Creating Classifier Control Lists ! 13
Chapter 2: Creating Policies
! Use the following keywords to configure classification to match route-class
values:
! source-route-class—Classifies on packets associated with a route class
based on the packet’s source address; route-class range is 0–255; default is
0.
! destination-route-class—Classifies on incoming packets associated with a
route class based on the packet’s destination address; route-class range is
0–255; default is 0.
! local true—Matches packets that are destined to a local interface.
! local false—Matches packets that are traversing the router; this is the
default setting.
For example:
host1(config)#ip classifier-list svale20 source-route-class 1 ip any any
host1(config)#ip classifier-list svale30 destination-route-class 1 ip any any tos 10
host1(config)#ip classifier-list svale40 source-route-class 1 local true ip any any
host1(config)#ip classifier-list west25 source-route-class 1 local false ip any any
In the previous example, classifier control lists match route-class values as
follows:
! svale20 matches the source address lookup route-class value of 1.
! svale30 matches the destination address lookup route-class value of 1 and
a ToS byte value of 10.
! svale40 matches the source address lookup route-class value of 1 and the
packets destined to a local interface.
! west20 matches the source address lookup route-class value of 1 and
packets that are not destined for a local interface (packets destined for
remote interfaces).
! Use the following keywords to match the ToS byte in the IP header:
! tos—Specifies the use of the whole 8 bits of the ToS byte; range is 0–255;
for example:
host1(config)#ip classifier-list tos128 ip any any tos 128
! dsfield—Specifies the use of the upper 6 bits of the ToS byte; range is
0–63; for example:
host1(config)#ip classifier-list low-drop-prec ip any any dsfield 10
! precedence—Specifies the use of the upper 3 bits of the ToS byte; range is
0–7; for example:
host1(config)#ip classifier-list priority ip any any precedence 1