Configuration Note 5. Port-Monitoring
Version 6.8 17 Mediant MSBR
5 Port-Monitoring
Port Monitoring, also known as 'mirroring', is used on a network switch to send a copy of
network packets seen on one switch port (or an entire VLAN) to a network monitoring
connection on another switch port. Port mirroring is configured by assigning a port from
which to copy all packets and another port to which those packets will be sent. Usually a
protocol analyzer, for example, Wireshark is run on the port receiving the mirrored data to
monitor each segment separately. The analyzer, sometimes called a sniffer or packet
sniffer, captures and evaluates the data without affecting the client on the original port. The
port mirroring can also be used as a diagnostic or debugging tool.
5.1 Commands
The table below describes the port mirroring commands.
Table 5-1: Port Monitoring Commands
Command Description
<physical_interface>
[slot/port.vlanID]
Accesses a specific interface configuration mode.
• <physical_interface> - selects the type of
interface.
• [slot/port.vlanID] – slot and port number is taken
from the device panel.
Note: The interface configuration mode changes
after the command is entered.
SlotNum/PortNum)# port-
monitor gigabitethernet
[slot/port.vlanID] [both-
direction|ingress|egress]
Allows this port to monitor the traffic on another
port:
• both-direction – monitors all incoming and
outgoing packets for this port.
• ingress – monitors all incoming packets for this
port.
• egress – monitors all outgoing packets for this