User guide
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