# mark

#### Syntax

For IPv4:

[ no ] [ suspend ] mark { tosByteValue mask maskValue |
tos-precedence tosPrecNum | tos tosNum | dsfield dsFieldNum }
profile colorMarkProfileName }

For IPv6:

[ no ] [ suspend ] mark { tcByteValue mask tcMaskValue | tc-precedence
tcPrecNum | tcfield tcFieldNum | dsfield dsFieldNum } profile
colorMarkProfileName }

#### Release Information

Command introduced before JunosE Release 7.1.0.
colorMarkProfileName variable added in JunosE Release 7.2.0.

#### Description

Sets the precedence field of the ToS byte (for IPv4) or traffic class byte (for IPv6) in the IP header to a specified value for packets that match the current classifier control list. This command is not tied to a rate limit profile, but marks packets based on a classifier control list. The no version removes the mark rule from the policy list; the suspend version temporarily suspends the mark rule; the no suspend version resumes application of a suspended rule.

| Note: This command replaces the Policy List Configuration mode version of the mark command, which may be removed completely in a future release.

#### Options

- tosByteValue—ToS byte value to be assigned to packets; in the range 0–255
- maskValue—Mask to be used when applying ToS byte values to packets; in the range 1–255
- tosPrecNum—ToS precedence value to be assigned to packets; in the range 0–7
- tosNum—ToS value to be assigned to packets; in the range 0–255
- dsFieldNum—DS field value to be assigned to packets; in the range 0–63
- colorMarkProfileName—Name of the color-mark profile (up to 40 alphanumeric characters)
- tcByteValue—Traffic class field value to be assigned to packets; in the range 0–255
- tcMaskValue—Mask to be used when applying traffic class field values to packets; in the range 1–255
- tcPrecNum—Traffic class field precedence value to be assigned to packets; in the range 0–7
- tcFieldNum—Traffic class field value to be assigned to packets; in the range 0–255

#### Mode

Classifier Group Configuration

#### Related Documentation

- Policy Rule Precedence