Creating Classifier Control Lists ! 17
Chapter 2: Creating Policies
! 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)#ipv6 classifier-list svale20 source-route-class 1
host1(config)#ipv6 classifier-list svale30 destination-route-class 1 tcfield 10
host1(config)#ipv6 classifier-list svale40 source-route-class 1 local true
host1(config)#ipv6 classifier-list west25 source-route-class 1 local false
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 traffic-class value of 10.
! svale40 matches the source address lookup route-class value of 1 and the
packets destined to the local interface.
! west25 matches the source address lookup route-class value of 1 and
packets that are not destined for the local interface (packets destined for
remote interfaces).
! Use the source-address, source-host, destination-address, and
destination-host options to classify traffic based on source and destination
addresses. You can specify the address as an IPv6 address or an IPv6 prefix. In
the following example, traffic is classified on source host address
2001:db8:1::8001 and destination address 2001:db8:3::/48:
host1(config)#ipv6 classifier-list YourClaclList source-host 2001:db8:1::8001
destination-address 2001:db8:3::/48
! Use the following keywords to specify traffic class information in the IPv6
header:
! tcfield—Specifies the use of the whole 8 bits of the traffic-class byte; range
is 0–255
! dsfield—Specifies the use of the upper 6 bits of the traffic-class byte; range
is 0–63
! precedence—Specifies the use of the upper 3 bits of the traffic-class byte;
range is 0–7
! Example
host1(config)#ipv6 classifier-list ipv6classifier color red user-packet-class 5
tcfield 10
! Use the no version to remove the classifier control list.