ImageVerifierCode 换一换
格式:DOC , 页数:5 ,大小:32.50KB ,
资源ID:9868929      下载积分:10 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.docduoduo.com/d-9868929.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(CISCO交换机端口镜像配置.doc)为本站会员(精品资料)主动上传,道客多多仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知道客多多(发送邮件至docduoduo@163.com或直接QQ联系客服),我们立即给予删除!

CISCO交换机端口镜像配置.doc

1、CISCO交换机端口镜像配置CISCO交换机端口镜像配置 先解释一下端口镜像:端口镜像简单的说,就是把交换机一个(数个)端口(源端口)的流量完全拷贝一份,从另外一个端口(目的端口)发 出去,以便网络管理人员从目的端口通过分析源端口的流量来找出网络存在问题的原因。 cisco的端口镜像叫做SWITCHED PORT ANALYZER,简称SPAN(仅在IOS系统中,下同),因此,端口镜像仅适用于以太网交换端口。Cisco的SPAN 分成三种,SPAN、RSPAN和VSPAN,简单的说,SPAN是指源和目的端口都在同一台机器上、RSPAN指目的和源不在同一交换机上,VSPAN可以镜像 整个或数个V

2、LAN到一个目的端口。 配置方法: 1. SPAN (1) 创建SPAN源端口 monitor session session_number source interface interface-id , | - both | rx | tx monitor session 1 source interface Gi1/0/3 - 23 monitor session 2 source interface Gi1/0/24*session_number,SPAN会话号,我记得3550支持的最多本地SPAN是2个,即1或者2。 *interface-id , | -源端口接口号,即被镜像的端口,

3、交换机会把这个端口的流量拷贝一份,可以输入多个端口,多个用“,”隔开, 比如我的3750G 设置:先查询镜像端口:show interfaceGigabitEthernet1/0/1 is down, line protocol is down (monitoring)Hardware is Gigabit Ethernet, address is 001b.53d1.f681 (bia 001b.53d1.f681)MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1

4、/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Auto-duplex, Auto-speed, media type is 10/100/1000BaseTXinput flow-control is off, output flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00Last input never, output 01:24:41, output hang neverLast clearing of “show interface

5、“ counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0Queueing strategy: fifoOutput queue: 0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts (0 multicast)

6、0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog, 0 multicast, 0 pause input0 input packets with dribble condition detected45270775 packets output, 3124068592 bytes, 0 underruns0 output errors, 0 collisions, 1 interface resets0 babbles, 0 late collision, 0

7、 deferred0 lost carrier, 0 no carrier, 0 PAUSE output0 output buffer failures, 0 output buffers swapped outGigabitEthernet1/0/2 is up, line protocol is down (monitoring)Hardware is Gigabit Ethernet, address is 001b.53d1.f682 (bia 001b.53d1.f682)MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec, reliabili

8、ty 255/255, txload 25/255, rxload 1/255Encapsulation ARPA, loopback not setKeepalive set (10 sec)Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTXinput flow-control is off, output flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00Last input never, output 00:27:32, output hang neve

9、rLast clearing of “show interface“ counters neverInput queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0Queueing strategy: fifoOutput queue: 0/40 (size/max)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 101566000 bits/sec, 13900 packets/sec0 packets input, 0 bytes, 0

10、 no bufferReceived 0 broadcasts (0 multicast)0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored0 watchdog, 0 multicast, 0 pause input0 input packets with dribble condition detected56333567 packets output, 4143302191 bytes, 0 underruns0 output errors, 0 collisions, 1 i

11、nterface resets0 babbles, 0 late collision, 0 deferred0 lost carrier, 0 no carrier, 0 PAUSE output0 output buffer failures, 0 output buffers swapped out我们用端口镜像1来镜像3-23号端口,镜像端口来镜像24号端口:monitor session 1 source interface Gi1/0/3 - 23monitor session 1 destination interface Gi1/0/1monitor session 2 sour

12、ce interface Gi1/0/24monitor session 2 destination interface Gi1/0/2连续的用“-”连接。 *both | rx | tx,可选项,是指拷贝源端口双向的(both)、仅进入(rx)还是仅发出(tx)的流量,默认是both。 (2)创建SPAN目的端口 monitor session session_number destination interface interface-id encapsulation dot1q ingress vlan vlan id | ISL monitor session 1 destinatio

13、n interface Gi1/0/1monitor session 2 destination interface Gi1/0/2ingress | ingress vlan vlan id *一样的我就不说了。 *session_number要和上面的一致。 *interface-id目的端口,在源端口被拷贝的流量会从这个端口发出去,端口号不能被包含在源端口的范围内。 *encapsulation dot1q | isl,可选,指被从目的端口发出去时是否使用802.1q和isl封装,当使用802.1q时,对于本地VLAN不进行封 装,其VLAN封装,ISL则全部封装。 2.VSPAN (1

14、)创建VSPAN源VLAN monitor session session_number source vlan vlan-id , | - rx *一样的也不说了,基本和SPAN相同,只是接口号变成了VLAN号,而且只能镜像接收的流量。 (2)创建VSPAN目的端口 monitor session session_number destination interface interface-id encapsulation dot1q | isl *和SPAN的一样。 3.RSPAN RSPAN的配置较为复杂,其流程可以这样来看,交换机把要镜像的端口流量复制一份,然后发到本机的一个反射端口上

15、(reflector-port ) ,在由反射端口将其通过网络转发到目的交换机中的VLAN上(一般情况下,这个VLAN是专为镜像而设的,不要作为客户端接入所用),再在目 的交换机中配置VSPAN,将该VLAN的流量镜像到目的端口,要注意的是,一旦这种RSPAN被使用,该镜像专用VLAN的信息会被转发到所有的VLAN 主干上,造成网络带宽的浪费,因此要配置VLAN修剪(pruning),另外RSPAN也可以镜像VLAN。 (1)在源交换机上创建RSPAN源端口 *同SPAN或VSPAN (2)在源交换机上创建VSPAN反射端口和目的VLAN monitor session session_num

16、ber destination remote vlan vlan-id reflector-port interface *vlan-id 目的交换机上转为镜像而设的VLAN *reflector-port interface源交换机上的镜像端口 (3)在目的交换机上创建VSPAN源VLAN monitor session session_number source remote vlan vlan-id *vlan-id就是上面的镜像专用VLAN (4)在目的交换机上创建VSPAN目的端口 monitor session session_number destination interfac

17、e interface-id encapsulation dot1q | isl *同SPAN 4.其他 (1)端口镜像的过滤,端口镜像是可以做Filter的。 monitor session session_number filter vlan vlan-id , | - *指定源端口进入的流量中,属于哪些VLAN的可以从目的端口发出去。 (2)删除镜像 no monitor session session_number | all | local | remote *session_number指定会话号,all是所有镜像,local是本地镜像,remote是远程镜像。 (3)镜像的目的端口不能正常收发数据,因此不能再作为普通端口使用,可以连接一些网络分析和安全设备,例如装有sniifer的计算机或者Cisco IDS设备。

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报