H3C 端口镜像 ¶
#H3C #端口镜像
同一台设备且存在多个目的(monitor-port)端口 ¶
思路:采用远程镜像模式
创建远程镜像组 ¶
system-view
mirroring-group 1 remote-source
# 创建VLAN 2,该VLAN为镜像流量传输VLAN
vlan 2
quit
# 为远程源镜像组配置远程镜像VLAN、源端口和反射口。
mirroring-group 1 remote-probe vlan 2
mirroring-group 1 mirroring-port ethernet 1/1 inbound
mirroring-group 1 reflector-port ethernet 1/2
# 将相关端口加入远程镜像VLAN,则该端口可以接受镜像组流量
interface ethernet 1/3
port access vlan 2
interface ethernet 1/4
port access vlan 2
反射口不能连接网线
路由器和防火墙配置流量镜像 ¶
# 配置需镜像的流量
acl basic 2001
description AnySource
rule 5 permit
accelerate
# 配置流行为并设置镜像口:流量镜像
traffic behavior mirror-group1
mirror-to interface Ten-GigabitEthernet2/0/11
# 配置需要镜像的流量
traffic classifier any operator and
if-match acl 2001
# 配置QoS策略
qos policy qos-mirror
classifier any behavior mirror-group1
# 在端口上应用QoS策略
interface Ten-GigabitEthernet2/0/22
port link-mode route
qos apply policy qos-mirror inbound
qos apply policy qos-mirror outbound
...
#
检查QoS策略转发的数据包
dis qos policy interface
评论
请登录后发表评论。
暂无评论。成为第一个评论者!