Quick Reference Guide

PowerConnect B-Series TI24X Configuration Guide 397
53-1002269-02
Configuring port mirroring and monitoring
14
The previous command is required even though the analyzer port is already set globally by the
port mirroring command.
PowerConnect#interface ethernet 3
PowerConnect(interface ethernet 3)# ip access-group 101
PowerConnect(interface ethernet 3)# acl-mirror-port ethernet 48
PowerConnect(interface ethernet 3)# permit ip any any mirror
PowerConnect(interface ethernet 3)# ip access-group 102
PowerConnect(interface ethernet 3)# deny ip any any log
Monitoring a port
This section describes how to configure port mirroring and monitoring.
To configure port monitoring on an individual port on a device, enter commands similar to the
following.
PowerConnect(config)#mirror-port ethernet 4
PowerConnect(config)#interface ethernet 11
PowerConnect(config-if-e10000-11)#monitor ethernet 4 both
Traffic on port e 11 will be monitored, and the monitored traffic will be copied to port e 4, the mirror
port.
Syntax: [no] mirror-port ethernet <portnum> [input | output]
Syntax: [no] monitor ethernet<portnum> both | in | out
The <portnum> parameter for mirror-port ethernet specifies the port to which the monitored traffic
will be copied. The <portnum> parameter for monitor ethernet specifies the port on which traffic
will be monitored.
The input and output parameters configure the mirror port exclusively for ingress or egress traffic.
If you do not specify one, both types of traffic apply.
The both, in, and out parameters specify the traffic direction you want to monitor on the mirror port.
There is no default.
To display the port monitoring configuration, enter the show monitor and show mirror commands.
Monitoring an individual trunk port
You can monitor the traffic on an individual port of a static trunk group. Note that monitoring an
LACP trunk port is not supported on PowerConnect B-Series TI24X devices.
By default, when you monitor the primary port in a trunk group, aggregated traffic for all the ports in
the trunk group is copied to the mirror port. You can configure the device to monitor individual ports
in a trunk group. You can monitor the primary port or a secondary port individually.
To configure port monitoring on an individual port in a trunk group, enter commands such as the
following.
PowerConnect(config)#mirror-port ethernet 6
PowerConnect(config)#trunk e 2 to 5
PowerConnect(config-trunk-2-5)#config-trunk-ind
PowerConnect(config-trunk-2-5)#monitor ethernet 4 ethernet 6 in
Traffic on trunk port e 4 will be monitored, and the monitored traffic will be copied to port e 6, the
mirror port.