Configuring Port Monitoring
To configure port monitoring:
Step
Command Syntax
show interface
1
monitor session
2
source
3
Display monitor sessions using the command
in
Figure
38-6.
Figure 38-6. Configuring Port-based Monitoring
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
FTOS(conf-mon-sess-0)#exit
FTOS(conf)#do show monitor session 0
SessionID
---------
FTOS(conf)#
In
Figure
38-7, 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).
Command Mode
EXEC Privilege
CONFIGURATION
MONITOR SESSION
gig 1/1 dest gig 1/2 direction rx
Source
Destination
------
-----------
0
Gi 1/1
Gi 1/2
Task
Verify that the intended monitoring port has no
configuration other than
Figure
38-6.
Create a monitoring session using the command monitor
session from CONFIGURATION mode, as shown in
Figure
38-6.
Specify the source and destination port and direction of
traffic, as shown in
show monitor session
from EXEC Privilege mode, as shown
Direction
---------
rx
no shutdown
, as shown in
Figure
38-6.
Mode
Type
----
----
interface
Port-based
Port Monitoring | 819