从计算机ping服务器,有丢包,我们配置流量统计来测试一下
流量统计的配置见下:
配置acl匹配ping测试的源目地址
acl advanced 3000
匹配 源192.168.1.1,目的192.168.1.3
rule permit icmp source 192.168.1.1 0 destination 192.168.1.3 0
匹配 源192.168.1.3,目的 192.168.1.1
rule permit icmp source 192.168.1.3 0 destination 192.168.1.1 0
traffic classifier 1 operator and
if-match acl 3000
traffic behavior 1
accounting packet
qos policy 1
classifier 1 behavior 1
#分别在连接服务和计算机的出入方向调用qos策略
interface G1/0/1
qos apply policy 1 inbound
qos apply policy 1 outbound
interface G1/0/2
qos apply policy 1 inbound
qos apply policy 1 outbound
配置完成之后先分别
dis qos policy interface G1/0/1
和
dis qos policy interface G1/0/2
记住 (Packets)数值
然后让计算机ping 服务器(大包)记录ping的次数,直到出现1-3次丢包的情况,停止ping动作
#最后再查看流统结果,看**(Packets)**位置统计报文个数是否一致。
[H3C]dis qos policy interface G1/0/1
Interface: GigabitEthernet1/0/1
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
[H3C]dis qos policy interface G1/0/2