Page 766 / 998 Scroll up to view Page 761 - 765
L2Filter
L2Filter Command Reference
iMG/RG Software Reference Manual (Quality of Service)
7-70
Example
--> l2filter rule TestRule add action mark_vlan value 1234
See also
L2FILTER ADD RULE
7.2.2.1.19 L2FILTER RULE ADD FIELD
Syntax
L2FILTER RULE <rule_name> ADD FIELD <field_name> <operation>
<val1> VALUE2 <val2>
Description
This command adds the specified field to the rule. The arguments for the field specifiy
the conditions of how the field should be tested.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
action_type
The action that should be performed. The available actions
are the following:
drop
allow_packet
dump_packet
mark_dscp
mark_8021p
mark_vlan
untag_packet
jump_stage
mark_sch
mark_meter
mark_drop
n/a
action_data
Additional data that may be required to perform the func-
tion specified by the action
0
Option
Description
Default Value
rule_name
The name of the to which the field should be added
n/a
field_name
The name of the field type to be added
n/a
Option
Description
Default Value
Page 767 / 998
L2Filter Command Reference
L2Filter
7-71
iMG/RG Software Reference Manual (Quality of Service)
Example
--> l2filter rule TestRule add field TestField INRANGE 1 value2 10
See also
L2FILTER ADD RULE
L2FILTER ADD FIELDTYPE
7.2.2.1.20 L2FILTER RULE LIST ACTIONS
Syntax
L2FILTER RULE <name> LIST ACTIONS
Description
This command lists the actions associated with the specified rule.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> l2filter rule TestRule list actions
See also
L2FILTER ADD RULE
L2FILTER RULE ADD ACTION
L2FILTER RULE DELETE ACTION
operation
The type of operation that should be used for the test.
The available tests are the following:
GT
LT
GTEQ
LTEQ
EQ
NEQ
INRANGE
EXRANGE
0
val1
The first argument to be used in the test
0
val2
The second argument to be used in the test
0
Option
Description
Default Value
name
The name of the rule to display actions
n/a
Option
Description
Default Value
Page 768 / 998
L2Filter
L2Filter Command Reference
iMG/RG Software Reference Manual (Quality of Service)
7-72
7.2.2.1.21 L2FILTER RULE LIST FIELDS
Syntax
L2FILTER RULE <name> LIST FIELDS
Description
This command lists all the fields associated with the specified rule.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> l2filter rule TestRule list fields
See also
L2FILTER ADD RULE
L2FILTER RULE ADD FIELD
L2FILTER RULE DELETE FIELD
7.2.2.1.22 L2FILTER RULE DELETE ACTION
Syntax
L2FILTER RULE <rule_name> DELETE ACTION <action_type>
Description
This command deletes the specified action from the given rule.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Option
Description
Default Value
name
The name of the rule to display the fields
n/a
Page 769 / 998
L2Filter Command Reference
L2Filter
7-73
iMG/RG Software Reference Manual (Quality of Service)
Example
--> l2filter rule TestRule delete action drop
See also
L2FILTER ADD RULE
L2FILTER RULE ADD ACTION
7.2.2.1.23 L2FILTER RULE DELETE FIELD
Syntax
L2FILTER RULE <rule_name> DELETE FIELD <field_name>
Description
This command deletes the specified field from the given rule.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> l2filter rule TestRule delete field destMAC
Option
Description
Default Value
rule_name
The name of the rule from which to delete the action
n/a
action_type
The action that should be deleted. The available actions
are the following:
drop
allow_packet
dump_packet
mark_dscp
mark_8021p
mark_vlan
untag_packet
jump_stage
mark_sch
mark_meter
mark_drop
n/a
Option
Description
Default Value
rule_name
The rule from which to delete the field
n/a
field_name
The name of the field to delete from the rule
n/a
Page 770 / 998
L2Filter
L2Filter Command Reference
iMG/RG Software Reference Manual (Quality of Service)
7-74
See also
L2FILTER ADD RULE
L2FILTER RULE ADD FIELD
7.2.2.1.24 L2FILTER SET RULE ENABLE
Syntax
L2FILTER SET RULE <rule_name> ENABLE
Description
This command enables a rule in the system.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> l2filter set rule TestRule enable
See also
L2FILTER ADD RULE
7.2.2.1.25 L2FILTER SET RULE DISABLE
Syntax
L2FILTER SET RULE <rule_name> DISABLE
Description
This command disables a rule in the system.
Options
The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example
--> l2filter set rule TestRule disable
See also
L2FILTER ADD RULE
Option
Description
Default Value
field_name
The name of the rule to enable
n/a
Option
Description
Default Value
rule_name
The name of the rule to disable
n/a

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