端口镜像配置方法:


sys

Enter system view, return to user view with Ctrl+Z.

[Quidway]vlan 2

[Quidway-Vlan2]port g0/2 to g0/3

[Quidway-Vlan2]q

[Quidway]dis vlan 2

VLAN ID: 2

Route Interface: not configured

Tagged Ports: none

Untagged Ports:

GigabitEthernet0/2 GigabitEthernet0/3

[Quidway]interface GigabitEthernet 0/24

[Quidway-GigabitEthernet0/24]port link-type trunk

[Quidway-GigabitEthernet0/24]port trunk permit vlan all

[Quidway-GigabitEthernet0/24]qu

[Quidway]monitor-port g0/24

[Quidway]mirroring-port g0/2 to g0/3

[Quidway]dis mir

Monitor-port:

GigabitEthernet0/24

Mirroring-port:

GigabitEthernet0/2 GigabitEthernet0/3

[Quidway]q

save

This will save the configuration in the EEPROM memory

Are you sure?[Y/N]y

Now saving current configuration to EEPROM memory

Please wait for a while…

Current configuration saved to EEPROM memory successfully

配置完成后,保存将1端口通过普通网线连接2端口,3端口连接上行的路由器,24端口连接日志主机即可。