
virtual SPAN介绍:
Configuration of a virtual SPAN session is the same as a normal SPAN session with the
difference residing in the configuration of the destination ports. A virtual SPAN session
enables the network administrator to use a single SPAN session on an 802.1Q trunk and
direct traffic from specific VLANs to the appropriate network analyzers,
配置virtual SPAN:
Jealousy(config)# int e1/25
Jealousy(config-if)# switchport
Jealousy(config-if)# switch mode trunk
Jealousy(config-if)# switchport trunk allowed vlan 100-105
Jealousy(config-if)# no shut
Jealousy(config-if)# int e1/26
Jealousy(config-if)# desc Connection to Network Analyzer for VLAN 100
Jealousy(config-if)# switchport
Jealousy(config-if)# switchport monitor
Jealousy(config-if)# switchport mode trunk
Jealousy(config-if)# switchport trunk allowed vlan 100
Jealousy(config-if)# int e1/27
Jealousy(config-if)# desc Connection to Network Analyzer for VLAN 101
Jealousy(config-if)# switchport
Jealousy(config-if)# switchport monitor
Jealousy(config-if)# switchport mode trunk
Jealousy(config-if)# switchport trunk allowed vlan 101
Jealousy(config-if)# monitor session 2
Jealousy(config-monitor)# desc Virtual SPAN Session
Jealousy(config-monitor)# source int e1/25
Jealousy(config-monitor)# destination in e1/26,e1/27
Jealousy(config-monitor)# no shut
Jealousy(config-monitor)# end
查看virtual SPAN状态:
Jealousy# show monitor session 2
session 2
---------------
description : Virtual SPAN Session
type : local
state : down (No operational src/dst)
source intf :
rx : Eth1/25
tx : Eth1/25
both : Eth1/25
source VLANs :
rx :
tx :
both :
filter VLANs : filter not specified
destination ports : Eth1/26 Eth1/27
Legend: f = forwarding enabled, l = learning enabled
|
|