
Chapter 5
Packet Classification and Labelling
E-NIT-CTC-20041213-0013v0.5
42
5.3 RulesIntroduction Rules are used to define two things:
The relation between the chains.
The criteria to check before assigning a label to a packet.
We will only discuss rules used to assign a label to a packet in this document.
Adding a selection rule As mentioned before a label will only be assigned to a packet if this packet complies 
to a certain rule. These rules have to be defined in the rule subgroup. 
Execute the following CLI command to add a rule:
Example explained This command adds a rule under the qos_user_labels named ftp with index 2.
This rule applies to data coming from the LAN interface with source address 
10.0.0.1 and of the type FTP. Packets matching this rule will be labeled with the 
label “mylabel”
If no index is specified the SpeedTouch™ will automatically use the next available 
index number .
{Administrator}=>:label rule add chain=qos_user_labels index=2 name=ftp 
srcintf=lan srcip=10.0.0.1 serv=ftp log=enabled  state=enabled 
label=mylabel