> - Downloads
> - Configuring ToS Byte Conditions (SRC CLI)
> - Related Topics
> - Before You Configure Classify-Traffic Conditions
> - Configuring Classify-Traffic Conditions

> # Configuring ToS Byte Conditions (SRC CLI)

> Use this condition to define a particular traffic flow to the service’s network for the DA IP field in the IP packet.

> The CoS feature on routers running JUNOS Software supports DiffServ as well as six-bit IP header ToS byte settings. The DiffServ protocol uses the ToS byte in the IP header. The most significant six bits of this byte form the Differentiated Services code point (DSCP). The CoS feature uses DSCPs to determine the forwarding class associated with each packet. It also uses the ToS byte and ToS byte mask to determine IP precedence.

> Use the following configuration statements to add ToS conditions to a classify-traffic condition:

> `
> policies group name list name rule name traffic-condition name tos {
>   tos-byte tos-byte ;
>   tos-byte-mask tos-byte-mask ;
> }
> `

> To add ToS conditions to a classify-traffic condition:

> 1. From configuration mode, enter the ToS configuration. For example:
>    `
>    user@host# edit policies group junos list bodVpn rule pr traffic-condition ctc tos
>    `
> 2. (Optional) Configure the value of the ToS byte in the IP packet header.
>    `
>    [edit policies group junos list bodVpn rule pr traffic-condition ctc tos]
>    user@host# set tos-byte tos-byte
>    `
> 3. (Optional) Configure the mask associated with the ToS byte.
>    `
>    [edit policies group junos list bodVpn rule pr traffic-condition ctc tos]
>    user@host# set tos-byte-mask tos-byte-mask
>    `
> 4. (Optional) Verify the ToS condition configuration.

>        [edit policies group junos list bodVpn rule pr traffic-condition ctc tos]
>        user@host# show
>        tos-byte tosByte;
>        tos-byte-mask tosMask;

> #### Published: 2009-09-22

> Copyright © 2009, Juniper Networks, Inc. All rights reserved. Trademark Notice.