交换机SPAN技术简介+Cisco配置示例 (三)
[b]四、SPAN和RSPAN的配置举例[/b] SPAN的限制和缺省设置kTK7PTnCatalyst 3550交换机上最多只能设置两个SPAN Session,缺省SPAN没有使用,如果做了设置,缺省情况下,第一个被设为受控端口的接口进出流量都会受到监控,以后再追加的受控端口只会对接收的流量进行监控,监控端口的默认封装类型为Native,也就是没有打VLAN的标记。
1、Configuring SPAN——配置本地SPAN(eND/h%^VL;Sr
[table=80%,#cccccc][tr][td]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 [/td][/tr][/table] 3、Specifying VLANs to FilterK0[s(~,hA
[table=80%,#cccccc][tr][td]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 [/td][/tr][/table] 虽然看不懂也要顶一下 继续学习交换机的知识 多谢楼主分享。:lol 看不懂啊 呵呵额!!!!!!!!
页:
[1]