To configure a local mirroring session in which the mirroring source and destination are on the same switch, follow these general steps:
-
Determine the session and local destination port:
CAUTION: An exit port should be connected only to a network analyzer, IDS, or other network edge device that has no connection to other network resources. Connecting a mirroring exit port to a network can result in serious network performance problems, and is strongly discouraged by HP.
-
Enter the
mirror
command to configure the session.session-#
[namesession-name
] portport-#
-
Determine the traffic to be selected for mirroring by any of the following methods and the appropriate configuration level (VLAN, port, mesh, trunk, switch):
-
Enter the
monitor
command to assign one or more source interfaces to the session.
After you complete step 4, the switch begins mirroring traffic to the configured exit port.
The following commands configure mirroring for a local session in which the mirroring source and destination are on the same switch.
|
|
![]() |
NOTE: When no allow-v2-modules is specified in the configuration of a switch with V3 modules on KB firmware, Egress VLAN ACLs do not filter mirrored traffic. You must use a port ACL to filter mirrored traffic. |
|
Syntax
class
ipv4
|ipv6
classname
[ no ] [seq-number
] [match
|ignore
ip-protocol
source-address
destination-address
] [precedence
precedence-value
] [tos
tos-value
] [ip-dscp
codepoint
] [vlan
vlan-id
]
Syntax
policy mirror
[no] [policy-name
seq-number
] [class
ipv4
|ipv6
classname
action mirror
session
] [action mirror
session
...] [ no ]default-class action mirror
[ no ] [session
interface
port/trunk
|vlan
vid-#
]service-policy
mirror-policy-name
in
In the policy mirror
command, the mirror
parameter accepts a number (1 to 4) or name, if the specified mirroring session has already been configured with the session
name
option in the name-str
mirror
command.
The [no] interface | vlan service-policy in
command removes the mirroring policy from a port, VLAN, trunk, or mesh interface for a specified session, but leaves the session available for other assignments.