as:
1.configure following in switch or router
#
acl advanced 3000
rule permit icmp source 1.1.1.1 0 destination 2.2.2.2 0
rule permit icmp source 2.2.2.2 0 destination 1.1.1.1 0
#
traffic classifier 1 operator and
if-match acl 3000
#
traffic behavior 1
accounting packet //some using [accounting]
#
qos policy 1
classifier 1 behavior 1
#
interface GigabitEthernet1/0/1
qos apply policy 1 inbound
qos apply policy 1 outbound
interface GigabitEthernet1/0/2
qos apply policy 1 inbound
qos apply policy 1 outbound
#
3.Check results in sw or router.
#
-->
Interface: GigabitEthernet1/0/1
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s): If-match acl 3000
Behavior: 1
Accounting enable:10 (Packets)
-->
Interface: GigabitEthernet1/0/
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s): If-match acl 3000
Behavior: 1
Accounting enable:10 (Packets)
QoS policy needs to be applied to the physical interfaces that the traffic passes through.
It cannot be applied to the aggregated interface.
We can use member interfaces statistics to calculate the total number of packets.