Configure interface ge-6/0/0 to treat priority values 2 and 3 as premium. On ingress, this means that IEEE 802.1p priority values 2 and 3 are treated as premium. On egress, it means traffic that is classified into queue 0 or 1 with PLP of low and queue 2 or 3 with PLP of high, is treated as premium.
Define a policer that limits the premium bandwidth to 100 Mbps and burst size to 3 k, and the aggregate bandwidth to 200 Mbps and burst size to 3 k.
Specify that frames received from the MAC address 00:01:02:03:04:05 and the VLAN ID 600 are subject to the policer on input and output. On input, this means frames received with the source MAC address 00:01:02:03:04:05 and the VLAN ID 600 are subject to the policer. On output, this means frames transmitted from the routing platform with the destination MAC address 00:01:02:03:04:05 and the VLAN ID 600 are subject to the policer.
- [edit interfaces]
- ge-6/0/0 {
-
- gigether-options {
-
- ether-switch-profile {
-
- ether-policer-profile {
-
- input-priority-map {
-
- ieee-802.1p {
- premium [ 2 3 ];
- }
- }
-
- output-priority-map {
-
- classifier {
-
- premium {
-
- forwarding-class best-effort {
- loss-priority low;
- }
-
- forwarding-class expedited-forwarding {
- loss-priority low;
- }
-
- forwarding-class assured-forwarding {
- loss-priority high;
- }
-
- forwarding-class network-control {
- loss-priority high;
- }
- }
- }
- }
-
- policer policer-1 {
-
- premium {
- bandwidth-limit 100m;
- burst-size-limit 3k;
- }
-
- aggregate {
- bandwidth-limit 200m;
- burst-size-limit 3k;
- }
- }
- }
- }
- }
-
- unit 0 {
-
- accept-source-mac {
-
- mac-address 00:01:02:03:04:05 {
-
- policer {
- input policer-1;
- output policer-1;
- }
- }
- }
- }
- }