资源描述:
《CISCO交换机端口镜像配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、CISCO交换机端口镜像配置[]CISCO交换机端口镜像配置先解释一下端口镜像:端口镜像简单的说,就是把交换机一个(数个)端口(源端口)的流量完全拷贝一份,从另外一个端口(目的端口)发出去,以便网络管理人员从目的端口通过分析源端口的流量来找出网络存在问题的原因。cisco的端口镜像叫做SWITCHEDPORTANALYZER,简称SPAN(仅在IOS系统中,下同),因此,端口镜像仅适用于以太网交换端口。Cisco的SPAN分成三种,SPAN、RSPAN和VSPAN,简单的说,SPAN是指源和目的端口都在同一台机器上、RSPAN指目的和源不在同一交换机上,VSPAN可
2、以镜像整个或数个VLAN到一个目的端口。配置方法:1.SPAN(1)创建SPAN源端口monitorsessionsession_numbersourceinterfaceinterface-id[,
3、-][both
4、rx
5、tx]monitorsession1sourceinterfaceGi1/0/3-23monitorsession2sourceinterfaceGi1/0/24**session_number,SPAN会话号,我记得3550支持的最多本地SPAN是2个,即1或者2。**interface-id[,
6、-]源端口接口号,即被镜像的端口,交换机会把这
7、个端口的流量拷贝一份,可以输入多个端口,多个用“,”隔开,比如我的3750G设置:先查询镜像端口:>showinterfaceGigabitEthernet1/0/1isdown,lineprotocolisdown(monitoring)HardwareisGigabitEthernet,addressis001b.53d1.f681(bia001b.53d1.f681)MTU1500bytes,BW1000000Kbit,DLY10usec, reliability255/255,txload1/255,rxload1/255EncapsulationAR
8、PA,loopbacknotsetKeepaliveset(10sec)Auto-duplex,Auto-speed,mediatypeis10/100/1000BaseTXinputflow-controlisoff,outputflow-controlisunsupportedARPtype:ARPA,ARPTimeout04:00:00Lastinputnever,output01:24:41,outputhangneverLastclearingof"showinterface"countersneverInputqueue:0/75/0/0(size/ma
9、x/drops/flushes);Totaloutputdrops:0Queueingstrategy:fifoOutputqueue:0/40(size/max)5minuteinputrate0bits/sec,0packets/sec5minuteoutputrate0bits/sec,0packets/sec 0packetsinput,0bytes,0nobuffer Received0broadcasts(0multicast) 0runts,0giants,0throttles 0inputerrors,0CRC,0frame,
10、0overrun,0ignored 0watchdog,0multicast,0pauseinput 0inputpacketswithdribbleconditiondetected 45270775packetsoutput,3124068592bytes,0underruns 0outputerrors,0collisions,1interfaceresets 0babbles,0latecollision,0deferred 0lostcarrier,0nocarrier,0PAUSEoutput 0outputbu
11、fferfailures,0outputbuffersswappedoutGigabitEthernet1/0/2isup,lineprotocolisdown(monitoring)HardwareisGigabitEthernet,addressis001b.53d1.f682(bia001b.53d1.f682)MTU1500bytes,BW1000000Kbit,DLY10usec, reliability255/255,txload25/255,rxload1/255EncapsulationARPA,loopbacknotsetKeepaliv