Command Reference Guide

Port Mirroring Commands
CLI Command Reference
September 2014 Page 388
HP Moonshot Switch Module CLI Command Reference
Port Mirroring Commands
Port mirroring, which is also known as port monitoring, selects network traffic that you can analyze with a
network analyzer, such as a SwitchProbe device or other Remote Monitoring (RMON) probe.
monitor session source
This command configures the monitored interface or interfaces for a monitor session (port monitoring). Use rx
to monitor only ingress packets, or use
tx to monitor only egress packets. If you do not specify an {rx | tx}
option, the destination port monitors both ingress and egress packets.
A VLAN can be configured as the source to a session (all member ports of that VLAN are monitored). Remote
port mirroring is configured by adding the RSPAN VLAN ID. At the source switch, the destination is configured
as the RSPAN VLAN and at the destination switch, the source is configured as the RSPAN VLAN.
The
reflector-port is configured at the source switch. The reflector-port forwards the mirrored traffic
towards the destination switch.
IP/MAC ACL can be attached to a session by giving the access list number/name.
Use the
destination interface unit/slot/port to specify the interface to receive the monitored traffic.
Use the
mode parameter to enable the administrative mode of the session. If enabled, the probe port monitors
all the traffic received and transmitted on the physical monitored port.
Use the filter parameter to filter a specified access group either by IP address or MAC address.
no monitor session source
Use this command to remove the specified source interfaces or VLANs from the monitored session.
.
Note: The source and destination cannot be configured as remote on the same device.
Note: This port must be configured with RSPAN VLAN membership.
Format
monitor session session-id source {interface {unit/slot/port | cpu | lag lag-num}
[{rx | tx}] | vlan vlan-id | remote vlan vlan-id }
Mode Global Config
Format
no monitor session session-id source {interface {unit/slot/port | cpu | lag lag-num}
| vlan | remote vlan}
Mode Global Config