交换机上做流量统计参考方法如下:
acl number 3000 Rule permit ip source 源IP地址 destination 目的IP地址 traffic classifier test if-match acl 3000 traffic behavior test statistic enable traffic policy test classfier test behavior test interface gi xxx traffic-policy test inbound/outbound
查看统计结果命令:
display traffic policy statistics interface GigabitEthernet xxx inbound display traffic policy statistics interface GigabitEthernet xxx outbound