H3C交换机配置端口镜像
一、配置本地镜像组
配置思路:
1、在交换机上创建本地镜像组1,指定为local
2、将需要镜像流量的端口加入到镜像组1,指定为mirroring-port
3、选择一个空闲端口作为监控端口,指定为monitor-port
4、查看本地镜像组状态
配置步骤:
#镜像组序号,这里举例为1
mirroring-group 1 local
#连接业务的端口,这里举例为GigabitEthernet0/0/1到GigabitEthernet0/0/21
interface range GigabitEthernet0/0/1 to GigabitEthernet0/0/21
mirroring-group 1 mirroring-port both
#监控端口,这里举例为GigabitEthernet0/0/22
interface GigabitEthernet0/0/22
mirroring-group 1 monitor-port
#
查看本地镜像组:
总结:
1、当同一组镜像端口需要被多个设备监控的时候,则需要创建多个本地镜像组,每个镜像组指定一个监控口,目前测试交换机为H3C S7003E,最多只能配置两个本地镜像组,指定两个监控口。当配置第三个监控口时会提示“Monitor resources are insufficient”,由于设备资源不足,导致做多个本地镜像组提示设备资源不足。
2、配置监控口超过两个时,则需要通过配置远程镜像组实现。
二、配置远程镜像组
配置思路:
1、在交换机上创建远程镜像组2,指定为remote-source
2、将需要镜像流量的端口加入到镜像组2,指定为mirroring-port
3、创建一个VLAN,指定为remote-vlan,将监控端口配置到此VLAN
4、选择一个空闲端口作为反射端口,反射端口不用接线
5、查看远程镜像组的状态
配置步骤:
#镜像组序号,这里举例为2
mirroring-group 2 remote-source
#连接业务的端口,这里举例为GigabitEthernet0/0/1到GigabitEthernet0/0/21
interface range GigabitEthernet0/0/1 to GigabitEthernet0/0/21
mirroring-group 2 mirroring-port both
#远程镜像VLAN,这里举例为1000
vlan 1000
description remote-probe vlan
mirroring-group 2 remote-probe vlan 1000
#监控端口,这里举例为Ten-GigabitEthernet1/0/15和Ten-GigabitEthernet1/0/16
interface Ten-GigabitEthernet1/0/15 to Ten-GigabitEthernet1/0/16
port link-type access
port access vlan 1000
#反射端口,会提示该端口的配置会全部被删除,这里举例为Ten-GigabitEthernet1/0/14
interface Ten-GigabitEthernet1/0/14
mirroring-group 2 reflector-port
This operation may delete all settings made on the interface. Continue? [Y/N]: y
#
查看远程镜像组:
总结:
- 配置远程镜像组可以实现同一组镜像端口镜像到多个监控口,不需要创建多个镜像组。
- 需要使用一个空闲端口作为反射端口,该端口的配置会全部被删除。