标题: [交换技术] 交换机SPAN技术简介+Cisco配置示例 (三) (查看:530 回复:0)
dongjun8899
版主

路由交换


现役斑竹  
UID 537104
精华 2
积分 151
帖子 2121
MST币 5486 点    
BST币 151 点    赚取
阅读权限 180
注册 2007-6-29
来自 四季常春
状态 离线
 
[ 使用道具 ]  
发表于 2007-10-9 13:15  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友QQ
交换机SPAN技术简介+Cisco配置示例 (三)
本帖发表在我是网管论坛,帖子地址:http://bbs.54master.com/201482,1,1
四、SPAN和RSPAN的配置举例  SPAN的限制和缺省设置
  Catalyst 3550交换机上最多只能设置两个SPAN Session,缺省SPAN没有使用,如果做了设置,缺省情况下,第一个被设为受控端口的接口进出流量都会受到监控,以后再追加的受控端口只会对接收的流量进行监控,监控端口的默认封装类型为Native,也就是没有打VLAN的标记。
  1、Configuring SPAN——配置本地SPAN
Switch(config)# no monitor session 1 //先清除可能已经存在SPAN设置Switch(config)# monitor session 1 source interface fastethernet0/10//设定SPAN的受控端口Switch(config)# monitor session 1 destination interface fastethernet0/20//设定SPAN的监控端口Switch#sh monSession 1---------Type : Local SessionSource Ports :Both : Fa0/10 //注意此处是BothDestination Ports : Fa0/20Encapsulation : NativeIngress: DisabledSwitch(config)# monitor session 1 source interface fastethernet0/11 - 13//添加SPAN的受控端口Switch#sh monSession 1---------Type : Local SessionSource Ports :RX Only : Fa0/11-13 //注意此处是RX OnlyBoth : Fa0/10 //注意此处还是BothDestination Ports : Fa0/20Encapsulation : NativeIngress: DisabledSwitch(config)# monitor session 1 destination interface fa0/20 ingress vlan 5//设定SPAN的监控端口并启用二层转发Switch#sh monSession 1---------Type : Local SessionSource Ports :RX Only : Fa0/11-13Both : Fa0/10Destination Ports : Fa0/20Encapsulation : NativeIngress: Enabled, default VLAN = 5 //允许正常的流量进入Ingress encapsulation: Native
  3、Specifying VLANs to Filter
Switch(config)# no monitor session 2Switch(config)# monitor session 2 source vlan 101 - 102 rxSwitch(config)# monitor session 2 destination interface fastethernet0/30Switch#sh mon ses 2Session 2---------Type : Local SessionSource VLANs :RX Only : 101-102 //注意此处是RX OnlyDestination Ports : Fa0/30Encapsulation : NativeIngress: DisabledSwitch(config)# monitor session 2 source vlan 201 - 202 rxSwitch#sh mo se 2Session 2---------Type : Local SessionSource VLANs :RX Only : 101-102,201-202 //注意此处多了201-202Destination Ports : Fa0/30Encapsulation : NativeIngress: Disabled

[ 点这里复制网址,推荐给你QQ/MSN上的好友们! ]
本站声明:以上内容由网友 dongjun8899 提供,与54master立场无关!
《我是网管》论坛
愿所有网络难题在54master中——E网打尽
[ 顶部 ]
  
 



当前时区 GMT+8, 现在时间是 2008-5-12 07:10

Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.081777 second(s), 12 queries , Gzip enabled

清除 Cookies - 关于我是网管 - 联系我是网管 - 广告服务 - 诚聘版主 - 无图版 - WAP -