Difference between revisions of "Mlnx-OS switch configuration"
Jump to navigation
Jump to search
(Created page with "Mlnx-OS configuration is similar to Cisco's IOS configuration. Probably on purpose. After logging in to the switch, you'll be in unprivileged command mode. Elevate privil...") |
|||
Line 2: | Line 2: | ||
After logging in to the switch, you'll be in unprivileged command mode. Elevate privileges with the <code>'''enable'''</code> command. Enter configuration mode with <code>'''configure terminal'''</code>. |
After logging in to the switch, you'll be in unprivileged command mode. Elevate privileges with the <code>'''enable'''</code> command. Enter configuration mode with <code>'''configure terminal'''</code>. |
||
+ | |||
+ | == Beginning config == |
||
+ | === hostnames FTW! === |
||
+ | |||
+ | mellanox-sx6018-0 [standalone: master] > |
||
+ | mellanox-sx6018-0 [standalone: master] > '''enable |
||
+ | mellanox-sx6018-0 [standalone: master] # '''configure term''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # '''hostname this-is-my-hostname''' |
||
+ | this-is-my-hostname [standalone: master] (config) # '''hostname mellanox-sx6018-0''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # '''exit''' |
||
+ | mellanox-sx6018-0 [standalone: master] # '''write memory''' |
||
+ | mellanox-sx6018-0 [standalone: master] # |
||
+ | |||
+ | Note that the prompt changed when the hostname was changed. |
||
+ | |||
+ | === Port types === |
||
+ | The SwitchX ASIC in these switches can speak both Infiniband '''and''' Ethernet. Here let's change port 10 to be an Ethernet port: |
||
+ | |||
+ | mellanox-sx6018-0 [standalone: master] > '''enable''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # '''interface ib 1/10 ''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config interface ib 1/10) # '''shutdown''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config interface ib 1/10) # '''exit''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # '''port 1/10 type ethernet''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # '''interface ethernet 1/10''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # '''no shutdown''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # '''exit''' |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # '''exit''' |
||
+ | mellanox-sx6018-0 [standalone: master] # '''write memory''' |
||
+ | mellanox-sx6018-0 [standalone: master] # |
||
+ | |||
+ | === Switching (ha!) it back to IB mode === |
||
+ | |||
+ | mellanox-sx6018-0 [standalone: master] > |
||
+ | mellanox-sx6018-0 [standalone: master] > enable |
||
+ | mellanox-sx6018-0 [standalone: master] # configure terminal |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # interface ethernet 1/10 |
||
+ | mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # shutdown |
||
+ | mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # exit |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # port 1/10 type infiniband |
||
+ | mellanox-sx6018-0 [standalone: master] (config) # exit |
||
+ | mellanox-sx6018-0 [standalone: master] # write memory |
||
+ | |||
+ | === And how about 4x 10GbE? === |
||
+ | A 4 way breakout cable is needed for this. But they're really not any more expensive than a 40GbE Mellanox compatible DAC. And a couple dozen 10GbE ports from an 18 port switch is kinda cool, isn't it? |
Latest revision as of 01:07, 26 February 2019
Mlnx-OS configuration is similar to Cisco's IOS configuration. Probably on purpose.
After logging in to the switch, you'll be in unprivileged command mode. Elevate privileges with the enable
command. Enter configuration mode with configure terminal
.
Beginning config
hostnames FTW!
mellanox-sx6018-0 [standalone: master] > mellanox-sx6018-0 [standalone: master] > enable mellanox-sx6018-0 [standalone: master] # configure term mellanox-sx6018-0 [standalone: master] (config) # hostname this-is-my-hostname this-is-my-hostname [standalone: master] (config) # hostname mellanox-sx6018-0 mellanox-sx6018-0 [standalone: master] (config) # exit mellanox-sx6018-0 [standalone: master] # write memory mellanox-sx6018-0 [standalone: master] #
Note that the prompt changed when the hostname was changed.
Port types
The SwitchX ASIC in these switches can speak both Infiniband and Ethernet. Here let's change port 10 to be an Ethernet port:
mellanox-sx6018-0 [standalone: master] > enable mellanox-sx6018-0 [standalone: master] (config) # interface ib 1/10 mellanox-sx6018-0 [standalone: master] (config interface ib 1/10) # shutdown mellanox-sx6018-0 [standalone: master] (config interface ib 1/10) # exit mellanox-sx6018-0 [standalone: master] (config) # port 1/10 type ethernet mellanox-sx6018-0 [standalone: master] (config) # interface ethernet 1/10 mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # no shutdown mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # exit mellanox-sx6018-0 [standalone: master] (config) # exit mellanox-sx6018-0 [standalone: master] # write memory mellanox-sx6018-0 [standalone: master] #
Switching (ha!) it back to IB mode
mellanox-sx6018-0 [standalone: master] > mellanox-sx6018-0 [standalone: master] > enable mellanox-sx6018-0 [standalone: master] # configure terminal mellanox-sx6018-0 [standalone: master] (config) # interface ethernet 1/10 mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # shutdown mellanox-sx6018-0 [standalone: master] (config interface ethernet 1/10) # exit mellanox-sx6018-0 [standalone: master] (config) # port 1/10 type infiniband mellanox-sx6018-0 [standalone: master] (config) # exit mellanox-sx6018-0 [standalone: master] # write memory
And how about 4x 10GbE?
A 4 way breakout cable is needed for this. But they're really not any more expensive than a 40GbE Mellanox compatible DAC. And a couple dozen 10GbE ports from an 18 port switch is kinda cool, isn't it?