HP Mellanox SX1018 Mellanox MLNX-OS® User Manualfor SX1018HP Ethernet - Page 85

Verifying Mirroring Sessions

Page 85 highlights

Rev 1.6.9 Step 3. Step 4. Add destination interface. Run: switch (config monitor session 1) # destination interface ethernet 1/2 (Optional) Set header format. Run: 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. Step 5. Step 6. (Optional) Truncate the mirrored traffic to 64-byte packets. Run: switch (config monitor session 1) # truncate (Optional) Set congestion control. Run: switch (config monitor session 1) # congestion pause-excessive-frames The default for this command is to drop excessive frames. The pause-excessiveframes option uses flow control to regulate the traffic from the source interfaces. If the option pause-excessive-frame is selected, make sure that flow control is enabled on all source interfaces on the ingress direction of the monitoring session using the command flowcontrol in the interface configuration mode. Step 7. Enable the session. Run: switch (config monitor session 1) # no shutdown 5.10.3 Verifying Mirroring Sessions  To verify the attributes of a specific mirroring session: switch (config) # show monitor session 1 Admin: Enable Status: Up Truncate: Enable Destination interface: eth1/2 Congestion type: pause-excessive-frames Header format: add-ethernet-header - traffic class 2 - vlan 10 - priority 5 - destination-mac 00:0d:ec:f1:a9:c8 Mellanox Technologies 85 Mellanox Technologies Confidential

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

Rev 1.6.9
Mellanox Technologies
85
Mellanox Technologies Confidential
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:
Step 7.
Enable the session. Run:
5.10.3
Verifying Mirroring Sessions
To verify the attributes of a specific mirroring session:
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.
If the option
pause-excessive-frame
is selected, make sure that flow control is
enabled on
all
source interfaces on the ingress direction of the monitoring session
using the command
flowcontrol
in the interface configuration mode.
switch (config monitor session 1) # no shutdown
switch (config) # show monitor session 1
Admin: Enable
Status: Up
Truncate: Enable
Destination interface: eth1/2
Congestion type: pause-excessive-frames
Header format: add-ethernet-header
- traffic class 2
- vlan 10
- priority 5
- destination-mac 00:0d:ec:f1:a9:c8