51
5.3.
Port Mirror
Port-Based Mirroring
The Port-Based Mirroring is used on a network switch to send a copy of network packets
sent/received on one or a range of switch ports to a network monitoring connection on another
switch port (
Monitor to Port
). This is commonly used for network appliances that require
monitoring of network traffic, such as an intrusion-detection system.
Port Mirroring, together with a network traffic analyzer, helps to monitor network traffic. Users
can monitor the selected ports (
Source Ports
) for egress and/or ingress packets.
Source Mode:
Ingress : The received packets will be copied to the monitor port.
Egress : The transmitted packets will be copied to the monitor port.
Both
: The received and transmitted packets will be copied to the monitor port.
Notices:
The monitor port cannot be a trunk member port.
The monitor port cannot be ingress or egress port.
If the Port Mirror function is enabled, the Monitor-to Port can receive mirrored packets
only.
If a port has been configured as a source port and then user configures the port as a
destination port, the port will be removed from the source ports automatically.
5.3.1.
CLI Configuration
Node
Command
Description
enable
show mirror
This command displays the current port mirroring
configurations.
enable
configure terminal
This command changes the node to configure node.
configure mirror
(disable|enable)
This command
disables / enables
the port mirroring on
the switch.
configure mirror destination
port PORT_ID
This command specifies the
monitor port
for the port
mirroring.
configure mirror source ports
PORT_LIST mode
(both|ingress|egress)
This command
adds
a port or a range of ports as the
source ports of the port mirroring.
configure no mirror source ports
PORT_LIST
This command
removes
a port or a range of ports from
the source ports of the port mirroring.
Example:
L2SWITCH#
configure terminal
L2SWITCH(config)#mirror destination port 9
Success!
L2SWITCH(config)#mirror source ports 1-8 mode ingress
Success!
L2SWITCH(config)#exit
Summary of Contents for NGI-M08C4POE8-2
Page 1: ......
Page 197: ...197 Clear Clear the statistics of the valn ...
Page 298: ...298 9 2 2 Web Configurations ...