【学习】华为交换机配置镜像端口

1、配置观察口

observe-port 1 interface GigabitEthernet0/0/1        // 镜像组1,观察口为0/0/1

2、配置镜像口


进入接口,在接口下配置镜像口。
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/10]port-mirroring to observe-port 1 inbound/outbound/both 
 
同时进入多个接口,再配置镜像口。 
 
interface range GigabitEthernet 0/0/2 to GigabitEthernet 0/0/20   
port-mirroring to observe-port 1 inbound/outbound/both

3、验证

display port-mirroring    //查看镜像口
 
display observe-port      //查看观察口