Configuring Port Mirroring And Monitoring - HP 9304m Installation And Getting Started Manual

Procurve routing switches
Table of Contents

Advertisement

Configuring Basic Features
These guidelines do not apply to monitoring outbound traffic. You can monitor traffic between IPCs and use
multiple mirror ports.

Configuring Port Mirroring and Monitoring

USING THE CLI
Suppose you want to diagnose the in and out traffic on port 3 on a module in slot 4 of an HP 9304M, HP 9308M,
or HP 9315M, and use port 1 in slot 4 as the mirror port. To do so, enter the following commands:
HP9300(config)# mirror-port ethernet 4/1
HP9300(config)# interface ethernet 4/3
HP9300(config-if-4/3)# monitor ethernet 4/1 both
Syntax: [no] mirror-port ethernet <portnum>
The <portnum> parameter specifies the port. You can configure up to 64 mirror ports on a Chassis device.
Syntax: [no] monitor ethernet <portnum> [ethernet <portnum>...] both | in | out
The <portnum> parameter specifies the mirror port(s).
The both | in | out parameter specifies the traffic direction you want to monitor on the mirror port. There is no
default.
NOTE: You can configure multiple mirror ports on the same module. However, if you mirror inbound traffic to any
of the mirror ports on the module, the traffic is mirrored to all the mirror ports on the module. If you plan to mirror
outbound traffic only, you can use multiple mirror ports on the same module without the traffic being duplicated on
the other mirror ports on the module.
NOTE: If you configure the device to monitor inbound traffic on multiple ports and use a single mirror port for the
traffic, disabling monitoring on one of the ports also disables monitoring on the other ports. For example, if you
configure the device to monitor inbound traffic on ports 1/1 and 1/2 and to mirror the traffic to port 2/1, if you then
disable monitoring of inbound traffic on port 1/2, the software also disables monitoring of inbound traffic on port
1/1.
This guideline does not apply to monitoring outbound traffic. Disabling monitoring for outbound traffic does not
affect other ports that use the same mirror port.
If you specify both for the traffic direction to be monitored, only the inbound traffic monitoring is disabled on the
other ports.
To configure more than one mirror port, enter commands such as the following:
HP9300(config)# mirror-port ethernet 1/1
HP9300(config)# mirror-port ethernet 5/1
HP9300(config)# mirror-port ethernet 5/1
HP9300(config)# mirror-port ethernet 5/2
These commands configure four mirror ports.
The following commands configure ports on the module in slot 1 to be mirrored by port 1/1:
HP9300(config)# interface ethernet 1/2
HP9300(config-if-1/2)# monitor ethernet 1/1 in
HP9300(config-if-1/2)# interface ethernet 1/3
HP9300(config-if-1/3)# monitor ethernet 1/1 in
HP9300(config-if-1/3)# interface ethernet 1/4
HP9300(config-if-1/4)# monitor ethernet 1/1 in
These commands configure the inbound traffic on ports 1/2 – 1/4 to be mirrored to port 1/1.
4 - 49

Advertisement

Table of Contents
loading

This manual is also suitable for:

9315m

Table of Contents