交换机端口镜像配置指南
本地端口镜像示意图
交换机B将镜像端口g0/0/1的流量发送到观察端口g0/0/2;
本地端口镜像配置
# 在Switch上配置接口GE0/0/2为本地观察端口。
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] observe-port 1 interface gigabitethernet 0/0/2
# 在Switch上配置接口GE0/0/1为镜像端口,将其入方向和出方向的流量绑定到本地观察端口。
[Switch] interface gigabitethernet 0/0/1
[Switch-GigabitEthernet0/0/1] port-mirroring to observe-port 1 both
[Switch-GigabitEthernet0/0/1] return