Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch
Rev 2.10
Mellanox Technologies
529
Mellanox Technologies Confidential
Figure 15: Mirroring Session
To configure a mirroring session:
Step 1. Create a session. Run:
Step 2. Add source interface(s). Run:
Step 3. Add destination interface. Run:
Step 4. (Optional) Set header format. Run:
Step 5. (Optional) Truncate the mirrored traffic to 64-byte packets. Run:
Step 6. (Optional) Set congestion control. Run:
switch (config) # monitor session 1
This command enters a monitor session configuration mode. Upon first implementa-
tion the command also creates the session.
switch (config monitor session 1) # add source interface ethernet 1/1 direction both
switch (config monitor session 1) # destination interface ethernet 1/2
switch (config monitor session 1) # header-format add-ethernet-header destination-mac
00:0d:ec:f1:a9:c8 add-vlan 10 priority 5 traffic-class 2
For remote connectivity use the header formats
add-vlan
or
add-ethernet-header
. For
local connectivity, use
local
.
switch (config monitor session 1) # truncate
switch (config monitor session 1) # congestion pause-excessive-frames
The default for this command is to drop excessive frames. The
pause-excessive-
frames
option uses flow control to regulate the traffic from the source interfaces.










