10 match protocol, 11 match srcip, 12 match srcl4port – Kontron AT8402 CLI User Manual

Page 123: At8402 quality of service (qos) commands

Advertising
background image

AT8402

Quality of Service (QoS) Commands

Page 3 - 11

AT8402 CLI Reference Manual

NOTE: The IP DSCP, IP Precedence, and IP ToS match conditions are alterna-

tive ways to specify a match criterion for the same Service Type field
in the IP header, but with a slightly different user notation.

NOTE: This “free form” version of the IP DSCP/Precedence/TOS match spec-

ification gives the user complete control when specifying which bits of
the IP Service Type field are checked.

Default

none

Format

match ip tos

<tosbits> <tosmask>

Mode

Class-Map Config

3.3.10

match protocol

This command adds to the specified class definition a match condition based on the

value of the IP Protocol field in a packet using a single keyword notation or a numeric

value notation.

To specify the match condition using a single keyword notation, the value for <

protocol-

name>

is one of the supported protocol name keywords. The currently supported values

are:

icmp, igmp, ip, tcp, udp

. A value of

ip

matches all protocol number values.

To specify the match condition using a numeric value notation, the protocol number is

a standard value assigned by IANA and is interpreted as an integer from 0 to 255.

NOTE: This command does not validate the protocol number value against the

current list defined by IANA.

Default

none

Format

match protocol

{<protocol-name> | <0-255>}

Mode

Class-Map Config

3.3.11

match srcip

This command adds to the specified class definition a match condition based on the

source IP address of a packet. The

<ipaddr>

parameter specifies an IP address. The

<ipmask>

parameter specifies an IP address bit mask and must consist of a contiguous

set of leading 1 bits.
Default

none

Format

match srcip

<ipaddr> <ipmask>

Mode

Class-Map Config

3.3.12

match srcl4port

This command adds to the specified class definition a match condition based on the

source layer 4 port of a packet using a single keyword or numeric notation. To specify

the match condition as a single keyword notation, the value for

<portkey>

is one of the

supported port name keywords (listed below). The currently supported

<portkey>

values are:

domain, echo, ftp, ftpdata, http, smtp, snmp, telnet, tftp, www

. Each of these translates

into its equivalent port number, which is used as both the start and end of a port range.

To specify the match condition as a numeric value, one layer 4 port number is required.

The port number is an integer from 0 to 65535.

Advertising