# 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進(jìn)行鏡像
#conf t 進(jìn)入全局模式
(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
鏡像口配置
大多數交換機都支持鏡像技術(shù),這可以對交換機進(jìn)行方便的故障診斷。我們稱(chēng)之為“mirroring ”或“Spanning ”。鏡像是將交換機某個(gè)端口的流量拷貝到另一端口(鏡像端口),進(jìn)行監測。 Cisco3550可以配置2個(gè)鏡像口
案例:將端口2~5鏡像到端口6
1、鏡像口配置
Switch>enable
Switch#conf t
Step3: 配置鏡像源,可以是端口也可以是Vlan
Switch(config)#monitor session 1 source interface gigabitEthernet 0/2 - 5 rx
上面命令最后一個(gè)參數: both 監聽(tīng)雙向數據,默認為both rx 接收 tx 發(fā)送
Step4: 配置鏡像目的端口
Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6
聯(lián)系客服