查看: 2675|回复: 5

请问如何在2960中做镜像?

[复制链接]
发表于 2008-11-18 21:52:23 | 显示全部楼层 |阅读模式
请问如何在2960中做镜像?
如何一次将所有端口镜像为某一个端口?
回复

使用道具 举报

发表于 2008-11-18 22:51:24 | 显示全部楼层
我用的交换机就是思科2960
Catalyst 2960 Switch Software Configuration Guide (LAN Lite Image), Rel 12.2(37)EY的Configuring SPAN一章讲到:
monitor session 1 source int f0/1   --源端口
monitor session 1 destination int f0/24  --目标端口
关于source,书中讲到:
A single session can include multiple sources (ports or
VLANs), defined in a series of commands, but you cannot
combine source ports and source VLANs in one session.

[, | -] Specify a series or range of interfaces. Enter a space
before and after the comma; enter a space before and after the
hyphen.

我用上联端口做源端口,明天试试a range of interface 或vlan 1
回复

使用道具 举报

发表于 2008-11-19 08:54:09 | 显示全部楼层
1、用vlan做source
office13(config)#monitor session 1 source vlan 1
office13(config)#exit
office13#sh monitor session 1
Session 1
---------
Type                   : Local Session
Source VLANs           :
    Both               : 1
Destination Ports      : Fa0/6
    Encapsulation      : Native
          Ingress      : Disabled
office13#
抓的包

2、用a range of interfaces做source
office13(config)#monitor session 1 source interface fastEthernet 0/7 - 22
office13(config)#exit
office13#sh monitor session 1
Session 1
---------
Type                   : Local Session
Source Ports           :
    Both               : Fa0/7-22
Destination Ports      : Fa0/6
    Encapsulation      : Native
          Ingress      : Disabled
office13#
抓的包

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?CSNA会员注册

×
回复

使用道具 举报

 楼主| 发表于 2008-11-19 13:29:47 | 显示全部楼层
谢谢大大!
但你好像没有指定目的端口?
回复

使用道具 举报

发表于 2008-11-19 13:35:15 | 显示全部楼层
呵呵,很仔细
原来就有一个monitor session 1 的配置
我no掉source那句,修改为vlan或int range,destination那句保留没变
回复

使用道具 举报

发表于 2008-11-19 19:39:57 | 显示全部楼层
看看 学习了····
回复

使用道具 举报

您需要登录后才可以回帖 登录 | CSNA会员注册

本版积分规则

快速回复 返回顶部 返回列表