Mellanox Switches - Tips & Tricks

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Freebsd1976

Active Member
Feb 23, 2018
404
73
28
anyone try setting fan speed below 20% on sn2100?
maybe modify the linux/drivers/net/ethernet/mellanox/mlxsw code and recompile module is the right way?
these two files
Code:
https://github.com/torvalds/linux/blob/master/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c
https://github.com/torvalds/linux/blob/master/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c
static int mlxsw_thermal_set_cur_state(struct thermal_cooling_device *cdev,
                       unsigned long state)

{
    struct mlxsw_thermal *thermal = cdev->devdata;
    struct device *dev = thermal->bus_info->dev;
    char mfsc_pl[MLXSW_REG_MFSC_LEN];
    int idx;
    int err;

    if (state > MLXSW_THERMAL_MAX_STATE)
        return -EINVAL;

    idx = mlxsw_get_cooling_device_idx(thermal, cdev);
    if (idx < 0)
        return idx;

    /* Normalize the state to the valid speed range. */
    state = max_t(unsigned long, MLXSW_THERMAL_MIN_STATE, state);
    mlxsw_reg_mfsc_pack(mfsc_pl, idx, mlxsw_state_to_duty(state));
    err = mlxsw_reg_write(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
    if (err) {
        dev_err(dev, "Failed to write PWM duty\n");
        return err;
    }
    return 0;
}
 

Aluminat

Member
Jul 5, 2019
56
23
8
Hmm, my sn2410 suddenly required new on-port lic. currently, running cumulus os.
Am I miss reading something on tutorial?
 

Matta

Member
Oct 16, 2022
64
16
8
I have SX6012 and cannot successfully add VLANs to switch.

My network consists of non-tagged LAN (my private network), VLAN 100 and VLAN 200. VLAN 100 and 200 are mostly wifi clients connecting to Mikrotik APs. All my other gear is mostly Mikrotik (router and switches) and I got them configured properly.
Under EthMgmt ==> VLAN I've created VLAN 100 AND VLAN 200
Under that, in "Interfaces Switchport Table", I need to set all ports mode to hybrid, and "allowed vlans" to set to "all".
Is that correct procedure ?
 

Tim111

New Member
Jan 9, 2019
29
3
3
I have a hp brand sx6036 I was trying out different settings and rebooted. Now I can't get past loading module. Red light is on anyone know how to load a factory configuration. Both images are the latest and tried switching still same problem. Also tried reset button no help.
 

Tim111

New Member
Jan 9, 2019
29
3
3
press and hold reset button for long time 5-10mins ,watch console output
I did the 10 minutes and it stops on sytem initializing then modules are being configured then after a long time a fatal internal error occurred any other things I could try?
 

Tim111

New Member
Jan 9, 2019
29
3
3
I fixed it yay I had a feeling it was a bad configuration file. For any one who winds up in the same place. The fix is sftp into switch navigate to / then /config/db edit active should show current configuration edit to an earlier one save reboot should be good.
 

Matta

Member
Oct 16, 2022
64
16
8
I have SX6012 and cannot successfully add VLANs to switch.

My network consists of non-tagged LAN (my private network), VLAN 100 and VLAN 200. VLAN 100 and 200 are mostly wifi clients connecting to Mikrotik APs. All my other gear is mostly Mikrotik (router and switches) and I got them configured properly.
Under EthMgmt ==> VLAN I've created VLAN 100 AND VLAN 200
Under that, in "Interfaces Switchport Table", I need to set all ports mode to hybrid, and "allowed vlans" to set to "all".
Is that correct procedure ?
*bump*

Anyone ?
Thanks !
 

cev

New Member
Aug 9, 2022
5
0
1
you might just need to set the access vlan for your non-tagged network as well.
 

nontroller69

New Member
May 4, 2024
15
1
3
I'm looking at some SX6018 switches on Ebay, but looking at the pictures, it seems the power connectors for these switches are different?....is that just for plugs to some sort of a data center power backup power supply or a power distribution module? Can they be plugged into using normal server power cables into a 110V or a 220V power strip? Thanks.

SX6018 on Ebay
 

MountainBofh

Beating my users into submission
Mar 9, 2024
342
246
43
I'm looking at some SX6018 switches on Ebay, but looking at the pictures, it seems the power connectors for these switches are different?....is that just for plugs to some sort of a data center power backup power supply or a power distribution module? Can they be plugged into using normal server power cables into a 110V or a 220V power strip? Thanks.

SX6018 on Ebay
Looks like just a goofy power cable. The power supply on the back looks to be "normal" and appears to take a normal female power plug.
 
Last edited:
  • Like
Reactions: nontroller69

Tim111

New Member
Jan 9, 2019
29
3
3
Just unplug wire plug in regular power cord.
Also I noticed it has black face could be an emc version. If it were me I would get the sx6036 half the price and no conversion.
 

NablaSquaredG

Bringing 100G switches to homelabs
Aug 17, 2020
1,618
1,072
113
I have just bought 2 Mellanox SN2100, that seems to be dog slow. It takes 5 minutes to boot, and 5 minutes to login. I guess this is because of bad SSD?
Possible. Always replace Mellanox SSDs.. all models used in SN2000 are awful.

but congratz to the SN2100!
 

NablaSquaredG

Bringing 100G switches to homelabs
Aug 17, 2020
1,618
1,072
113
Yep that's gonna work

Remember to install ONIE in BIOS Mode, NOT UEFI

I found some old Intel m.2 MSATA 240GB 80mm length. They are too large to lock with the m.2 screw, but it still fits and shows up in bios. Im not really gonna move these switches around much so it probably fine
Pleaseee don't jank with such nice switches. Even like the cheap Transcend MTS430S ($20) will be fine AND it fits with the screw.
 

BackupProphet

Well-Known Member
Jul 2, 2014
1,187
769
113
Stavanger, Norway
intellistream.ai
Thanks, though I figured I can actually create a virtual usb block storage device in Linux. I do have old mini-usb to usb-a cables lying around. I will try that tomorrow, now I need some sleep :)

If that m2 ssd should get lose, I will just fasten it with some electrical tape
:cool:

The second sn2100 was better, the ssd was more responsive. I see now that I am affected by the AVR54 Atom bug :(