1、拓扑图
电脑IP:192.168.1.2/24 LSW1接口IP:192.168.1.1/24,使用流量统计,对报文丢弃原因可以快速定位。
2、流量统计ACL配置方法
#
acl number 3000
rule 5 permit icmp source 192.168.1.2 0 destination 192.168.1.1 0
rule 10 permit icmp source 192.168.1.1 0 destination 192.168.1.2 0
#
traffic classifier liutong operator and /////流分类
if-match acl 3000
#
traffic behavior liutong /////流行为
statistic enable
#
traffic policy liutong /////流策略
classifier liutong behavior liutong
#
3、端口配置:
#
interface Vlanif10
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
traffic-policy liutong inbound /////进方向
traffic-policy liutong outbound //////出方向
#
4、报文查看:
display traffic policy statistics interface GigabitEthernet 0/0/1 outbound
display traffic policy statistics interface GigabitEthernet 0/0/1 inbound
5、清除端口下报文统计数
resettraffic policy statistics interface GigabitEthernet 0/0/1 inbound
resettraffic policy statistics interface GigabitEthernet 0/0/1 outbound
---------------------
作者:许多123
来源:CSDN
原文:https://blog.csdn.net/xu119718/article/details/68060098
版权声明:本文为博主原创文章,转载请附上博文链接!