Reference Guide

Configuring Port Monitoring
To configure port monitoring, use the following commands.
1. Verify that the intended monitoring port has no configuration other than no shutdown, as shown in the following
example.
EXEC Privilege mode
show interface
2. Create a monitoring session, as shown in the following example.
CONFIGURATION mode
monitor session
3. Specify the source and destination port and direction of traffic, as shown in the following example.
MONITOR SESSION mode
source
To display monitor sessions, use the show monitor session command in EXEC Privilege mode.
Example of Viewing Port Monitoring Configuration
FTOS(conf-if-gi-1/2)#show config
!
interface GigabitEthernet 1/2
no ip address
no shutdown
FTOS(conf-if-gi-1/2)#exit
FTOS(conf)#monitor session 0
FTOS(conf-mon-sess-0)#source gig 1/1 dest gig 1/2 direction rx
FTOS(conf-mon-sess-0)#exit
FTOS(conf)#do show monitor session 0
SessionID Source Destination Direction Mode Type
--------- ------ ----------- --------- ---- ----
0 Gi 1/1 Gi 1/2 rx interface Port-based
FTOS(conf)#
In the example below, the host and server are exchanging traffic which passes through interface gigabitethernet 1/ 1.
Interface gigabitethernet 1/1 is the monitored port and gigabitethernet 1/2 is the monitoring port, which is configured to
only monitor traffic received on gigabitethernet 1/1 (host-originated traffic).
526