SoFunction
Updated on 2025-04-12

Several common Cisco switch port monitoring configurations

2900XL/3500XL/2950 series switch port monitoring configuration

The following command configures port listening:

port monitor

For example, F0/1, F0/2, and F0/2 belong to VLAN1, and F0/1 listens to F0/2 and F0/2 ports:

interface FastEthernet0/1 port monitor FastEthernet0/2 port monitor FastEthernet0/5 port monitor VLAN1

2. Catalyst 4000, 5000, and 6000 series switch port monitoring configuration

The following command configures port listening:

set span

For example, in module 6, port 1 and port 2 belong to VLAN1, port 3 is in VLAN2, port 4 and 5 are in VLAN2, and port 2 listens to port 1 and 3, 4 and 5,

set span 6/1,6/3-5 6/2

The following command prohibits port listening:

set span disable [dest_mod/dest_port|all]

Article entry: csh     Editor in charge: csh