483
Configuring SPAN and RSPAN
Configuration Examples for SPAN and RSPAN
Switch(config)#
monitor session 1 destination interface GigabitEthernet1/18 encapsulation replicate
Switch(config)#
end
Modifying Local SPAN Sessions: Examples
This example shows how to remove port 1 as a SPAN source for SPAN session 1:
Switch(config)#
no monitor session 1 source interface GigabitEthernet1/17
Switch(config)#
end
This example shows how to disable received traffic monitoring on port 1, which was configured for bidirectional
monitoring:
Switch(config)#
no monitor session 1 source interface GigabitEthernet1/17 rx
The monitoring of traffic received on port 1 is disabled, but traffic sent from this port continues to be monitored.
This example shows how to remove any existing configuration on SPAN session 2, configure SPAN session 2 to monitor
received traffic on all ports belonging to VLANs 1 through 3, and send it to destination Gigabit Ethernet port 2. The
configuration is then modified to also monitor all traffic on all ports belonging to VLAN 10.
Switch(config)#
no monitor session 2
Switch(config)#
monitor session 2 source vlan 1 - 3 rx
Switch(config)#
monitor session 2 destination interface GigabitEthernet1/18
Switch(config)#
monitor session 2 source vlan 10
Switch(config)#
end
This example shows how to remove any existing configuration on SPAN session 2, configure SPAN session 2 to monitor
received traffic on Gigabit Ethernet source port 1, and send it to destination Gigabit Ethernet port 2 with the same egress
encapsulation type as the source port, and to enable ingress forwarding with IEEE 802.1Q encapsulation and VLAN 6 as
the default ingress VLAN.
Switch(config)#
no monitor session 2
Switch(config)#
monitor session 2 source GigabitEthernet1/17 rx
Switch(config)#
monitor session 2 destination interface GigabitEthernet1/18 encapsulation replicate
ingress dot1q vlan 6
Switch(config)#
end
To monitor all VLANs on the trunk port, use the
no monitor session
session_number
filter
global configuration
command.
This example shows how to remove any existing configuration on SPAN session 2, configure SPAN session 2 to monitor
traffic received on Gigabit Ethernet trunk port 2, and send traffic for only VLANs 1 through 5 and VLAN 9 to destination
Gigabit Ethernet port 1:
Switch(config)#
no monitor session 2
Switch(config)#
monitor session 2 source interface GigabitEthernet1/18 rx
Switch(config)#
monitor session 2 filter vlan 1 - 5, 9
Switch(config)#
monitor session 2 destination interface GigabitEthernet1/17
Switch(config)#
end
Configuring an RSPAN: Example
This example shows how to create RSPAN VLAN 901:
Switch(config)#
vlan 901
Switch(config-vlan)#
remote span
Switch(config-vlan)#
end
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...