Port mirroring, is the duplication of traffic from a set of source ports onto a destination port. User can configure port mirroring to monitor and analyze source port traffic.

The set interface ethernet-switching-options analyzer output command configures destination port, as the observing port of port mirroring. User can use the set interface ethernet-switching-options analyzer input command configure source port.

 

Command Syntax
set interface ethernet-switching-options analyzer <string> output <port>
delete interface ethernet-switching-options analyzer <string> output <port>


Parameter

Parameter

Description

<string> 

Specifies the name of a mirror, should consist of letters and/or numerals.

<port>

 Specifies ethernet switching port identifier of the destination port.

NOTE:

  • For Tomahawk platform switches, port mirroring can not be applied on both direction of the same source interface, that is, you can configure either ingress or egress traffic on the same source interface.
  • One chassis switch supports a maximum of four input rules. For example, the following configurations are two input rules of analyzer 111 for the same source interface ge-1/1/3 of two different directions, ingress and egress.

    admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/3

    admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/3

 


Example
• Configure ge-1/1/3 as the mirrored port, and ge-1/1/4 as the observing port.

admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/3
admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/3
admin@XorPlus# set interface ethernet-switching-options analyzer 111 output ge-1/1/4
admin@XorPlus# commit