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.
- Congestion notification profiles—Assign only to physical interfaces.
- 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).
- Rewrite rules—Assign only to logical interfaces.
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 CoS components to a single interface by associating a CoS component (for example a forwarding class set named san-priority-group) with an interface:
[edit class-of-service interfaces]
user@switch# set xe-0/0/7 forwarding-class-set
san-priority-group 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-rwAssign 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_fcset to all interfaces:
[edit class-of-service interfaces]
user@switch# set all forwarding-class-set be_fcset![]() | 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 congestion notification profile and apply it to all interfaces, the congestion notification profile is applied to every interface except xe-0/0/20 and xe-0/0/22. |


