华为交换机配置端口镜像

端口镜像配置

[sw002]observe-port 1 interface g0/0/2 //配置观察口
[sw002]interface g0/0/1
[sw002-GigabitEthernet0/0/1]port-mirroring to observe-port 1 both //配置镜像端口

interface GigabitEthernet0/0/1
description $JingXiangKou$
port link-type trunk
port trunk pvid vlan 999
port trunk allow-pass vlan 8 to 10 999
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound
//查看了此端口的配置。
[sw002]display observe-port //查看配置
----------------------------------------------------------------------
Index : 1
Interface: GigabitEthernet0/0/2
Used : 2
----------------------------------------------------------------------

<sw002>display port-mirroring //查看配置
Port-mirror:
----------------------------------------------------------------------
Mirror-port Direction Observe-port
----------------------------------------------------------------------
GigabitEthernet0/0/1 Both GigabitEthernet0/0/2
----------------------------------------------------------------------
<sw002>

原文地址:https://www.cnblogs.com/jingjiaming/p/14372731.html