0% found this document useful (0 votes)
84 views2 pages

Configuring Port Mirroring

Port mirroring allows copying packets from a specified port to a destination port for analysis and troubleshooting. The configuration involves enabling privileged EXEC mode, entering global configuration mode, and specifying source and destination interfaces for mirroring. An example configuration is provided to illustrate how to mirror packets from multiple ports to a single destination port.

Uploaded by

Ali Adeel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views2 pages

Configuring Port Mirroring

Port mirroring allows copying packets from a specified port to a destination port for analysis and troubleshooting. The configuration involves enabling privileged EXEC mode, entering global configuration mode, and specifying source and destination interfaces for mirroring. An example configuration is provided to illustrate how to mirror packets from multiple ports to a single destination port.

Uploaded by

Ali Adeel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Configuring Port Mirroring

• Information About Port Mirroring, on page 1


• How to Configure Port Mirroring, on page 1
• Configuration Example for Port Mirroring, on page 2

Information About Port Mirroring


You can copy the packets received or sent on a specified port to a mirroring destination port. This is called
port mirroring. Normally, the destination port is connected to the data detection device. You can analyze the
mirrored packets and troubleshoot faults.
A switch supports one-to-one and many-to-one mirroring. Many-to-one mirroring supports multiple mirroring
sources but only one destination port.

Note A port configured as a mirroring destination port cannot be used as a normal service port.

How to Configure Port Mirroring


The following task provides information about Configuring Port Mirroring:

Configuring Port Mirroring


To configure port mirroring on a device, perform this procedure.

Procedure

Command or Action Purpose


Step 1 enable Enables privileged EXEC mode.
Example: Enter your password, if prompted.
Device> enable

Configuring Port Mirroring


1
Configuring Port Mirroring
Configuration Example for Port Mirroring

Command or Action Purpose


Step 2 configure terminal Enters global configuration mode.
Example:
Device#configure terminal

Step 3 mirror source-interface { ethernet slot/port Configures the mirrored source, which is the
| cpu | GPON slot/port } { ingress | egress port from which the packets are copied. You
| both } can configure multiple mirrored sources.
Example:
Device(config)#mirror source-interface
ethernet1/1 both

Step 4 mirror destination-interface { ethernet Configures the destination port for mirroring,
slot/port | gpon slot/port } which is the port to which the packets are
copied. You can specify only one mirroring
Example:
destination port.
Device(config)#mirror
destination-interface ethernet2/1

Step 5 show mirror (Optional) Displays the mirroring groups.


Example:
Device(config)#show mirror

Configuration Example for Port Mirroring


The following example shows how you can configure mirroring to copy packets from a CPU, e1/1, e1/2 ports
to port e1/4:
Device#configure terminal
Device(config)#mirror source-interface cpu both
Device(config)#mirror source-interface ethernet 1/1 both
Device(config)#mirror source-interface ethernet 1/2 both
Device(config)#mirror destination-interface ethernet 1/4
Device(config)#show mirror
Information about mirror port(s)
The monitor port : e1/4
The mirrored egress ports : cpu,e1/1-e1/2.
The mirrored ingress ports : cpu,e1/1-e1/2.

The packet of CPU, e1/1, e1/2 can be mirrored to port e1/4.

Configuring Port Mirroring


2

You might also like