157
<Configuration Example 1>
Overview: Configure port monitoring so that Port 1 monitors packets transmitted/received
on Ports 2 to 5.
(1) Move to the interface configuration mode for Port 1.
(2) Enable monitoring of packets transmitted/received on Ports 2 to 5.
(After the command is executed, the function is automatically enabled, starting
monitoring.)
Fig. 4-3-2 Example of the port monitoring configuration
<Configuration Example 2>
Overview: Disable the port monitoring function enabled as Configuration Example 1 shows.
(1) Move to the interface configuration mode for Port 1.
(2) Disable packet monitoring.
Fig. 4-3-3 Example of the configuration for disabling port monitoring
M16eG> enable
M16eG# configure
M16eG(config)# interface GigabitEthernet0/1
M16eG(config-if)# no port monitor
M16eG(config-if)# exit
M16eG(config)# exit
M16eG#
M16eG> enable
M16eG# configure
M16eG(config)# interface GigabitEthernet0/1
M16eG(config-if)# port monitor 2-5 direction both
M16eG(config-if)# exit
M16eG(config)# exit
M16eG#
(1)
(2)
(1)
(2)