Configuration Guide Vol. 2


18.2.2 Port mirroring settings

When port mirroring is configured, a combination of monitored ports and a mirror port is defined as a monitored session.

Monitored sessions are identified by using session numbers 1 to 4. A session number is specified when a new session is created or an existing session is deleted. If an existing session number is specified when a new session is created, the existing session definition corresponding to the specified session number is overwritten by the new definition.

Ports used for normal data communication are specified as monitored ports. A port to which an analyzer is connected for monitoring or analyzing the traffic is specified as a mirror port.

<Structure of this section>

(1) Setting a 1-Monitor Port to 1-Mirror Port

Points to note

An Ethernet interface can be set as a monitor port. Specify separate Ethernet interfaces even if link aggregation is used. Make sure that no VLANs belong to the port to be used as a mirror port.

Command examples

  1. (config)# monitor session 2 source interface gigabitethernet 1/0/1 rx destination interface gigabitethernet 1/0/5

    Configures the analyzer to connect to port 1/0/5 and mirror the frames received on Gigabit Ethernet interface 1/0/1.

(2) Mirroring Multiple Monitor Ports

Points to note

You can set multiple monitor ports in the form of a list. You can also add or remove ports from an already-set list.

Command examples

  1. (config)# monitor session 1 source interface gigabitethernet 1/0/1-23, tengigabitethernet 1/0/25 both destination interface gigabitethernet 1/0/24

    Configures the analyzer to connect to port 1/0/24 and mirror frames sent and received on Gigabit Ethernet interfaces 1/0/1 to 1/0/23 and 10 Gigabit Ethernet interfaces 1/0/25.

(3) Mirroring to Mirrored Ports (Port Channel Interface)

Points to note

You can configure channel groups for mirrored ports.

Command examples

  1. (config)# monitor session 1 source interface gigabitethernet 1/0/1-23 both destination interface channel-group 10

    Configures the analyzer to connect to channel group 10 and to mirror frames sent and received on Gigabit Ethernet interfaces 1/0/1 to 1/0/23.