device# configure terminal
device(config)# interface ethernet 1/40
device(config-if-eth-1/40)# service-policy out policyMap1
device(config-if-eth-1/40)# service-policy in policyMap1
device(config-if-eth-1/40)# end
device# show policy-map interface ethernet 1/40 Ingress Direction : Policy-Map policyMap1 Class class_1 matches 0 packets Police cir 40000 cbs 5000 eir 40000 ebs 3000 conform-tc 6 exceed-tc 2 conform-dscp 61 exceed-dscp 63 Stats: Operational cir:39856 cbs:5000 eir:39856 ebs:3000 Conform Byte:0 Exceed Byte:0 Violate Byte:0 Egress Direction : Policy-Map policyMap1 Class class_1 matches 0 packets Police cir 40000 cbs 5000 eir 40000 ebs 3000 conform-tc 6 exceed-tc 2 conform-dscp 61 exceed-dscp 63 Stats: Operational cir:39856 cbs:5000 eir:39856 ebs:3000 Conform Byte:0 Exceed Byte:0 Violate Byte:0
Note
Egress policer is not supported on SLX 9150/Extreme 8520 devices. The police command affects only the CIR.device# copy running-config startup-config
device# configure terminal device(config)# interface ethernet 1/40 device(conf-if-eth-1/40)# service-policy out policyMap1 device(conf-if-eth-1/40)# service-policy in policyMap1 device(conf-if-eth-1/40)# end device# show policy-map interface ethernet 1/40 device# copy running-config startup-config