我配置了远程镜像流量,从核心交换机的G1/3/0/7口接一台电脑抓包,但是抓不到业务流量。
汇聚交换机镜像配置:
<GXLSXY-TSG-2F-S5800>dis mirroring-group all
Mirroring group 1:
Type: Remote source
Status: Active
Mirroring port:
GigabitEthernet1/0/7 Both
Reflector port: GigabitEthernet1/0/17
Remote probe VLAN: 3
对核心放通vlan 3
核心交换机配置:
<LZ-LSXY-HXSW-10508X-G-IRF1&2>dis mirroring-group all
Mirroring group 1:
Type: Remote destination
Status: Active
Monitor port:
GigabitEthernet1/3/0/7
Remote probe VLAN: 3
对汇聚放通vlan 3
我从核心交换机G1/3/0/7口抓包抓不到业务的流量,只抓到一些arp和一些bpdu的包,这是怎么回事?为什么业务流量没有抓到?
Mirroring group 1:
Type: Remote source
Mirroring port: GigabitEthernet1/0/7 Both
Reflector port: GigabitEthernet1/0/17
Remote probe VLAN: 3
vlan 3
name RSPAN_VLAN
undo mac-address learning # 关键!防止镜像报文被转发走
interface GigabitEthernet1/0/17
port link-type trunk
port trunk allow-pass vlan 3
undo stp enable # 必须关 STP
no shutdown
interface GigabitEthernet1/0/7
mirroring-group 1 mirroring-port both
# 注意:源口不要加入 VLAN 3
Mirroring group 1:
Type: Remote destination
Monitor port: GigabitEthernet1/3/0/7
Remote probe VLAN: 3
interface GigabitEthernet1/3/0/7
undo stp enable
interface GigabitEthernet1/3/0/7
port link-type access
port default vlan 3
mirroring-group 1 monitor-port
no shutdown
# 汇聚看镜像统计
display mirroring-group 1
# 核心看镜像统计
display mirroring-group 1
mirroring-layer3 enable(注意:部分高端设备或旧版本可能需要特定的 License 授权)。1# 1. 定义ACL匹配业务流量(例如匹配所有IP流量)
2acl number 3000
3 rule 0 permit ip
4
5# 2. 定义流分类
6traffic classifier BUSINESS
7 if-match acl 3000
8
9# 3. 定义流行为(镜像到镜像组1)
10traffic behavior MIRROR_BUSINESS
11 mirror-to mirroring-group 1
12
13# 4. 定义QoS策略并应用
14qos policy POLICY_MIRROR
15 classifier BUSINESS behavior MIRROR_BUSINESS
16interface GigabitEthernet1/0/7 # 你的业务源端口
17 qos apply policy POLICY_MIRROR inboundGigabitEthernet1/0/7 确实是业务流量经过的端口。Both(双向),这是正确的。确保业务流量确实有从该端口进或出。GigabitEthernet1/3/0/7 上,建议执行 undo stp enable。防止 STP 协议将端口置为阻塞状态,导致部分数据包被丢弃。display interface Vlan-interface 3,查看该 VLAN 接口是否有流量计数在增长,以判断镜像流量是否成功穿越了网络。暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论