# 在源交换机(被监控流量流经的设备)上配置
system-view
# 创建远程镜像组1
mirroring-group 1 remote-source
# 为远程镜像组1指定RSPAN VLAN
mirroring-group 1 remote-probe vlan 10
# 配置源端口(例如监控G1/0/1的入向流量)
mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 inbound
# 配置反射端口(用于将镜像流量送入RSPAN VLAN,必须为Access口)
interface GigabitEthernet 1/0/24
port link-type access
port access vlan 10
mirroring-group 1 reflector-port# 在目的交换机(连接监控设备的交换机)上配置
system-view
# 创建远程镜像组1(组编号需与源端对应)
mirroring-group 1 remote-destination
# 指定该组使用的RSPAN VLAN
mirroring-group 1 remote-probe vlan 10
# 配置目的端口(连接抓包服务器的端口,必须为Access口)
interface GigabitEthernet 1/0/10
port link-type access
port access vlan 10
mirroring-group 1 monitor-port# 查看所有镜像组的摘要信息
display mirroring-group all
# 查看指定远程镜像组的详细配置
display mirroring-group 1 remotedisplay mirroring-group命令查看设备的实际能力,或查阅对应型号的官方产品手册。
| 镜像组类型 | 最大支持数量 | 说明 |
|---|---|---|
| 镜像组总数 | 8 | 所有类型镜像组的总和上限 |
| 远程源镜像组 (Mirroring-group X remote-source) | 2 | 用于将流量反射到远程镜像 VLAN,跨交换机传输 |
| 远程目的镜像组 (Mirroring-group X remote-destination) | 2 | 用于在接收端解封装远程镜像 VLAN 的流量 |
| 本地镜像组 (Mirroring-group X local) | 剩余名额 | 源和目的都在同一台设备上 |
remote-source 组,指定源端口和反射口 (Reflector Port),流量被复制到指定的远程镜像 VLAN。remote-destination 组,指定远程镜像 VLAN 和监控端口 (Monitor Port)。Mirroring setting failed,除了数量超限外,还可能是:暂无评论
一般来说单板出入方向镜像资源总共有4个(包括流镜像和镜像组),镜像资源占用计算如下:
1. 流镜像:查看behavior中配置了多少个mirror-to interface,每个mirror-to占用1个资源
2. 镜像组:查看每个镜像组的mirror-port在哪个槽位,并且每个方向占用1个资源
Remote probe VLAN: 3100
暂无评论
# 创建远程源镜像组1
mirroring-group 1 remote-source
# 配置源端口
mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 both
# 配置远程镜像VLAN
mirroring-group 1 remote-probe vlan 100
# 配置反射端口
mirroring-group 1 reflector-port GigabitEthernet 1/0/24
display mirroring-group all # 查看所有镜像组暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论