See the following sections:
- term term-name {
-
-
from {
-
applications [ application-names ];
-
application-sets [ set-names ];
-
destination-address address;
-
source-address address;
- }
-
-
then {
-
application-profile profile-name;
-
dscp (alias | bits);
-
forwarding-class class-name;
-
syslog;
-
- (reflexive | reverse) {
-
application-profile profile-name;
-
dscp (alias | bits);
-
forwarding-class class-name;
-
syslog;
- }
- }
- }
- [edit services cos rule rule-name]
Statement introduced in JUNOS Release 8.1.
Define the CoS term properties.
term-name—Identifier for the term.
The remaining statements are explained separately.
See Configuring Class-of-Service Rule Content.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- term term-name {
-
-
from {
-
match-conditions;
- }
-
-
then {
-
forwarding-class class-name;
-
loss-priority (high | low);
-
-
three-color-policer {
- two-rate policer-name;
- }
-
virtual-channel virtual-channel-name;
- }
- }
- [edit firewall family family-name filter filter-name]
Statement introduced before JUNOS Release 7.4.
Define a firewall filter term.
from—Match packet fields to values. If not included, all packets are considered to match and the actions and action modifiers in the then statement are taken.
match-conditions—One or more conditions to use to make a match. The conditions are described in the JUNOS Policy Framework Configuration Guide.
term-name—Name that identifies the term. The name can contain letters, numbers, and hyphens (-), and can be up to 255 characters long. To include spaces in the name, enclose it in quotation marks (" " ).
then—Actions to take on matching packets. If not included and a packet matches all the conditions in the from statement, the packet is accepted. For CoS, only the actions listed are allowed. These statements are explained separately.
See Classifying Packets Based on Multiple Fields; for a general discussion of this statement, see the JUNOS Policy Framework Configuration Guide.
firewall—To view this statement in the configuration.
firewall-control—To add this statement to the configuration.
- term term-name {
-
- from {
-
match-conditions;
- }
-
- then {
-
forwarding-class class-name;
-
loss-priority (high | low | medium);
- }
- }
- [edit firewall family inet simple-filter filter-name]
Statement introduced in JUNOS Release 7.6.
Define a simple filter term.
from—Match packet fields to values. If the from option is not included, all packets are considered to match and the actions and action modifiers in the then statement are taken.
match-conditions—One or more conditions to use to make a match. The conditions are described in the JUNOS Policy Framework Configuration Guide.
term-name—Name that identifies the term. The name can contain letters, numbers, and hyphens (-), and can be up to 255 characters long. To include spaces in the name, enclose it in quotation marks (" " ).
then—Actions to take on matching packets. If the then option is not included and a packet matches all the conditions in the from statement, the packet is accepted. For CoS, only the actions listed are allowed. These statements are explained separately.
See Classifying Packets Based on Multiple Fields; for a general discussion of this statement, see the JUNOS Policy Framework Configuration Guide.
firewall—To view this statement in the configuration.
firewall-control—To add this statement to the configuration.