<mid>|mirroring-ports
<port>|mirroring-vlan
<vid>}
Example of configuring port mirroring
Procedure steps
1. Create the port mirroring instance. Traffic passing port 7/1 is mirrored to port 7/2:
2. Mirror both ingress and egress traffic passing through port 7/1:
3. Enable mirroring for the instance:
Configuring global mirroring actions with an ACL
Configure the global action to mirror a packet that matches an ACE.
Prerequisites
• The ACL exists.
Procedure steps
1. To configure the global action to mirror, enter:
Troubleshooting
Variable
config diag mirror-by-port 3 create in-port 7/1 out-port 7/2
The analyzer is connected to port 7/2.
config diag mirror-by-port 3 mode both
config diag mirror-by-port 3 enable true
config filter acl <acl-id> set global-action mirror
Value
To change a port mirroring configuration, first
disable it.
•
mirrored-ports <port>
source port for mirrored packets.
•
mirroring-mlt <mid>
destination MLTs for mirrored packets.
•
mirroring-ports <port>
destination ports for mirrored packets.
•
mirroring-vlan <vid>
destination VLANs for mirrored packets.
Port mirroring configuration
specifies the
specifies the
specifies the
specifies the
July 2013
151