ON THIS PAGE
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 set the 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
Procedure
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.