将Gi1/0/1端口的流量镜像到Gi1/0/2,并且允许Gi1/0/2发送数据:
monitor session 1 source interface Gi1/0/1
monitor session 1 destination interface Gi1/0/2 ingress untagged vlan 1
BJ-Switch-2#sh monitor session all
Session 1
---------
Type : Local Session
Source Ports :
Both : Gi1/0/1
Destination Ports : Gi1/0/2
Encapsulation : Native
Ingress : Enabled, default VLAN = 1
Ingress encap : Untagged
转载于:https://blog.51cto.com/yinkai/1205673