Cisco port monitoring monitor session SW1 (config) # monitor session 1 source interface f0/0 // define the monitored port SW1 (config) # monitor session 1 destination interface f0/12 // connect to the analysis tool's port (PC Packet capture) www.2cto.com SW1 # show monitor session 1 // view monitoring Session 1 session 1 --------- Source Ports: RX Only: NoneTX Only: NoneBoth: fa0/0 Source VLANs: RX Only: NoneTX Only: NoneBoth: NoneDestination Ports: Fa0/12 Filter VLANs: NoneSW2 (config) # monitor session 1 source vlan 10 both // defines two-way monitoring of the information of the specified VLAN SW2 (config) # monitor session 1 destination interface f0/12 // connect to the port of the Analysis Tool (PC Packet capture) SW2 (config) # monitor session 1 source interface f0/0-8 both // bidirectional monitoring of the information of multiple specified ports SW2 (config) # monitor session 1 destination interface f0/12 // connect to the port of the Analysis Tool (PC Packet capture) II. monitoring and Analysis on two vswitches 1. first, create a new VLAN on the SERVER side of The VTP domain without any ports belonging to this VLANSW2 # vlan databaseSW2 (vlan) # vlan 901 VLAN 901 added: Name: VLAN0901SW2 (vlan) # remote-span 2. on the monitored switch, define SW1 (config) # monitor session 1 source interface f0/0 both // define two-way monitoring of the information of the specified interface SW1 (config) # monitor session 1 destination remote vlan 901 Reflestor-port f0/12 // send the monitored information to f0/12 on VLAN 901
3. configure SW2 (config) # monitor session 1 source remote vlan 901 // monitor VLAN 901 information SW2 (config) on the switch with an Analysis Tool) # monitor session 1 destination remote interface f0/1 // send the monitored information to an interface with an Analysis Tool