组了内外网并用,电脑ping两个接出口网关,有一个可ping通,有一个ping不能
(0)
流量统计看看包是谁丢的
端口流量统计
配置设备的流量统计,对端口的进出数据包进行统计
交换机上配置:
#
acl number 3000 //匹配
rule 0 permit icmp source 192.168.1.1 0 destination 192.168.1.3 0
acl number 3001 //匹配 源192.168.1.3
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出端口
#
Ping之前直接要先清空设备接口的统计:
<H3C>Reset counters interface
在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
来自 192.168.1.3 的回复: 字节=32
来自 192.168.1.3 的回复: 字节=32
来自 192.168.1.3 的回复: 字节=32
[H3C]dis qos policy interface Ethernet 1/0/1
Interface: Ethernet1/0/1 //在1端口的进方向收到4个包
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
Direction: Outbound //在1端口的出方向发出4个包
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 //在2端口的进方向收到4个包
Direction: Inbound
Policy: 2
Classifier: 2
Operator: AND
Rule(s) : If-match acl 3001
Behavior: 2
Accounting Enable:
4 (Packets)
Direction: Outbound //在2端口的出方向发出4个包
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论