Configuring a source switch in a local mirroring session

Enter the mirror port command on the source switch to configure an exit port on the same switch. To create the mirroring session, use the information gathered in High-level overview of the mirror configuration process.

Syntax


mirror-port <PORT-NUM>
no mirror-port <PORT-NUM>

The no form of the command removes the mirroring session and any mirroring source previously assigned to that session.

Assigns the exit port to use for the specified mirroring session. You must execute command from the global configuration level.

 

switch(config)# mirror-port 
[ethernet] PORT-NUM   Define the mirror port for diagnostic purposes.
switch(config)# mirror-port 1
switch(config)# interface 2
switch(eth-2)# monitor  
switch(eth-2)# interface 3
swicth(eth-3)# monitor  
 
switch(eth-3)# show monitor 

Network Monitoring Port

  Mirror Port: 1

  Monitoring sources
  ------------------
  2                 
  3                 
switch(config)# show running-config

Running configuration:

; J9855A Configuration Editor; Created on release #YA.16.0x.0000x
; Ver #14:01.44.00.04.19.02.13.98.82.34.61.18.28.f3.84.9c.63.ff.37.27:45
hostname "switch"
mirror-port 1
interface 2
   monitor
   exit
interface 3
   monitor
   exit
snmp-server community "public" unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-50
   ip address dhcp-bootp
   exit