定义端口镜像组,对PC之间的通信报文进行监控,监控端口设置为GigabitEthernet3/1/8

[H3C] mirroring-group 1 inbound gigabitethernet3/1/1 gigabitethernet3/1/2 mirrored-to gigabitethernet3/1/8

[H3C] mirroring-group 2 outbound gigabitethernet3/1/1 gigabitethernet3/1/2 mirrored-to gigabitethernet3/1/8

华为 s3700

[new-beifen]observe-port 1 interface Ethernet 0/0/1   设置观察的端口

[new-beifen]interface Ethernet 0/0/2

[new-beifen-Ethernet0/0/2]port-mirroring to observe-port 1 both 被观察端口