2. Add mirroring entries as required:
3. Use the following variable definitions tables to configure mirroring as required.
4. Enable mirroring:
5. Ensure that your configuration is correct by using the following command:
Variable definitions
Use the information in the following table to help you use the config diag mirror-by-
port <id> command.
add {mirrored-ports <port>|
mirroring-mlt <mid>|
mirroring-ports <port>|
mirroring-vlan <vid>}
create in-port <value>
[out-port <value>] [mode
<value>] [enable <value>]
[remote-mirror-vlan-id
<value>] [mirroring-mlt
<value>] [mirroring-vlan
<value>]
Troubleshooting
Mirroring is not operational until you issue the enable parameter.
config diag mirror-by-port <id> add {mirrored-ports <port]|
mirroring-mlt <mid>|mirroring-port <port>|mirroring-vlan
<vid>}
config diag mirror-by-port <id> enable true
config diag mirror-by-port <id> info
show diag mirror-by-port
Variable
Value
Add ports, MLTs, or VLANs to the mirroring
instance.
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 VLAN for mirrored packets
Creates a new mirror-by-port table entry.
•
in-port <value>
port.
•
out-port <value>
port.
•
mode <value>
configures the mirror mode
(see description for mode).
•
enable <value>
enables or disables the
mirroring port (see description for enable).
Port mirroring configuration
specifies the
specifies the
specifies the
specifies the
specifies the mirrored
specifies the mirroring
July 2013
149