3、Specifying VLANs to Filter
Switch(config)# no monitor session 2 Switch(config)# monitor session 2 source vlan 101 - 102 rx Switch(config)# monitor session 2 destination interface fastethernet0/30 Switch#sh mon ses 2 Session 2 --------- Type : Local Session Source VLANs : RX Only : 101-102 //注意此处是RX Only Destination Ports : Fa0/30 Encapsulation : Native Ingress: Disabled Switch(config)# monitor session 2 source vlan 201 - 202 rx Switch#sh mo se 2 Session 2 --------- Type : Local Session Source VLANs : RX Only : 101-102,201-202 //注意此处多了201-202 Destination Ports : Fa0/30 Encapsulation : Native Ingress: Disabled
4、Configuring RSPAN——配置远程RSPAN
RSPAN的Session分成RSPAN Source Session和RSPAN Destination Session两部分,所以相应的配置也要分别在Session的源和目的交换机上做。
4.1、首先要配置专用的RSPAN VLAN
Switch(config)# no monitor session 2 Switch(config)# monitor session 2 source interface fastethernet0/48 rx Switch(config)# monitor session 2 filter vlan 100 - 102 //指定受控的VLAN范围 Switch(config)# monitor session 2 destination interface fastethernet0/30 Switch#sh mon ses 2 Session 2 --------- Type : Local Session Source Ports : Both : Fa0/48 Destination Ports : Fa0/30 Encapsulation : Native Ingress: Disabled Filter VLANs : 100-102 //只监控VLAN100-102中的流量
4.2、配置RSPAN Source Session
Switch(config)# vlan 800 Switch(config-vlan)# remote-span Switch(config-vlan)# end sw1#sh vl id 800 VLAN Name Status Ports ---- -------------------------------- 800 VLAN0800 active Fa0/47, Fa0/48 VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ 800 enet 100800 1500 - - - - - 0 0 Remote SPAN VLAN ---------------- Enabled //注意看此处的提示 Primary Secondary Type Ports -------