To start a switched port analyzer session (SPAN) the monitor session command can be used. As source one or me interfaces and vlans can be used. Also interfaces can be added to or removed from existing monitor sessions.
Command description:
Source Interface or VLAN
monitor session session {source {interface type number} | {vlan vlan-id}} [, | - | rx | tx | both]
no monitor session session {source {interface type number} | {vlan vlan-id}} [, | - | rx | tx | both]
Destination Interface or VLAN
monitor session session {destination {interface type number} [, | -]} | {vlan vlan-id}}
no monitor session session {destination {interface type number} [, | -]} | {vlan vlan-id}}
Filter VLAN
monitor session session {filter {vlan vlan-id} [, | -]}
no monitor session session {filter {vlan vlan-id} [, | -]}
Configuring span / monitor port:
Configuration example:
monitor session 2 source interface Gi0/10 , Gi0/11
monitor session 2 destination interface GigabitEthernet0/48
|