Configuring Classifiers and Rewrite Rules at the Global and Physical Interface Levels
On ACX Series Universal Metro Routers and EX Series switches, CoS supports classification and rewrite at the global and physical interface levels.
To configure the global EXP classifier, include the following statements at the [edit class-of-service] system-defaults hierarchy level.
[edit class-of-service] { system-defaults { classifiers exp classifier-name } }
CoS supports one global system default classifier of the EXP type, as shown in the following example:
[edit class-of-service] { system-defaults { classifiers { exp exp-classf-core; } } }
To configure classifiers and rewrite rules at the physical interface level, include the following statements at the [edit class-of-service] interfaces hierarchy level.
[edit class-of-service] interfaces { interface-name classifiers dscp classifier-name classifiers inet-precedence classifier-name classifiers ieee-802.1 [vlan-tag (outer | inner)] classifier-name rewrite-rules dscp rewrite-name rewrite-rules inet-prec rewrite-name rewrite-rules ieee-802.1 rewrite-name }
The following example shows classifiers and rewrite rules configured on physical interfaces:
ge-0/1/0 { unit 0 { rewrite-rules { exp custom-exp; } } classifiers { dscp d1; ieee-802.1 ci; } rewrite-rules { dscp default; } } ge-0/1/2 { classifiers { ieee-802.1 ci; } rewrite-rules { ieee-802.1 ri; } } ge-0/1/3 { unit 0 { rewrite-rules { exp custom-exp2; } } } ge-0/1/7 { classifiers { dscp d1; } } ge-0/1/8 { classifiers { dscp d1; } }