您的位置:首页 > 运维架构 > Linux

CISCO 交换机 SPAN设置

2010-05-12 11:50 330 查看
CISCO2950交换机

,
都是默认配置,
24个口,在一个VLAN1里,现在要做一
个端口镜像,将1至23口的所有数据都分到24口,命令如下:

Switch(config

)#monitor
session 1 source interface

fastEthernet 0/1 - 23

Switch(config)#monitor
session 1 destination interface fastEthernet 0/24

-----------------------------------------------------------------------------------

用FastEthernet0/19端口监
视FastEthernet0/24端口.进行的配置如下:

Switch(config)#
monitor session 1 source interface fastEthernet0/24

Switch(config)#
monitor session 1 destination interface fastEthernet0/19

-------------------------------------------------------------------------------------

1. Catalyst
2900XL/3500XL/2950系列交换机端口监听配置

以下命令配置端口监听:

port monitor

例如,F0/1和F0/2、F0/5同属
VLAN1,F0/1监听F0/2、F0/5端口:

interface
FastEthernet0/1

port monitor
FastEthernet0/2

port monitor
FastEthernet0/5

port monitor VLAN1

2. Catalyst
4000,5000,and 6000系列交换机端口监听配置

以下命令配置端口监听:

set span

例如,模块6中端口1和端口2同属
VLAN1,端口3在VLAN2,端口4和5在VLAN2,端口2监听端口1和3、4、5,

set span 6/1,6/3-5
6/2

以下命令禁止端口监听:

set span disable
[dest_mod/dest_port|all]

3.新版的IOS

4507R#configure
terminal

4507R(config)#monitor session 1 source interface fastethernet 4/2

4507R(config)#monitor session 1 destination interface fastethernet 4/3

 

无忧网客联盟专业讨论网络技术,CCNA

CCNP

CCIE

CCSP

文章转载至http://bbs.net527.cn
  无忧网客联盟

无忧linux时代
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息