# conf t (config)# monitor session 1 source interface Gi0/3 rx (config)#end #wr #show monitor session 1 如果是對vlan進(jìn)行鏡像 #conf t 進(jìn)入全局模式 鏡像口配置 大多數(shù)交換機都支持鏡像技術(shù),這可以對交換機進(jìn)行方便的故障診斷。我們稱之為“mirroring ”或“Spanning ”。鏡像是將交換機某個端口的流量拷貝到另一端口(鏡像端口),進(jìn)行監(jiān)測。 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 上面命令最后一個參數(shù): both 監(jiān)聽雙向數(shù)據(jù),默認(rèn)為both rx 接收 tx 發(fā)送 Step4: 配置鏡像目的端口 Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6 |
|