Set the port MTU 4
| Command | Platform and what it does |
mtu 9214 | Arista EOS · EOS CLIInterface configuration mode: sets the port MTU; the guide's leaf and spine ports use 9214 bytes. |
mtu 9216 | Juniper Junos (QFX) · Junos CLIStatement under an interface in the configuration; the guide's GPU-facing leaf ports use 9216 bytes. |
config interface mtu <interface_name> <mtu_value> | SONiC (community) · SONiC CLISets the MTU of a physical interface. |
mtu 1500 | Nokia SR Linux 26.7 · SR Linux CLIStatement under an interface in candidate mode; 1500 is the value of the guide's basic example. |
Trust DSCP and map it to a traffic class 7
| Command | Platform and what it does |
qos trust dscp | Arista EOS · EOS CLIInterface configuration mode: the port classifies packets by their DSCP value. |
qos map DSCP 16 17 18 19 20 21 22 23 to traffic-class 6 | Arista EOS · EOS CLIGlobal configuration: maps the listed DSCP values to traffic class 6, the guide's example values. |
set class-of-service classifiers dscp fabric-dscp forwarding-class NO-LOSS loss-priority low code-points 011010 | Juniper Junos (QFX) · Junos CLIClassifier fabric-dscp puts DSCP 26, the guide's RoCEv2 marking, in forwarding class NO-LOSS. |
set class-of-service interfaces et-* unit * classifiers dscp fabric-dscp | Juniper Junos (QFX) · Junos CLIApplies that classifier to every et- logical interface. |
info with-context qos classifiers | Nokia SR Linux 26.7 · SR Linux CLICandidate mode: prints the classifier policies; the guide's DSCP policy maps DSCP values to forwarding classes. |
--trust=TRUST | NVIDIA host adapter (MLNX_OFED) · mlnx_qos optionOption of mlnx_qos -i <interface>: sets the port to trust PCP or DSCP. |
mlnx_qos -i ens1f0 | NVIDIA host adapter (MLNX_OFED) · mlnx_qosPrints the port's current trust state, DSCP to priority map and PFC settings. |
Enable priority flow control on a port 7
SONiC turns PFC on per priority with one command. Arista enables PFC on the port and names the no-drop priority separately. Junos marks a forwarding class no-loss and attaches a congestion notification profile to the ports, and SR Linux combines a mapping profile with pfc-enable.
| Command | Platform and what it does |
priority-flow-control on | Arista EOS · EOS CLIInterface configuration mode: turns PFC on for the port. |
set class-of-service congestion-notification-profile pfc input dscp code-point 011010 pfc | Juniper Junos (QFX) · Junos CLIThe profile named pfc sends pause frames when traffic marked DSCP 26 is congested. |
set class-of-service interfaces et-* congestion-notification-profile pfc | Juniper Junos (QFX) · Junos CLIAttaches that profile to every et- port. |
config interface pfc priority Ethernet0 3 on | SONiC (community) · SONiC CLITurns PFC on for priority 3 of Ethernet0. |
pfc-enable true | Nokia SR Linux 26.7 · SR Linux CLIStatement under qos interfaces interface pfc: the port then obeys received pause frames. |
info with-context interface ethernet-1/4 ethernet flow-control | Nokia SR Linux 26.7 · SR Linux CLIPrints the Ethernet flow control setting, which the guide turns off before enabling PFC. |
mlnx_qos -i eth1 --pfc 0,0,0,0,1,0,0,0 | NVIDIA host adapter (MLNX_OFED) · mlnx_qosTurns PFC on for priority 4 of eth1; the list has one flag per priority, 0 to 7. |
Choose the lossless (no-drop) priority 7
| Command | Platform and what it does |
priority-flow-control priority 3 no-drop | Arista EOS · EOS CLIIn the guide's QoS profile: makes priority 3 no-drop. The manual also types it in interface configuration mode. |
set class-of-service forwarding-classes class NO-LOSS no-loss | Juniper Junos (QFX) · Junos CLIMakes forwarding class NO-LOSS lossless; the guide puts it on queue 4. |
set class-of-service forwarding-classes class NO-LOSS pfc-priority 3 | Juniper Junos (QFX) · Junos CLIMaps that class to PFC priority 3. |
show pfc priority | SONiC (community) · SONiC CLILists the lossless priorities of each interface. |
config interface pfc priority Ethernet0 3 off | SONiC (community) · SONiC CLITakes priority 3 of Ethernet0 out of the lossless set. |
info with-context qos pfc-mapping-profile custom-pfc-mapping-profile | Nokia SR Linux 26.7 · SR Linux CLIPrints a PFC mapping profile: priorities with PFC enabled, the queue each one pauses, and the deadlock timers. |
info from state qos pfc-mapping-profile default | Nokia SR Linux 26.7 · SR Linux CLIPrints the default mapping profile that is attached to all interfaces. |
Set up the PFC watchdog 9
The guard against a stuck paused queue has three names: PFC watchdog on Arista, Junos and SONiC, deadlock recovery on SR Linux, and PFC stall prevention on the NVIDIA adapter.
| Command | Platform and what it does |
priority-flow-control pause watchdog default timeout 10 | Arista EOS · EOS CLIGlobal configuration: starts the watchdog with a timeout of 10 seconds, the manual's example. |
priority-flow-control pause watchdog action drop | Arista EOS · EOS CLIGlobal configuration: sets the watchdog action to drop. |
show priority-flow-control counters watchdog | Arista EOS · EOS CLICounts how often each queue was found stuck and recovered. |
set class-of-service congestion-notification-profile pfc pfc-watchdog | Juniper Junos (QFX) · Junos CLITurns the watchdog on in the congestion notification profile named pfc. |
config pfcwd start --action drop all 400 --restoration-time 400 | SONiC (community) · SONiC CLIStarts the watchdog on all ports with the drop action, with the reference's example timers. |
show pfcwd config | SONiC (community) · SONiC CLIShows the watchdog configuration. |
show pfcwd stats | SONiC (community) · SONiC CLIWatchdog statistics such as storms detected and packets dropped. |
info from state qos interfaces interface ethernet-1/1 pfc | Nokia SR Linux 26.7 · SR Linux CLIPer-port PFC state, with the deadlock detection timer and the deadlock recoveries per priority. |
cat /sys/class/net/ens6/settings/pfc_stall_prevention | NVIDIA host adapter (MLNX_OFED) · sysfsReads the PFC stall prevention mode of the port, default or auto. |
Configure ECN marking on the lossless queue 10
The thresholds are written differently: kilobytes on an Arista transmit queue, percent of queue fill in a Junos drop profile, a WRED profile on SONiC and a WRED slope inside a queue management profile on SR Linux.
| Command | Platform and what it does |
random-detect ecn minimum-threshold 512 kbytes maximum-threshold 768 kbytes max-mark-probability 100 | Arista EOS · EOS CLITransmit-queue configuration: marks ECN between 512 and 768 kbytes of queue, the guide's spine values. |
show qos interfaces Ethernet 1/1 ecn | Arista EOS · EOS CLIShows the ECN thresholds of each transmit queue of the port. |
set class-of-service schedulers s1 explicit-congestion-notification | Juniper Junos (QFX) · Junos CLITurns ECN marking on in scheduler s1. |
set class-of-service drop-profiles dp1 interpolate fill-level 55 | Juniper Junos (QFX) · Junos CLIMarking starts at 55 percent queue fill; the guide's profile marks every packet at 90 percent. |
set class-of-service schedulers s1 drop-profile-map loss-priority any protocol any drop-profile dp1 | Juniper Junos (QFX) · Junos CLITies drop profile dp1 to the scheduler. |
config ecn -profile wredprofileabcd -rmax 100 | SONiC (community) · SONiC CLISets the red maximum threshold of a WRED profile and creates the profile if it is missing. |
show ecn | SONiC (community) · SONiC CLILists the WRED profiles with their thresholds and ECN mode. |
wred wred-slope <traffic-type> drop-probability <probability> enable-ecn true | Nokia SR Linux 26.7 · SR Linux CLIStatement in a queue management profile: turns ECN on for that WRED slope. |
info with-context qos buffer-management queue-management-profile wred-ecn-1 | Nokia SR Linux 26.7 · SR Linux CLIPrints a queue management profile, the place where the slope and its thresholds are kept. |
echo 1 > /sys/class/net/<interface>/ecn/<protocol>/enable/X | NVIDIA host adapter (MLNX_OFED) · sysfsTurns ECN on for priority X of the interface, per protocol. |
Reserve buffer and headroom for lossless traffic 7
| Command | Platform and what it does |
set class-of-service shared-buffer ingress buffer-partition lossless percent 66 | Juniper Junos (QFX) · Junos CLIGives lossless traffic 66 percent of the ingress shared buffer, the guide's value. |
set class-of-service shared-buffer egress buffer-partition lossless percent 66 | Juniper Junos (QFX) · Junos CLIThe same share on the egress side. |
config interface buffer priority-group lossless add Ethernet0 3-4 | SONiC (community) · SONiC CLICreates lossless priority groups 3 and 4 on Ethernet0. |
config buffer shared-headroom-pool size <size> | SONiC (community) · SONiC CLISets the size of the shared headroom pool. |
show buffer configuration | SONiC (community) · SONiC CLIShows the configured buffer pools and profiles. |
info with-context qos linecard 1 forwarding-complex 0 input pfc-buffer-reservation | Nokia SR Linux 26.7 · SR Linux CLIPrints the PFC buffer reservation, a percentage of the total buffer; 7220 IXR-H4/H5/H6/D4/D5 only. |
info from state qos buffer-management buffer-allocation-profile pfc-default | Nokia SR Linux 26.7 · SR Linux CLIPrints the default buffer allocation profile for PFC. |
Schedule the RoCE and CNP queues 8
| Command | Platform and what it does |
bandwidth percent 95 | Arista EOS · EOS CLITransmit-queue configuration in the guide's QoS profile: queue 3 gets a 95 percent bandwidth share. |
service-profile ai-scheduler | Arista EOS · EOS CLIInterface configuration mode: applies the QoS profile named ai-scheduler to the port. |
set class-of-service schedulers s2-cnp priority strict-high | Juniper Junos (QFX) · Junos CLIServes the queue of congestion notification packets with strict-high priority. |
set class-of-service scheduler-maps sm1 forwarding-class NO-LOSS scheduler s1 | Juniper Junos (QFX) · Junos CLIBinds the lossless class to scheduler s1 in map sm1. |
set class-of-service interfaces et-* scheduler-map sm1 | Juniper Junos (QFX) · Junos CLIApplies the scheduler map to every et- port. |
info with-context qos scheduler-policies scheduler-policy SP | Nokia SR Linux 26.7 · SR Linux CLIPrints a queue scheduler policy; the guide's example is a strict priority policy. |
info with-context qos interfaces interface ethernet-1/2 output scheduler | Nokia SR Linux 26.7 · SR Linux CLIPrints the scheduler policy applied to the output of the port. |
mlnx_qos -i <interface> -s ets,ets,strict -p 0,1,1,1,2,2,2 -t 30,70 | NVIDIA host adapter (MLNX_OFED) · mlnx_qosTwo ETS traffic classes at 30 and 70 percent and one strict class, the manual's example. |
Check PFC state and pause frame counters 8
| Command | Platform and what it does |
show priority-flow-control status | Arista EOS · EOS CLIPFC and watchdog settings of the switch and the PFC state of each port. |
show priority-flow-control counters | Arista EOS · EOS CLIPFC frames received and transmitted per port. |
show interfaces et-0/0/0:0 extensive | find "MAC Priority Flow Control Statistics" | Juniper Junos (QFX) · Junos CLIPause frames sent and received per priority on the port. |
show class-of-service interface et-0/0/0:0 | Juniper Junos (QFX) · Junos CLIShows the scheduler map, congestion notification profile and classifier of the port. |
show pfc counters | SONiC (community) · SONiC CLIPFC frames received and sent per priority, for all ports. |
sonic-clear pfccounters | SONiC (community) · SONiC CLIClears the PFC counters. |
info with-context from state qos interfaces interface eth-1/4 pfc | Nokia SR Linux 26.7 · SR Linux CLIPFC state of the port with pause frames received and generated per priority. |
ethtool -S eth35 | grep prio4 | NVIDIA host adapter (MLNX_OFED) · ethtoolCounters of one priority of the port, pause frames included; here priority 4 of eth35. |
Check ECN marking 8
| Command | Platform and what it does |
random-detect ecn count | Arista EOS · EOS CLITransmit-queue configuration: turns the ECN counter of the queue on. |
hardware counter feature ecn out | Arista EOS · EOS CLIGlobal configuration: enables the ECN counter feature in hardware, required on the platforms the guide lists. |
show interfaces et-0/0/0:0 extensive | match ecn | Juniper Junos (QFX) · Junos CLICount of ECN-marked packets seen on the port. |
show interfaces queue et-0/0/0:0 forwarding-class NO-LOSS | Juniper Junos (QFX) · Junos CLIQueue counters of the lossless class, with its ECN-marked packets. |
show queue wredcounters [interface-name] | SONiC (community) · SONiC CLIWRED and ECN statistics of the egress queues; taken from the design document of the feature. |
counterpoll wredqueue <enable | disable> | SONiC (community) · SONiC CLITurns polling of the queue-level WRED and ECN counters on or off. |
info from state with-context qos interfaces interface ethernet-1/33 output queues queue oc-unicast-0 queue-statistics aggregate-statistics ecn-marked-packets | Nokia SR Linux 26.7 · SR Linux CLIPackets marked by ECN on one output queue; 7220 IXR-H5/H6 and the 7250 IXR models the guide names. |
cat /sys/class/net/<interface>/ecn/<protocol>/enable/X | NVIDIA host adapter (MLNX_OFED) · sysfsShows whether ECN is on for priority X. |
Watch queue and buffer occupancy 9
| Command | Platform and what it does |
queue-monitor length | Arista EOS · EOS CLIGlobal configuration: enables LANZ, the queue length monitor. |
show queue-monitor length ethernet 6-8 limit 100 | Arista EOS · EOS CLILANZ on Trident 3 and Tomahawk switches: last 100 over-threshold queue records of Ethernet 6 to 8. |
show interfaces queue buffer-occupancy et-0/0/0:0 | Juniper Junos (QFX) · Junos CLIPeak occupancy of each egress queue of the port. |
show interfaces priority-group et-0/0/1 buffer-occupancy | Juniper Junos (QFX) · Junos CLIPeak ingress buffer use per priority group; buffer monitoring must be enabled first. |
show class-of-service shared-buffer | Juniper Junos (QFX) · Junos CLIShared buffer partitions and the lossless headroom in use. |
show priority-group watermark headroom | SONiC (community) · SONiC CLIHighest headroom use per priority group on each port. |
show queue watermark unicast | SONiC (community) · SONiC CLIHighest egress shared pool use per unicast queue. |
show buffer_pool watermark | SONiC (community) · SONiC CLIHighest occupancy of each buffer pool. |
info with-context from state platform linecard 1 forwarding-complex 0 buffer-memory | Nokia SR Linux 26.7 · SR Linux CLIBuffer memory used and free on one forwarding complex. |
Check interface status and counters 9
| Command | Platform and what it does |
show interfaces status | Arista EOS · EOS CLILink status, VLAN, duplex, speed and type of the ports. |
show interfaces [interface] counters errors | Arista EOS · EOS CLIError counters of the given interfaces. |
show interfaces [interface] counters queue | Arista EOS · EOS CLIQueue drop counters of the given interfaces. |
show interfaces et-0/0/1 extensive | Juniper Junos (QFX) · Junos CLIFull detail of one port; the guide reads its pause frames, input drops and resource errors there. |
show interfaces status | SONiC (community) · SONiC CLILanes, speed, MTU, type and operational and administrative state of the ports. |
show interfaces counters | SONiC (community) · SONiC CLITraffic counters of all ports; further forms show errors, rates or one port in detail. |
show interface brief | Nokia SR Linux 26.7 · SR Linux CLISummary of the interfaces that are operationally up or down. |
show interface ethernet-1/1 queue-statistics | Nokia SR Linux 26.7 · SR Linux CLIEgress queue and virtual output queue statistics of one port. |
ethtool -S eth<x> | NVIDIA host adapter (MLNX_OFED) · ethtoolStatistics counters of the adapter port. |
List LLDP neighbors 5
| Command | Platform and what it does |
show lldp neighbors | Arista EOS · EOS CLIThe LLDP neighbors of the switch, per port. |
show lldp neighbors | Juniper Junos (QFX) · Junos CLIOperational mode: information about the LLDP neighbors. |
show lldp table | SONiC (community) · SONiC CLIBrief summary of all LLDP neighbors. |
show lldp neighbors | SONiC (community) · SONiC CLIMore detail about all LLDP neighbors, or about those on one interface. |
show system lldp neighbor | Nokia SR Linux 26.7 · SR Linux CLILLDP neighbor report with system name, chassis ID and port. |
Set or check DCBX 5
| Command | Platform and what it does |
dcbx mode ieee | Arista EOS · EOS CLIInterface configuration mode: runs the IEEE version of DCBX on the port. |
show dcbx Ethernet 50 | Arista EOS · EOS CLIDCBX status of the port and the TLVs received from the peer. |
set protocols dcbx interface all dcbx-version ieee-dcbx | Juniper Junos (QFX) · Junos CLIConfiguration mode: sets IEEE DCBX on all interfaces. |
info from state qos interfaces interface eth-1/4 dcbx | Nokia SR Linux 26.7 · SR Linux CLILocal and remote DCBX state of the port, per PFC priority. |
lldptool -T -i <ethX> -V PFC enableTx=yes | NVIDIA host adapter (MLNX_OFED) · lldptoolMakes the host send the PFC TLV to the switch; the lldpad daemon must be running. |
Read transceiver diagnostics 4
| Command | Platform and what it does |
show interface Ethernet11/1 transceiver dom | Arista EOS · EOS CLITemperature, voltage and optical power of the module in the port. |
show interfaces transceiver eeprom --dom Ethernet0 | SONiC (community) · SONiC CLIDecodes the module EEPROM and adds the diagnostic monitoring values. |
show interface ethernet-1/3 detail | Nokia SR Linux 26.7 · SR Linux CLIPort detail with a transceiver section: module type, vendor, temperature and power per channel. |
ethtool -m|--dump-module-eeprom eth<x> | NVIDIA host adapter (MLNX_OFED) · ethtoolReads and decodes the EEPROM of the cable or module. |
Commit or save the configuration 8
Junos and SR Linux apply changes by committing a candidate configuration. Arista and SONiC write the running configuration to a startup file, and SR Linux has a separate command for that as well.
| Command | Platform and what it does |
copy running-config startup-config | Arista EOS · EOS CLIPrivileged EXEC: stores the running configuration as the startup configuration; write does the same. |
commit check | Juniper Junos (QFX) · Junos CLIConfiguration mode: checks the candidate configuration for errors without activating it. |
commit | Juniper Junos (QFX) · Junos CLIActivates the candidate configuration. |
rollback 1 | Juniper Junos (QFX) · Junos CLILoads the configuration from before the last commit; the guide uses it to get a failed one back. |
config save -y | SONiC (community) · SONiC CLIWrites the configuration database to /etc/sonic/config_db.json without asking. |
commit stay | Nokia SR Linux 26.7 · SR Linux CLICandidate mode: applies the changes and stays in candidate mode. |
commit confirmed | Nokia SR Linux 26.7 · SR Linux CLIApplies the changes and starts a timer; without confirmation the configuration reverts. |
save startup | Nokia SR Linux 26.7 · SR Linux CLISaves the running configuration as the startup configuration. |
Collect a support bundle 4
| Command | Platform and what it does |
send support-bundle flash:/ | Arista EOS · EOS CLIBuilds a support bundle ZIP file and writes it to flash. |
request support information | Juniper Junos (QFX) · Junos CLIOperational mode: runs the series of show commands that support asks for. |
show techsupport | SONiC (community) · SONiC CLIGathers logs and device state into an archive under /var/dump. |
tech-support | Nokia SR Linux 26.7 · SR Linux CLICollects technical support data into a ZIP file; usable in any configuration mode. |
No row matches that filter.
Notes
- Arista rows are EOS CLI commands from the EOS User Guide for version 4.37.0F and from two Arista deployment guides for AI networks. Each row names its mode: EXEC for
show commands, global, interface, transmit-queue or QoS-profile configuration for the rest. Sections of the manual that apply only to retired switch chips (Arad, Petra, FM6000, Trident II, Helix) were not used.
- Juniper rows are Junos CLI commands for QFX switches:
set statements are typed in configuration mode and take effect at commit; show and request commands run in operational mode. The class-of-service rows come from Juniper's validated design for AI data centers (QFX5220, QFX5230 and QFX5240 switches) and its congestion control example, the DCBX row from the QFX traffic management guide, commit check and rollback from the Junos OS Evolved installation guide, and the LLDP and support rows from the Junos CLI reference.
- SONiC rows are typed at the Linux shell of the switch and come from the command reference and design documents of the community
master branch; the reference runs config commands with sudo. A vendor build of SONiC can differ.
- Nokia rows are SR Linux release 26.7 CLI commands. The quality of service guide shows configuration as the output of
info in candidate mode instead of the statements that were typed, so many Nokia rows are the info command that prints the block; info from state reads live state. Several features are limited to the 7220 IXR or 7250 IXR models named in the row.
- NVIDIA rows are not switch commands: they run on the Linux host that owns the ConnectX adapter and come from the MLNX_OFED documentation, version 24.10-5.1.6.1 LTS. No NVIDIA Ethernet switch document was among those compared.
- Interface names, profile names, priorities, thresholds and percentages inside a command are the example values of the vendor's document.