Version 2.0
Command Line Interface (CLI) Management
174
Mellanox Technologies
Displays the list of available commands.
end Closes current Cli session.
exit Exits to previous menu.
port ethernet set mtu Updates the mtu of an ethernet port.
port ethernet set status Enables/disables the port.
port ethernet show Shows the status of all ethernet ports.
port ib set mtu Updates the mtu of an infiniband port.
port ib show Shows the status of inifiniband port.
port statistics reset Resets port statistics.
port statistics show Shows the statistics of all the ethernet
ports.
Usage
port ethernet set mtu port ethernet set mtu [1..2] [1500,9216]
port ethernet set status port ethernet set status [1..2]
[disable,enable]
port ethernet show port ethernet show
port ib set mtu port ib set mtu [1500,2048]
port ib show port ib show
port statistics reset port statistics reset [port [1..2]]
port statistics show port statistics show
port ethernet show port ethernet show
The following details the commands available under the Ports menu:
port set port ethernet set mtu
Description:
S
et the Ethernet port’s MTU
Syntax:
port ethernet set mtu [1..2] [disable,enable] [1500,9216]
Example:
sRB-20210G-61f0(config-port)# port ethernet set 1 disable mtu 1 1500
sRB-20210G-61f0(config-port)# port ethernet set 1 mtu 2 enable 9198
Expected results:
sRB-20210G-61f0(config-port)# port ethernet show
port type status mtu speed(Gbps) enable/disable
|------|--------|------------|-----|--------------|--------------
1 copper active 1500 10 enable
2 copper active 9198 10 enable
port ethernet set status
Description:
Set the Ethernet port’s status
Syntax:
port ethernet set status [1..2] [disable,enable]
Example:
sRB-20210G-61f0(config-port)# port ethernet set status 1 disable
sRB-20210G-61f0(config-port)# port ethernet set status 1 enable