# Switch Port Analyzer

Device>Configure>Switch Port Analyzer>Copy

You can use switch port analyzer information to gather statistics on traffic between two ports or between a VLAN and a port. This device does allow you to enter a VLAN number as a source. Up to five active Switch Port Analyzer (SPAN) sets (each set is able to contain unlimited source ports) can be supported. For Catalyst 6000, two independent ingress/bidirectional SPANs are active at the same time. For Catalyst 5000 series devices, one ingress/bidirectional SPAN is active and a maximum of four outgoing SPANs are supported. For Catalyst 4000, if the data source is VLAN, the direction must be copyBoth.

Note: The destination cannot be configured as the source.

CONFIGURATION & IMPLEMENTATION TIPS

Use the Switch Port Analyzer window to configure the following information:

SPAN Type (portCopySessionType)

Indicates SPAN type: Local, Remote Source, or Remote Destination.

SourcePorts/VLANs (portCopySource)

Indicates source ports or VLANs.

If the SPAN type is remote destination then it is not applicable (and will be shown as '-').

Destination Port (portCopyDest)

Indicates destination port.

If the SPAN type is remote source then it is not applicable (and will be shown as '-').

RSPAN VLAN (RpanVlan)

Indicates the RSPAN VLAN number.

If the SPAN type is local then it is not applicable (and will be shown as '-'.)

Direction (portCopyDirection)

Direction of monitored traffic. For each SPAN set, use this feature to specify the direction of the packets going through the source ports. The available options are described below:

> RX Only (copyRxOnly)

> Select this option to have only traffic received on the indicated source port copied to the indicated destination port.

> TX Only (copyTxOnly)

> Select this option to have only traffic transmitted on the indicated source port copied to the indicated destination port.

> RX & TX (copyBoth)

> Select this option to have all traffic received and transmitted on the indicated source port copied to the indicated destination port.

> Click Apply to make your changes take effect.

To Create a New SPAN set:

1. Click Create.

2. From the Data Source drop down box, select either Port(s) or VLAN(s).

3. Enter the Source ports(s)/vlan(s).

4. Enter the Destination port.

5. From the Direction drop down box, select either Copy Rx Only, Copy Tx Only, or Copy Both.

6. Click OK.

To Delete a SPAN set:

1. Highlight the SPAN port set (row) to be deleted.

2. Click Delete.

To Add Source to a SPAN set:

1. Click Add Source.

2. Enter the source port(s)/vlan(s) to be added to the SPAN set.

3. Click OK.

To Remove Source from a SPAN set:

1. Select a row so that it is highlighted.

2. Click Remove Source....

3. Enter the source port(s)/vlan(s) to be removed from the SPAN set.

4. Click OK.

Click Cancel to close the dialog box without making any changes. Click Print to print the contents of the dialog box. Click Refresh to reload the dialog box.

# Configuration/Implementation Tips

The following configurations and implementations are supported:

- A trunk port can be configured as a source or destination port. If configured as a destination port, then the out-bound packets through the SPAN port will carry an ISL header.

- When a switch port is configured as a SPAN port, it is no longer a normal switch port and you will only see the monitored traffic through the SPAN port.

- When SPAN is enabled, any VLAN configuration change to the SPAN port will not be effective until SPAN is disabled.

- When SPAN is enabled, if any source or the destination port gets disabled, the SPAN functionality will stop working until both are enabled.

- Disabled ports can be configured to a source or the destination port, but the SPAN function will not start working until both the source and destination ports are enabled.

- When SPAN is enabled for monitoring a particular VLAN, the monitored ports will be changed when the user moves ports in or out from the monitored VLAN.

- For the Catalyst 5000, a maximum of 4 outgoing SPAN sessions are supported. A maximum of 1 SPAN session is supported for incoming traffic.

- For the Catalyst 6000, a total of 6 SPAN sessions are supported. A maximum of 2 SPAN sessions are supported for incoming traffic with a maximum of 4 SPAN sessions supported for outgoing traffic. Local ingress SPAN port(s) are used by remote SPAN session(s).