Page 721 / 998 Scroll up to view Page 716 - 720
Classifier command reference
QOS
7-25
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr1 set rule r1 droppri 0
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.11 CLASSIFIER PROFILE SET RULE DSCP
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} DSCP <dscp>
Description
This command configures a classifier rule to test the
Differentiated Services Code Point
(DSCP) field in the IP header of incoming packets.
The DSCP field is also known as the
Type of Service
(TOS) field. See the
CLASSIFIER
PROFILE SET RULE TOS
command, which 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)
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
rule name
An existing rule. To display rule names, use the
CLAS-
SIFIER PROFILE LIST RULES
command.
N/A
rule number
An existing rule. To display rule numbers, use the
CLASSIFIER PROFILE LIST RULES
com-
mand.
N/A
droppri
The drop priority set as either 0, 1 or 2:
0 = the lowest drop priority (green)
1 = the medium drop priority (yellow)
2 = the highest drop priority (red)
N/A
Page 722 / 998
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-26
Example
--> classifier profile pr1 set rule r1 dscp 101110
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
CLASSIFIER PROFILE SET RULE TOS
7.1.5.1.12 CLASSIFIER PROFILE SET RULE DSTADDR
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} DSTADDR <addr> <mask>
Description
This command configures a classifier rule to test the destination IP address of incoming
packets. 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
DSTADDR
values to 0.0.0.0 if you want to cancel this test and set the rule to
match any destination 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
CLASSIFIER 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
dscp
The
Differentiated Service Code Point
(DSCP). This
value is specified as 6 binary digits (NNNNNN). Set to any
to cancel the DSCP setting.
any
Option
Description
Default Value
name
An existing profile. To display profile names, use the
CLASSIFIER LIST PROFILES
command.
N/A
Page 723 / 998
Classifier command reference
QOS
7-27
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile pr2 set rule r1 dstaddr 192.168.86.93 255.255.255.255
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
7.1.5.1.13 CLASSIFIER PROFILE SET RULE DSTPORT
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} DSTPORT <min> <max>
Description
T
his command configures a classifier rule to test the destination port of incoming pack-
ets. 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
DSTPORT
min and max values to 0 if you want to cancel this test and set the rule
to match any destination port.
Note:
This rule is only meaningful for TCP and UDP protocols. If you have set a destination 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
com-
mand.
N/A
rule name
An existing rule. To display rule names, use the
CLASSIFIER PROFILE LIST RULES
com-
mand.
N/A
rule number
An existing rule. To display rule numbers, use the
CLASSIFIER PROFILE LIST RULES
com-
mand.
N/A
addr
The destination IP address, displayed in the following
format: 192.168.102.3
0.0.0.0
mask
The destination subnet mask address, displayed in the
following format:
255.255.255.0
0.0.0.0
Option
Description
Default Value
Page 724 / 998
QOS
Classifier command reference
iMG/RG Software Reference Manual (Quality of Service)
7-28
Example
--> classifier profile pr1 set rule r1 dstport 2727 2727
See also
CLASSIFIER LIST PROFILES
CLASSIFIER PROFILE LIST RULES
CLASSIFIER PROFILE SET RULE PROTOCOL
7.1.5.1.14 CLASSIFIER PROFILE SET RULE IFDOMAIN
Syntax
CLASSIFIER PROFILE <name> SET RULE <rule_name> IFDOMAIN
<ifdomain> ACTION <action>
Description
The purpose of this command is to create a rule that matches the interface domain of
the incoming packet.
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
com-
mand.
N/A
rule number
An existing rule. To display rule numbers, use the
CLASSIFIER PROFILE LIST RULES
com-
mand.
N/A
min
The start of the destination port range for a TCP or
UDP protocol.
0
max
The end of the destination port range for a TCP or
UDP protocol.
0
Option
Description
Default Value
name
The name of the profile under which the rule exists
N/A
rule_name
The name of the rule in the profile to alter.
N/A
Page 725 / 998
Classifier command reference
QOS
7-29
iMG/RG Software Reference Manual (Quality of Service)
Example
--> classifier profile TestProfile set rule TestRule ifdomain example.com action drop
See also
CLASSIFIER PROFILE LIST RULES
CLASSIFIER PROFILE ADD RULE
7.1.5.1.15 CLASSIFIER PROFILE SET RULE MARK DSCP
Syntax
CLASSIFIER PROFILE {<name>|<number>} SET RULE {<rule
name>|<rule number>} MARK DSCP <dscp>
Description
T
his command determines what happens if a rule is matched. You can configure the clas-
sifier to mark packets with a specific
Differentiated Services Code Point
(DSCP). If set,
the DSCP field in the IP header will be changed to the value set here.
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 pr1 set rule r1 mark dscp 101110
ifdomain
The name of the domain on which to match
N/A
action
The action to be carried out in the event of a match
N/A
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
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
dscp
The
Differentiated Service Code Point
that marked
matched packets. It can be either an hexadecimal (0xNN)
or 6 binary digits (NNNNNN). “none” deletes the DSCP
setting.
none
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