Related Documentation
- J Series
- Forwarding Classes Overview
- Example: Assigning Forwarding Classes to Output Queues
- Example: Configuring Forwarding Classes
- SRX Series
- Forwarding Classes Overview
- Example: Assigning Forwarding Classes to Output Queues
- Example: Configuring Forwarding Classes
- Additional Information
- Junos OS Feature Support Reference for SRX Series and J Series Devices

Example: Assigning a Forwarding Class to an Interface
This example shows how to assign a forwarding class to an interface.
Requirements
No special configuration beyond device initialization is required before configuring this feature.
Overview
On a device, you can configure fixed classification on a logical interface by specifying a forwarding class to be applied to all packets received by the logical interface, regardless of the packet contents.
In this example, you configure class of service, create interface ge-3/0/0 unit 0 and then, you then set forwarding class to assured-forwarding.
All packets coming into the device from the ge-3/0/0 unit 0 interface are assigned to the assured-forwarding forwarding class.
Configuration
Step-by-Step Procedure
The following example requires you to navigate various
levels in the configuration hierarchy. For instructions on how to
do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide
.
To assign a forwarding class to an interface:
- Configure class of service and assign the interface.[edit]user@host# edit class-of-service interfaces ge-3/0/0 unit 0
- Specify the forwarding class.[edit class-of-service interfaces ge-3/0/0 unit 0]user@host# set forwarding-class assured-forwarding
- If you are done configuring the device, commit the configuration.[edit]user@host# commit
Verification
To verify the configuration is working properly, enter the show class-of-service command.
Related Documentation
- J Series
- Forwarding Classes Overview
- Example: Assigning Forwarding Classes to Output Queues
- Example: Configuring Forwarding Classes
- SRX Series
- Forwarding Classes Overview
- Example: Assigning Forwarding Classes to Output Queues
- Example: Configuring Forwarding Classes
- Additional Information
- Junos OS Feature Support Reference for SRX Series and J Series Devices


