大佬你好 mirroring都设置了 both ragg2 input和output都有流量 monitor端口是up的 mirroring group是 ative的 RAGG2是三层接口 我设置monitor的接口也需要时三层的 没法设置vlan
我刚才试了一下 不设置both,只设置inbound 目的端口没流量 设置 outbound 目的端口就有流量 ,但好似源端口 input和output都有流量
貌似镜像源端口不用聚合组成员接口,直接用聚合组接口就好了。。
both(双向)镜像的情况下,monitor 口只能抓到出流量而抓不到回流量,通常是由于镜像方向未完全覆盖或者回程流量走了三层转发路径导致的。both,但建议再次仔细核对配置。在部分老版本或特定场景下,可能默认只生效了单向。display mirroring-group all 命令。Both。如果显示的是 Inbound(入方向)或 Outbound(出方向),说明没有生效双向。1mirroring-group [镜像组编号] mirroring-port [你的源端口号] bothboth 或 Outbound 流量,就能完整捕获到回程包了。
S3620 对聚合口(RAGG2)做镜像,只出不进,90% 是:①没在聚合口下配置 mirroring-port both;②monitor 口与源口不在同一广播域 / 被隔离;③旧版本芯片对聚合回程镜像有 bug。
下面按 “先查配置→再查流量→最后改法” 一步步来,直接照着敲。
一、先确认当前镜像配置(必查)
bash
运行
display port-mirroring
display interface RAGG2
display interface GigabitEthernet 1/0/X # 你的monitor口
你要看到:
镜像组类型:local
源:RAGG2(或其成员口)方向 both
目的:monitor-port 正确,状态 UP
常见错:
只在成员口配了 both,聚合口 RAGG2 没配 both → 回程不走成员,走聚合,镜像不到。
写成 inbound 或 outbound,不是 both。
二、S3620 + 聚合口 正确镜像配置(重点)
bash
运行
system-view
# 1. 创建本地镜像组(用1就行)
mirroring-group 1 local
# 2. 把聚合口 RAGG2 设为源,双向 both(关键!)
interface RAGG2
mirroring-group 1 mirroring-port both
undo shutdown
# 3. 把monitor口设为目的(假设是 1/0/24)
interface GigabitEthernet 1/0/24
mirroring-group 1 monitor-port
port link-type access
port access vlan 1 # 和RAGG2所在VLAN一致
undo stp enable # 镜像口不要开STP
undo shutdown
quit
save
注意:必须在 RAGG2 接口下配 both,只配成员口不够,回程流量走聚合口。
三、为什么只有出、没有回(核心原因)
回程流量走三层 / 聚合转发,不走成员口
你 “下联走成员、上联走聚合”,回程从 WAN 回来是进 RAGG2 聚合口,不是进成员口;
只在成员口配 both → 聚合口入方向没镜像 → 回流量抓不到。
monitor 口和源口不在同一 VLAN / 被隔离
monitor 口如果是默认 VLAN1,而 RAGG2 在其他 VLAN,镜像报文被 VLAN 隔离丢弃 → 只有出(egress 不检查 VLAN),没有回(ingress 被拦)。
S3620 老版本镜像 bug
早期版本(V5 早期)对 聚合口 ingress 镜像丢包 / 不复制,升级到 V5.20.17 及以上 可解决。
monitor 口带宽被占满
上联 WAN 回包大,1G monitor 口被打满 → 只复制小包(出),大包(回)被丢弃。
四、立刻生效的调整步骤(按顺序)
1. 聚合口补全 both(最关键)
bash
运行
interface RAGG2
mirroring-group 1 mirroring-port both
2. monitor 口加入 RAGG2 所在 VLAN
bash
运行
interface GigabitEthernet 1/0/24
port access vlan X # X 是 RAGG2 所在VLAN
undo stp enable
3. 关闭 monitor 口的隔离 / 安全策略
bash
运行
interface GigabitEthernet 1/0/24
undo port-isolate enable
undo dot1x authentication method eap
4. 升级版本(如果上面都不行)
S3620 升级到 Release 5309P15+,解决聚合 ingress 镜像丢包问题。
五、验证是否正常
bash
运行
display port-mirroring
# 看:RAGG2 both,monitor-port 正确
display interface RAGG2
# Input(total)、Output(total) 都在涨
display interface GigabitEthernet 1/0/24
# Input(mirror) 有流量增长 → 回流量抓到了
一句话总结:S3620 聚合镜像,源必须配在聚合口上 both,monitor 口同 VLAN、关 STP、无隔离;还不行就升级版本。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
貌似镜像源端口不用聚合组成员接口,直接用聚合组接口就好了。。