H3C交换机镜像的几种方法

H3C交换机镜像的几种方法

基于端口镜像:
[H3C]mirroring-group 1 local      #创建镜像组编号
[H3C]mirroring-group 1 monitor-port GigabitEthernet 1/0/1     #镜像组1的镜像观察口
[H3C]mirroring-group 1 mirroring-port GigabitEthernet 1/0/2 to GigabitEthernet 1/0/3 both       #流量镜像口

基于vlan镜像:
方法1:
[H3C]mirroring-group 1 local
[H3C]interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]port link-mode route     #将接口改成3层模式
[H3C]mirroring-group 1 monitor-port GigabitEthernet 1/0/1
[H3C]mirroring-group 1 mirroring-port Vlan-interface 2 to Vlan-interface 3 both

方法2:
[H3C-classifier-ca]if-match service-vlan-id 2 to 3
[H3C-behavior-cb]mirror-to interface GigabitEthernet 1/0/1
[H3C-behavior-cb]quit
[H3C]qos policy cp
[H3C-qospolicy-cp]classifier ca behavior cb
[H3C-qospolicy-cp]quit
[H3C]qos vlan-policy cp vlan 2 to 3 inbound

你可能感兴趣的:(H3C产品系列)