Zyxel OLT2412 [146/326] Classifier commands

Zyxel OLT2412 [146/326] Classifier commands
Chapter 20 Classifier
OLT2412 User’s Guide
146
20.2 Classifier Commands
Use these commands to classify packets into traffic flows. After classifying traffic, policy
commands (Chapter 21 on page 149) can be used to ensure that a traffic flow gets the requested
treatment in the network.
The following table shows some other common Ethernet types and the corresponding protocol
number.
Table 74 Classifier Commands
COMMAND DESCRIPTION
show classifier [<name>]
Displays classifier configuration details.
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|dec
net|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
75 on page 146)
ip-protocol : enter one of the protocols or type the port
number that identifies the protocol (see Table 76 on page 147)
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 77 on page 147).
See Chapter 8 on page 75 for more information about IPv6.
no classifier <name>
Deletes the classifier.
If you delete a classifier you cannot use policy rule related
information.
no classifier <name> inactive
Enables a classifier.
Table 75 Common Ethernet Types and Protocol Number
ETHERNET TYPE PROTOCOL NUMBER
IP ETHII 0800
X.75 Internet 0801
NBS Internet 0802
ECMA Internet 0803
Chaosnet 0804
X.25 Level 3 0805

Содержание