Configure SPAN Mirroring

All protocols such as LLDP must be disabled on interfaces that you select to be destination interfaces.
  1. Access global configuration mode.
    SLX # configure terminal
  2. (If necessary) Disable protocols on the destination interface.
    This example disables LLDP.
    1. Enter interface configuration mode.
      SLX (config)# interface ethernet 0/2
    2. Disable LLDP.
      SLX (conf-if-eth-0/2)# lldp disable
      
    3. Exit interface configuration mode.
      SLX (conf-if-eth-0/2)# exit
  3. Create the port mirroring session and assign a number.
    SLX (config)# monitor session 22
    
  4. Identify the source Ethernet interface port, the destination interface and port (idenitify source interface and destination interface) and the direction of the traffic to monitor. Then create the appropriate mirroring configuration.
    SLX (config-session-22)# source ethernet 0/1 destination ethernet 0/2 direction tx
    This example enables session 22 for monitoring traffic from source Ethernet 0/1 to destination Ethernet 0/2 in the egress direction.

The following example summarizes the commands in this procedure.

SLX# configure terminal
SLX (config)# interface ethernet 0/2
SLX (conf-if-eth-0/2)# lldp disable
SLX (conf-if-eth-0/2)# exit
SLX (config)# monitor session 22
SLX (config-session-22)# source ethernet 0/1 destination ethernet 0/2 direction tx

The following example shows the configuration of mirroring from a Port Channel interface to an Ethernet interface. Traffic from both directions is mirrored.

SLX# configure terminal
SLX (config)# interface ethernet 0/2
SLX (conf-if-eth-0/2)# lldp disable
SLX (conf-if-eth-0/2)# exit
SLX (config)# monitor session 23
SLX (config-session-23)# source port-channel 1 destination ethernet 0/1 direction both
            

The following example shows the configuration of mirroring from a Port Channel to a destination that is a Port Channel. Traffic from both directions is mirrored.

SLX# configure terminal
SLX (config)# monitor session 24
SLX (config-session-24)# source port-channel 1 destination port-channel 11 direction both