monitor session
monitor session
To enable SPAN sessions on interfaces or VLANs, use the monitor session command. To remove one
or more source or destination interfaces from a SPAN session, or a source VLAN from a SPAN session,
use the no form of this c ommand.
Syntax Description
session
destination
interface
FastEthernet interface-number
GigabitEthernet interface-number
encapsulation
isl
dot1q
ingress
vlan vlan_id
learning
remote vlan vlan_id
source
Port-channel interface-number
cpu
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-182
monitor session session {destination interface {FastEthernet interface-number |
GigabitEthernet interface-number} [encapsulation {isl | dot1q}] [ingress [vlan vlan_id]
[learning]]} | {remote vlan vlan_id} | {source {interface {FastEthernet interface-number |
GigabitEthernet interface-number | Port-channel interface-number}} | [vlan vlan_id]
|{remote vlan vlan_id} | {cpu [queue queue_id]} [ , | - | rx | tx | both]} | {filter {vlan vlan_id
[ , | - ]} | {packet-type {good | bad}} | {address-type {unicast | multicast | broadcast} [rx |
tx | both]}
[no] monitor session session {destination interface {FastEthernet interface-number |
GigabitEthernet interface-number} [encapsulation {isl | dot1q}] [ingress [vlan vlan_id]
[learning]]} | {remote vlan vlan_id} | {source {interface {FastEthernet interface-number |
GigabitEthernet interface-number | Port-channel interface-number}} | [vlan vlan_id]
|{remote vlan vlan_id} | {cpu [queue queue_id]} [ , | - | rx | tx | both]} | {filter {vlan vlan_id
[ , | - ]} | {packet-type {good | bad}} | {address-type {unicast | multicast | broadcast} [rx |
tx | both]}
Chapter2
Cisco IOS Commands for the Catalyst 4500 Series Switches
Number of a SPAN session; valid values are from 1 to 6.
Specifies a SPAN destination .
Specifies an interface.
Specifies a Fast Ethernet module and port number; valid values
are from 1 to 6.
Specifies a Gigabit Ethernet module and port number; valid
values are from 1 to 6.
(Optional) Specifies the encapsulation type of the destination
port.
(Optional) Specifies ISL encapsulation.
(Optional) Specifies dot1q encapsulation.
(Optional) Indicates whether the ingress option is enabled.
(Optional) Specifies the VLAN; valid values are from 1 to 4094.
(Optional) Enables host learning on ingress-enabled destination
ports.
Specifies an RSPAN source or destination session on a switch.
Specifies a SPAN source.
Specifies a port channel interface; valid values are from 1 to 64.
Causes traffic received or sent from the CPU to be copied to the
destination of the session.
78-16201-01