Port Monitoring | 819Configuring Port MonitoringTo configure port monitoring:Display monitor sessions using the command show monitor session from EXEC Privilege mode, as shownin Figure 38-6.Figure 38-6. Configuring Port-based MonitoringIn 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, whichis configured to only monitor traffic received on gigabitethernet 1/1 (host-originated traffic).Step Command Syntax Command Mode Task1 show interface EXEC Privilege Verify that the intended monitoring port has noconfiguration other than no shutdown, as shown inFigure 38-6.2 monitor session CONFIGURATION Create a monitoring session using the command monitorsession from CONFIGURATION mode, as shown inFigure 38-6.3 source MONITOR SESSION Specify the source and destination port and direction oftraffic, as shown in Figure 38-6.FTOS(conf-if-gi-1/2)#show config!interface GigabitEthernet 1/2no ip addressno shutdownFTOS(conf-if-gi-1/2)#exitFTOS(conf)#monitor session 0FTOS(conf-mon-sess-0)#source gig 1/1 dest gig 1/2 direction rxFTOS(conf-mon-sess-0)#exitFTOS(conf)#do show monitor session 0SessionID Source Destination Direction Mode Type--------- ------ ----------- --------- ---- ----0 Gi 1/1 Gi 1/2 rx interface Port-basedFTOS(conf)#