How to Configure Mellanox Switch

Required Tools:

  1. Serial console cable (provided inside the box)
  2. Converter cable from serial port to USB port (Prolific)

Step-by-step guide using MacOS:

  1. Download and install driver for the converter cable
  2. Check if the driver is installed correctly
     $ kextstat | grep prolific
     159 0 0xffffff7f832fa000 0x6000 0x6000 com.prolific.driver.PL2303 (1.6.0) F6A6805D-685D-3E6D-BF81-106EBBC0A386
     $ ioreg -c IOSerialBSDClient | grep usb
     | | "IOTTYBaseName" = "usbserial"
     | | "IOCalloutDevice" = "/dev/cu.usbserial"
     | | "IODialinDevice" = "/dev/tty.usbserial"
     | | "IOTTYDevice" = "usbserial"
  3. Start the connection
     $ screen /dev/cu.usbserial
  4. Press Enter and follow instructions in official user guide.
    For example:
Mellanox Switch

Mellanox configuration wizard
 Do you want to use the wizard for initial configuration? y
 Step 1: Hostname? [switch-56d680] switch-10g
 Step 2: Use DHCP on mgmt0 interface? [yes] no
 Step 3: Use zeroconf on mgmt0 interface? [no] no
 Step 4: Primary IPv4 address and masklen? []
 Step 5: Default gateway?
 Step 6: Primary DNS server?,
 % Value must be an IPv4 address in the format of ''.
 Step 6: Primary DNS server?
 Step 7: Domain name?
 Step 8: Enable IPv6? [yes] yes
 Step 9: Enable IPv6 autoconfig (SLAAC) on mgmt0 interface? [no] no
 Step 10: Enable DHCPv6 on mgmt0 interface? [no] no
 Step 11: Admin password (Enter to leave unchanged)?
 Step 11: Confirm admin password?
 You have entered the following information:
 1. Hostname: switch-10g
 2. Use DHCP on mgmt0 interface: no
 3. Use zeroconf on mgmt0 interface: no
 4. Primary IPv4 address and masklen:
 5. Default gateway:
 6. Primary DNS server:
 7. Domain name:
 8. Enable IPv6: yes
 9. Enable IPv6 autoconfig (SLAAC) on mgmt0 interface: no
 10. Enable DHCPv6 on mgmt0 interface: no
 11. Admin password (Enter to leave unchanged): (CHANGED)
 To change an answer, enter the step number to return to.
 Otherwise hit to save changes and exit.