在一个二层网络中,SW1、SW2、SW3及监控设备如上图所示连接。
其中,SW1通过端口GigabitEthernet1/0/2和GigabitEthernet1/0/3分别连接PC1和PC2。
SW1 作为镜像源设备,SW2 作为镜像中间设备,SW3 作为镜像目的设备
通过配置二层远程端口镜像,使监控设备可以监控所有进、出市场部的报文。
<SW1> system-view
[SW1] mirroring-group 1 remote-source
[SW1] vlan 2
[SW1-vlan2] undo mac-address mac-learning enable
[SW1-vlan2] quit
[SW1] mirroring-group 1 remote-probe vlan 2 //远程镜像VLAN
[SW1] mirroring-group 1 mirroring-port gigabitethernet 1/0/2 bo