Page 731 / 998 Scroll up to view Page 726 - 730
Classifier command reference
QOS
7-35
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr1 set rule r1 priority 1
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
SCHEDULER PROFILE SET QUEUE WEIGHT
7.1.5.1.22 CLASSIFIER PROFILE SET RULE PROTOCOL
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} PROTOCOL <protocol>
Description
T
his command configures a classifier rule to test the protocol of incoming packets. You
can specify the following protocols by name or decimal protocol number:
TCP (6)
UDP (17)
ICMP (1)
GRE (47)
All other protocols can only be specified by their decimal protocol number.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Option
Description
Default Value
name
An existing profile. To display profile names, use the
CLASSIFIER LIST PROFILES
command.
N/A
number
An existing profile. To display profile numbers, use
the
CLASSIFIER LIST PROFILES
com-
mand.
N/A
rule name
An existing rule. To display rule names, use the
CLASSIFIER PROFILE LIST RULES
command.
N/A
priority
The scheduling priority value or queue ID value, that
is any number between 1 and 7 (included). To display
scheduling priority values, use the
SCHEDULER
SHOW PROFILE QUEUES
command.
N/A
Page 732 / 998
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-36
Example
--> classifier profile pr1 set rule r1 protocol udp
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.23 CLASSIFIER PROFILE SET RULE SRCADDR
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} SRCADDR <addr> <mask>
Description
This command configures a classifier rule to test the source IP address of incoming pack-
ets. The netmask address is compulsory and allows you to match either a whole subnet
or just one host using the mask 255.255.255.255.
Set the srcaddr values to 0.0.0.0 if you want to cancel this test and set the rule to match
any source IP address.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Option
Description
Default Value
name
An existing profile. To display profile names, use the classi-
fier list profiles command.
N/A
number
An existing profile. To display profile numbers, use the
CLASSIFIER LIST PROFILES
command.
N/A
rule name
An existing rule. To display rule names, use the
CLASSI-
FIER PROFILE LIST RULES
command.
N/A
rule number
An existing rule. To display rule numbers, use the
CLAS-
SIFIER PROFILE LIST RULES
command.
N/A
protocol
The name/decimal number for the supported protocol. Set
to ‘any‘ to cancel the test and let the rule match any pro-
tocol
any
Option
Description
Default Value
name
An existing profile. To display profile names, use the
CLASSIFIER LIST PROFILES
command.
N/A
Page 733 / 998
Classifier command reference
QOS
7-37
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr2 set rule r1 srcaddr 192.168.101.1 255.255.255.255
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.24 CLASSIFIER PROFILE SET RULE SRCPORT
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} SRCPORT <min> <max>
Description
This command configures a classifier rule to test the source port of incoming packets.
You can specify a range of ports by configuring different minimum and maximum port
numbers, or specify a single port by configuring the same port number for both port val-
ues.
Set the srcport value to 0.0.0.0 if you want to cancel this test and set the rule to match
any source port.
Note:
This rule is only meaningful for TCP and UDP protocols. If you have set a source port rule, you must also
specify which protocol (TCP or UDP) should be tested by the rule. See
CLASSIFIER PROFILE SET
RULE PROTOCOL
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable)
number
An existing profile. To display profile numbers, use the
CLASSIFIER LIST PROFILES
command.
N/A
rule name
An existing rule. To display rule names, use the
CLASSI-
FIER PROFILE LIST RULES
command.
N/A
rule number
An existing rule. To display rule numbers, use the
CLAS-
SIFIER PROFILE LIST RULES
command.
N/A
addr
The source IP address, in the format 192.168.102.3
0.0.0.0
mask
The source subnet mask address in the format
255.255.255.0
0.0.0.0
Option
Description
Default Value
name
An existing profile. To display profile names, use the
CLASSIFIER LIST PROFILES
command.
N/A
Option
Description
Default Value
Page 734 / 998
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-38
Example
--> classifier profile pr1 set rule r1 srcport 2727 2727
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
CLASSIFIER PROFILE SET RULE PROTOCOL
7.1.5.1.25 CLASSIFIER PROFILE SET RULE TOS
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} TOS <tos>
Description
This command configures a classifier rule to test the
Type of Service
(ToS) field in the IP
header of incoming packets.
The ToS field is also known as the DSCP field. See also the
CLASSIFIER PROFILE
SET RULE DSCP
command that provides an alternative method of testing the same IP
header field.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
number
An existing profile. To display profile numbers, use the
CLASSIFIER LIST PROFILES
command.
N/A
rule name
An existing rule. To display rule names, use the
CLASSI-
FIER PROFILE LIST RULES
command.
N/A
rule number
An existing rule. To display rule numbers, use the
CLAS-
SIFIER PROFILE LIST RULES
command.
N/A
min
The start of the source port range for a TCP or UDP pro-
tocol.
0
max
The end of the source port range for a TCP or UDP pro-
tocol.
0
Option
Description
Default Value
name
An existing profile. To display profile names, use the
CLASSIFIER LIST PROFILES
command.
N/A
number
An existing profile. To display profile numbers, use the
CLASSIFIER LIST PROFILES
command.
N/A
Option
Description
Default Value
Page 735 / 998
Classifier command reference
QOS
7-39
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr1 set rule r1 tos 0x04
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
CLASSIFIER PROFILE SET RULE DSCP
7.1.5.1.26 CLASSIFIER PROFILE SET RULE TRAFFICTYPE
Syntax
CLASSIFIER PROFILE <name> SET RULE <rule_name> TRAFFICTYPE
<type>
Description
The purpose of this command is to match the rule based on the traffic type specified in
the ethernet header.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value for each option (if applicable).
Example
--> classifier profile TestProfile set rule TestRule traffictype 0x800
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
rule name
An existing rule. To display rule names, use the
CLASSI-
FIER PROFILE LIST RULES
command.
N/A
rule number
An existing rule. To display rule numbers, use the
CLAS-
SIFIER PROFILE LIST RULES
command.
N/A
tos
The
Type of Service
, specified as a hexadecimal (0xNN)
in the range 0x00 and 0xfc. The 2 least significant bits are
ignored. Set to ‘any’ to cancel the ToS setting.
any
Option
Description
Default Value
name
The name of the profile in which to alter the rule
N/A
rule name
The name of the rule in the profile to alter
N/A
type
The value of the traffic type on which to match the rule.
N/A
Option
Description
Default Value

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top