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
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!