# conf t
(config)# monitor session 1 source interface Gi0/3 rx
(config)# monitor session 1 destination interface Gi0/18
(config)#end
#wr
#show monitor session 1
如果是对vlan进行镜像
#conf t 进入全局模式
(config)#monitor session 1 source vlan 3 - 10 rx 监控vlan 3 -10
(config)#monitor session 1 destination int gi0/24 把信息复制到Gi0/24
(config>#end 返回
#show monitor
镜像口配置
大多数交换机都支持镜像技术,这可以对交换机进行方便的故障诊断。我们称之为“mirroring ”或“Spanning ”。镜像是将交换机某个端口的流量拷贝到另一端口(镜像端口),进行监测。 Cisco3550可以配置2个镜像口
案例:将端口2~5镜像到端口6
1、镜像口配置
Switch>enable
Switch#conf t
Step3: 配置镜像源,可以是端口也可以是Vlan
Switch(config)#monitor session 1 source interface gigabitEthernet 0/2 - 5 rx
上面命令最后一个参数: both 监听双向数据,默认为both rx 接收 tx 发送
Step4: 配置镜像目的端口
Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6
联系客服