
C613-50186-01 Rev B
Command Reference for AR2050V
1782
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
T
RAFFIC
C
ONTROL
C
OMMANDS
RULE
(
TRAFFIC
-
CONTROL
)
rule (traffic-control)
Overview
Use this command to create a traffic-control rule.
Use the
no
variant of this command to remove a traffic-control rule
Syntax
rule [
<1-65535>
] match <
application>
from <
source-entity>
to
<
destination-entity>
policy <
policy>
no rule [
<1-65535>
]
Default
No rules
Mode
Traffic-Control
Usage
Rules are used to apply traffic-control policies to a type of traffic. When traffic
control is enabled and no rules are added, a default traffic-control policy is installed
on all supported interfaces.
If the application, source entity or destination entity specified in the rule is not
configured correctly, the rule is not valid and is not installed.
You can change the rule order by using the move rule (traffic-control) command.
Parameter
Description
<1-65535>
The rule ID is an integer in the range from 1 to 65535. If you do not designate a
rule ID, one will be automatically generated and it will be greater than the
current highest rule ID. Lower IDs have higher priority.
match
Application traffic to match
<application>
Application name
from
Set the source of the entity
<source_entity>
Source entiity name. Entities represent logical grouping of subnets, hosts or
interfaces.
to
Set the destination of the entity
<destination_entity>
Source entiity name. Entities represent logical grouping of subnets, hosts or
interfaces.
policy
Policy to apply to matched traffic
<policy>
Traffic control policy. This consists of a top-level policy name followed by the
name of a class within that policy, and sub-class (of the class) and a
sub-sub-calss if applicable. Examples are:
p01.c03
p01.c03.sc02
p01.c03.scc02.ssc01
P01 is the policy name, c03 is the class name,sc02 is the sub-class, and ssc01 is
the sub-sub-class..