华为交换机端口镜像

1. 配置观察端口
# 在Switch上配置接口GE0/0/2为本地观察端口。
<HUAWEI> system-view
[HUAWEI] sysname Switch
[Switch] observe-port 1 interface gigabitethernet 0/0/2 //这个口接电脑,wireshark抓包
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

猜你喜欢

转载自www.cnblogs.com/lancekk/p/8931040.html