Ethernet Switch CLI Reference Guide
59
CHAPTER 11
Classifier Commands
Use these commands to classify packets into traffic flows. After classifying traffic, policy
commands (Chapter 52 on page 217) can be used to ensure that a traffic flow gets the
requested treatment in the network.
11.1 Command Summary
The following section lists the commands for this feature.
Table 31 Command Summary: classifier
COMMAND DESCRIPTION M P
show classifier [<name>] Displays classifier configuration details. E 3
classifier <name> <[packet-
format <802.3untag|802.3tag|
EtherIIuntag|EtherIItag>]
[priority <0-7>] [vlan <vlan-
id>] [ethernet-type <ether-
num|ip|ipx|arp|rarp|appletalk|d
ecnet|ipv6>] [source-mac <src-
mac-addr>] [source-port <port-
num>] [destination-mac <dest-
mac-addr>] [dscp <0-63>] [ipv6-
dscp <0-63>] [ip-protocol
<protocol-num|tcp|udp|icmp|egp|
ospf|rsvp|igmp|igp|pim|ipsec>
[establish-only]] [ipv6-next-
header <protocol-
num|tcp|udp|icmpv6> [establish-
only]] [source-ip <src-ip-addr>
[mask-bits <mask-bits>]] [ipv6-
source-ip <src-ipv6-addr>
[prefix-length <prefix-
length>]] [source-socket
<socket-num>] [destination-ip
<dest-ip-addr> [mask-bits <mask-
bits>]] [ipv6-destination-ip
<dest-ipv6-addr> [prefix-length
<prefix-length>]] [destination-
socket <socket-num>] [inactive]>
Configures a classifier. Specify the parameters to identify the
traffic flow:
ethernet-type - enter one of the Ethernet types or type the
hexadecimal number that identifies an Ethernet type (see
Table 32 on page 60)
ip-protocol : enter one of the protocols or type the port
number that identifies the protocol (see Table 33 on page 60)
establish-only : enter this to identify only TCP packets
used to establish TCP connections.
source-socket : (for UDP or TCP protocols only) specify
the protocol port number.
destination-socket : (for UDP or TCP protocols only)
specify the protocol port number.
inactive : disables this classifier.
ipv6-next-header : enter an 8-bit next header in the IPv6
packet. The Next Header field is similar to the IPv4 Protocol
field. The IPv6 protocol number ranges from 1 to 255 (see
Table 34 on page 60).
See Chapter 33 on page 139 for more information about IPv6.
C13
no classifier <name> Deletes the classifier.
If you delete a classifier you cannot use policy rule related
information.
C13
no classifier <name> inactive Enables a classifier. C 13