About selecting all inbound/outbound traffic to mirror
If you have already configured session 1 with a local or remote destination, you can enter the
vlan
vid
monitor
or
interface
port
monitor
command without additional parameters for traffic-selection criteria
and session number to configure mirroring for all inbound and outbound traffic on the specified VLAN or port
interfaces in session 1 with the preconfigured destination.
Untagged mirrored packets
Although a VLAN tag is added (by default) to the mirrored copy of untagged outbound packets to indicate the
source VLAN of the packet, it is sometimes desirable to have mirrored packets look exactly like the original
packet. The
no-tag-added
parameter gives you the option of not tagging mirrored copies of outbound packets,
Figure 65: Mirroring commands with the no-tag-added option
Displaying a mirror session configuration with the no-tag-added option
Figure 65: Mirroring commands with the
no-tag-added
option
Figure 66: Displaying a mirror session configuration with the
no-tag-added
option
About using SNMP to configure
no-tag-added
The MIB object hpicfBridgeDontTagWithVlan is used to implement the
no-tag-added
option, as shown below:
hpicfBridgeDontTagWithVlan OBJECT-TYPE
SYNTAX INTEGER
{
enabled(1),
disabled(2)
}
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"This oid mentions whether VLAN tag is part of the
mirror'ed copy of the packet. The value ‘enabled'
denotes that the VLAN tag shouldn't be part
of the mirror'ed copy; ‘disabled' does put
the VLAN tag in the mirror'ed copy. Only one
logical port is allowed.
This object is persistent and when written
the entity
SHOULD save the change to non-volatile storage."
Chapter 12 Monitoring and Analyzing Switch Operation
433