H3C配置远程端口镜像

(1) 配置源交换机(Switch A)

创建远程源镜像组。

system-view

[Sysname] mirroring-group 1 remote-source

配置远程镜像VLAN。

[Sysname] vlan 10

[Sysname-vlan10] remote-probe vlan enable

[Sysname-vlan10] quit

为远程源镜像组配置源端口、反射口和远程镜像VLAN。

[Sysname] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 inbound

[Sysname] mirroring-group 1 reflector-port Ethernet 1/0/4

[Sysname] mirroring-group 1 remote-probe vlan 10

配置端口Ethernet 1/0/3的链路类型为Trunk端口,允许VLAN 10的报文通过。

[Sysname] interface Ethernet 1/0/3

[Sysname-Ethernet1/0/3] port link-type trunk

[Sysname-Ethernet1/0/3] port trunk permit vlan 10

(2) 配置中间交换机(Switch B)

创建远程镜像VLAN。

system-view

[Sysname] vlan 10

[Sysname-vlan10] remote-probe vlan enable

[Sysname-vlan10] quit

配置端口Ethernet 1/0/1的链路类型为Trunk端口,允许VLAN 10的报文通过。

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] port link-type trunk

[Sysname-Ethernet1/0/1] port trunk permit vlan 10

配置端口Ethernet 1/0/2的链路类型为Trunk端口,允许VLAN 10的报文通过。

[Sysname] interface Ethernet 1/0/2

[Sysname-Ethernet1/0/2] port link-type trunk

[Sysname-Ethernet1/0/2] port trunk permit vlan 10

(3) 配置目的交换机(Switch C)

创建远程目的镜像组。

system-view

[Sysname] mirroring-group 1 remote-destination

配置远程镜像VLAN。

[Sysname] vlan 10

[Sysname-vlan10] remote-probe vlan enable

[Sysname-vlan10] quit

为远程目的镜像组配置目的端口和远程镜像VLAN。

[Sysname] mirroring-group 1 monitor-port Ethernet 1/0/2

[Sysname] mirroring-group 1 remote-probe vlan 10

配置端口Ethernet 1/0/1的链路类型为Trunk端口,允许VLAN 10的报文通过。

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] port link-type trunk

[Sysname-Ethernet1/0/1] port trunk permit vlan 10
1.2.5 完整配置

l 源交换机(Switch A)上的配置

mirroring-group 1 remote-source

vlan 10

remote-probe vlan enable

interface Ethernet1/0/1

mirroring-group 1 mirroring-port inbound

interface Ethernet1/0/2

mirroring-group 1 mirroring-port inbound

interface Ethernet1/0/3

port link-type trunk

port trunk permit vlan 1 10

interface Ethernet1/0/4

duplex full

speed 100

mirroring-group 1 reflector-port

mirroring-group 1 remote-probe vlan 10

中间交换机(Switch B)上的配置

vlan 10

remote-probe vlan enable

interface Ethernet1/0/1

port link-type trunk

port trunk permit vlan 1 10

interface Ethernet1/0/2

port link-type trunk

port trunk permit vlan 1 10

目的交换机(Switch C)上的配置

mirroring-group 1 remote-destination

vlan 10

remote-probe vlan enable

interface Ethernet1/0/1

port link-type trunk

port trunk permit vlan 1 10

interface Ethernet1/0/2

port access vlan 10

mirroring-group 1 monitor-port

你可能感兴趣的:(H3C配置远程端口镜像)