Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Assigning CoS Components to Interfaces

 

After you define the following CoS components, you assign them to physical or logical interfaces. Components that you assign to physical interfaces are valid for all of the logical interfaces configured on the physical interface. Components that you assign to a logical interface are valid only for that logical interface.

  • Classifiers—Assign only to logical interfaces; on some switches, you can apply classifiers to physical Layer 3 interfaces and the classifiers are applied to all logical interfaces on the physical interface.

  • Congestion notification profiles—Assign only to physical interfaces.

    Note

    OCX Series switches and NFX250 Network Services platform do not support congestion notification profiles.

  • Forwarding classes—Assign to interfaces by mapping to forwarding class sets.

  • Forwarding class sets—Assign only to physical interfaces.

  • Output traffic control profiles—Assign only to physical interfaces (with a forwarding class set).

  • Port schedulers—Assign only to physical interfaces on switches that support port scheduling. Associate the scheduler with a forwarding class in a scheduler map and apply the scheduler map to the physical interface.

  • Rewrite rules—Assign only to logical interfaces; on some switches, you can apply classifiers to physical Layer 3 interfaces and the classifiers are applied to all logical interfaces on the physical interface.

You can assign a CoS component to a single interface or to multiple interfaces using wildcards. You can also assign a congestion notification profile or a forwarding class set globally to all interfaces.

To assign CoS components to interfaces:

Assign a CoS component to a physical interface by associating a CoS component (for example, a forwarding class set named be-priority-group) with an interface:

[edit class-of-service interfaces]

user@switch# set xe-0/0/7 forwarding-class-set be-priority-group



Assign a CoS component to a logical interface by associating a CoS component (for example, a classifier named be_classifier) with a logical interface:

[edit class-of-service interfaces]

user@switch# set xe-0/0/7 unit 0 classifiers dscp be_classifier



Assign a CoS component to multiple interfaces by associating a CoS component (for example, a rewrite rule named customup-rw) to all 10-Gigabit Ethernet interfaces on the switch, use wildcard characters for the interface name and logical interface (unit) number:

[edit class-of-service interfaces]

user@switch# set xe-* unit * rewrite-rules ieee-802.1 customup-rw



Assign a congestion notification profile or a forwarding class set globally to all interfaces using the set class-of-service interfaces all statement. For example, to assign a forwarding class set named be-priority-group to all interfaces:

[edit class-of-service interfaces]

user@switch# set all forwarding-class-set be-priority-group
Note

If there is an existing CoS configuration of any type on an interface, the global configuration is not applied to that particular interface. The global configuration is applied to all interfaces that do not have an existing CoS configuration.

For example, if you configure a rewrite rule, assign it to interfaces xe-0/0/20.0 and xe-0/0/22.0, and then configure a forwarding class set and apply it to all interfaces, the forwarding class set is applied to every interface except xe-0/0/20 and xe-0/0/22.