Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

match (Services CoS Next Gen Services)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
match {
    application [ application-names ];
    destination-address address;
    destination-address-range low minimum-value high maximum-value;
    destination-port port-number;
    destination-prefix-list list-name;
    source-address address;
    source-address-range low minimum-value high maximum-value;
    source-prefix-list list-name;
}

Hierarchy Level

content_copy zoom_out_map
[edit services cos rule rule-name policy policy-name]

Description

Configure the matching conditions for a policy in a services CoS rule. Matching conditions include packet source and destination addresses and packet applications. Packets that are processed by a service set and that match the conditions are assigned the Differentiated Services (DiffServ) code point (DSCP) marking and forwarding-class assignments specified in the policy.

The service set that the CoS rule is assigned to must include at least one stateful firewall rule or NAT rule, or CoS does not work. Only stateful firewall and NAT rules can be used with CoS rules in a service set.

Options

application [ application-names ]

One or more port-based applications.

destination-address address

Destination address of the packet.

destination-address-range low minimum-value high maximum-value

Range of destination addresses of the packet.

minimum-value

Lower boundary of address range.

maximum-value

Upper boundary of address range.

destination-port port-number

Destination port number of the packet.

source-address address

Source address of the packet.

source-address-range low minimum-value high maximum-value

Range of source addresses of the packet.

minimum-value

Lower boundary of address range.

maximum-value

Upper boundary of address range.

source-prefix-list list-name

Name of a prefix list for matching the source address prefix.

You configure the prefix list by using the prefix-list statement at the [edit policy-options] hierarchy level.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 19.3R2.

footer-navigation