丢包问题
配置:
System-view
acl number 3000 //匹配 源192.168.1.1,目的192.168.1.3
rule 0 permit icmp source 192.168.1.1 0 destination 192.168.1.3 0
acl number 3001 //匹配 源192.168.1.3,目的 192.168.1.1
rule 0 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
#
traffic classifier 2 operator and
if-match acl 3001
#
traffic behavior 2
accounting packet
#
qos policy 1
classifier 1 behavior 1
#
qos policy 2
classifier 2 behavior 2
#
interface Ethernet1/0/1
qos apply policy 2 outbound //192.168.1.3→192.168.1.1出端口
qos apply policy 1 inbound //192.168.1.1→192.168.1.3进端口
#
Interface Ethernet1/0/2
qos apply policy 2 inbound //192.168.1.3→192.168.1.1进端口
qos apply policy 1 outbound //192.168.1.1→192.168.1.3出端口
#
在192.168.1.1 ping 192.168.1.3 4个包
C:\Windows\System32>ping 192.168.1.3
正在 Ping 192.168.1.3 具有 32 字节的数据:
来自 192.168.1.3 的回复: 字节=32 时间=2ms TTL=255
来自 192.168.1.3 的回复: 字节=32 时间=1ms TTL=255
来自 192.168.1.3 的回复: 字节=32 时间=1ms TTL=255
来自 192.168.1.3 的回复: 字节=32 时间=1ms TTL=255
查看端口的统计信息结果
[H3C]dis qos policy interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
Direction: Outbound
Policy: 2
Classifier: 2
Operator: AND
Rule(s) : If-match acl 3001
Behavior: 2
Accounting Enable:
4 (Packets)
[H3C]dis qos policy interface Ethernet 1/0/2
Interface: Ethernet1/0/2
Direction: Inbound
Policy: 2
Classifier: 2
Operator: AND
Rule(s) : If-match acl 3001
Behavior: 2
Accounting Enable:
4 (Packets)
Direction: Outbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作