qnote:mellanox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
qnote:mellanox [2019/09/16 23:40] kqnote:mellanox [2025/07/16 13:06] (current) k
Line 1: Line 1:
 ===== Быстрые заметки по сетевому оборудованию Mellanox ===== ===== Быстрые заметки по сетевому оборудованию Mellanox =====
 +
 +==== Удалить настройки sflow c интерфейса ====
 +
 +<code>
 +interface mlag-port-channel 1 no sflow enable
 +</code>
 +
 +"no" ставим перед "sflow", а не перед "interface"
 +
 +==== Добавить порт в работающий mpo порт ====
 +
 +FIXME
 +
 +<code>
 +   interface mlag-port-channel 1-2
 +   interface mlag-port-channel 1-2 mtu 9216 force
 +   interface mlag-port-channel 2 switchport mode trunk
 +
 +   interface mlag-port-channel 2 switchport trunk allowed-vlan add 3050
 +   interface mlag-port-channel 2 switchport trunk allowed-vlan remove 1
 +</code>
 +
 +<code>
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 mlag-channel-group 2 mode active ?
 +<cr>                           
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 mlag-channel-group 2 mode active 
 +% Mismatch between interface Eth1/8 mtu 1500 to mlag-port-channel 2 mtu 9216
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 mtu 9216 force 
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 mlag-channel-group 2 mode active 
 +% Port Eth1/8 mode is access and mlag 2 mode is trunk
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport mode ?
 +<switchport modes>             
 +access                         Only untagged ingress Ethernet packets are allowed
 +trunk                          Only tagged ingress Ethernet packets are allowed
 +hybrid                         Both tagged and untagged ingress Ethernet packets are allowed
 +access-dcb                     Only untagged ingress Ethernet packets are allowed. Egress packets will be priority tagged
 +dot1q-tunnel                   Both tagged and untagged ingress Ethernet packets are allowed. Egress packets are tagged with a second VLAN (802.1Q) header
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport mode trunk ?
 +<cr>                           
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport mode trunk 
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 mlag-channel-group 2 mode active 
 +% Port Eth1/8 is member of vlan 2 but mlag 2 is not member
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # sh interfaces ethernet 1/8 switchport 
 +
 +---------------------------------------------------------------------------------------
 +Interface         Mode           Access vlan          Allowed vlans                    
 +---------------------------------------------------------------------------------------
 +Eth1/           trunk          N/A                  1-2, 4, 6, 8-10, 14-16, 18-20, 23
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # sh interfaces mlag-port-channel 2 switchport 
 +
 +---------------------------------------------------------------------------------------
 +Interface         Mode           Access vlan          Allowed vlans                    
 +---------------------------------------------------------------------------------------
 +Mpo2              trunk          N/A                  3050
 +
 +
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport trunk allowed-vlan remove 1
 +Добавились все вланы в 1/8, а нужно только 3050
 +   interface mlag-port-channel 1 switchport trunk allowed-vlan add 2
 +   interface mlag-port-channel 1 switchport trunk allowed-vlan add 4
 +   interface mlag-port-channel 1 switchport trunk allowed-vlan add 6
 +   interface mlag-port-channel 1 switchport trunk allowed-vlan add 9-10
 +   interface mlag-port-channel 1 switchport trunk allowed-vlan add 14-16
 +
 +Даём один влан (без remove или add) или можно через remove оставить только нужные влан. 
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport trunk allowed-vlan 3050
 +
 +Переделываем на add схему. 
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport trunk allowed-vlan add 3050
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport trunk allowed-vlan remove1
 +% Value must be an integer between 1 and 4094.
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 switchport trunk allowed-vlan remove 1
 +% Cannot remove vlan or vlan range, there are vlans that are not in the allowed vlan list.
 +
 +После этого можно добавить 1/8 в mpo2
 +brv-mlnx15 [MLAG-DOM4: master] (config) # interface ethernet 1/8 mlag-channel-group 2 mode active
 +</code>
 +
 +----
 +
 +==== Неродные трансиверы ====
 +
 +<WRAP center round todo 60%>
 +Дописать. 
 +</WRAP>
 +
 +<WRAP center round important 60%>
 +Команда "fae cable-stamping-unlock 40g_lr4" на 12 секунгд положила и подняла порты, включая IPL порты. \\
 +В проде давать команду очень вдумчиво. 
 +</WRAP>
 +
 +<WRAP center round important 60%>
 +Неродные 10Г (NS-SFP+W32L60D) работают без дополнительных команд. 
 +</WRAP>
 +
 +<code>
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # fae cable-?
 +cable-info-cache               Cable info cache options
 +cable-stamping-lock            Lock cable stamping
 +cable-stamping-unlock          Unlock cable stamping
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # fae cable-stamping-?
 +cable-stamping-lock            Lock cable stamping
 +cable-stamping-unlock          Unlock cable stamping
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # fae cable-stamping-unlock ?
 +<type>                         Cable or transceiver speed
 +40g_lr4                        
 +eth_100g                       
 +100g_lr4                       
 +eth_sfp_25g                    
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # fae cable-stamping-unlock 40g_lr4 ?
 +<cr>                           Unlock non-Mellanox cable or transceiver
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # fae cable-stamping-unlock 40g_lr4 
 +</code>
 +
 +
 +==== Выключить сплит интферфейса ====
 +
 +Порт 1 разбит на 4 25Г порта. 
 +<code>
 +interface ethernet 1/1 module-type qsfp-split-4 force
 +</code>
 +
 +Собрать в один 100Г порт, в качестве номера порта используем первый из четырех разбитых портов. 
 +<code>
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # no interface ethernet 1/1/1 module-type ?
 +<cr>                           
 +force                          Sets the module type to its default value using force
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # no interface ethernet 1/1/1 module-type 
 +the following interfaces will be unmapped: 1/1/1 1/1/2 1/1/3 1/1/4 
 +Type 'YES' to confirm unsplit:
 +</code>
 +
 +Собрать в один 100Г порт без лишних вопросов. 
 +<code>
 +brv-mlnx16 [MLAG-DOM4: standby] (config) # no interface ethernet 1/1/1 module-type force 
 +the following interfaces will be unmapped: 1/1/1 1/1/2 1/1/3 1/1/4
 +</code>
 +
 +==== Обозначение направлений воздуха у Mellanox ====
 +
 +<code>
 +C2P – Connector-to-Power supply airflow - от портов к БП
 +P2C – Power supply-to-Connector airflow - от БП к портам
 +</code>
 +
 +<code>
 +MSN2100-CB2F
 +Spectrum™ based 100GbE 1U Open Ethernet Switch with MLNX-OS, 16 QSFP28 ports, 
 +2 Power Supplies (AC), x86 dual core, Short depth, 
 +P2C airflow, Rail Kit must be purchased separately ,RoHS6
 +</code>
 +
 +----
 +
 +
 +==== Выключить коммутатор ====
 +
 +Выключиь коммутатор можно командо "reload halt".\\
 +После этого включить коммутатор удаленно не получится, надо дергать питание. 
 +
 +<code>
 +D01-1-102-SW1-MLX-D02 [standalone: master] # reload ?
 +force      halt       noconfirm  
 +
 +D01-1-102-SW1-MLX-D02 [standalone: master] # reload halt ?
 +<cr>                           Shut down the system
 +noconfirm                      Shut down the system without asking about
 +                               unsaved changes
 +D01-1-102-SW1-MLX-D02 [standalone: master] # reload halt 
 +
 +
 +Halting system...
 +
 +
 +System shutdown initiated -- logging off.
 +
 +
 +
 +Mellanox MLNX-OS Switch Management
 +
 +D01-1-102-SW1-MLX-D02 login: 
 +Stopping pm: [  OK  ]
 +Stopping haveged: [  OK  ]
 +Stopping system message bus: [  OK  ]
 +Shutting down kernel logger: [  OK  ]
 +Shutting down system logger: [  OK  ]
 +Sending all processes the TERM signal... [  OK  ]
 +Sending all processes the KILL signal... [  OK  ]
 +Remounting root filesystem in read-write mode: 
 +Saving random seed:  [  OK  ]
 +Syncing hardware clock to system time [  OK  ]
 +Running vpart script:  [  OK  ]
 +Unmounting file systems:  [  OK  ]
 +Remounting root filesystem in read-only mode: 
 +Running vpart script: 
 +init: Re-executing /sbin/init
 +Halting system...
 +</code>
 +
 +----
  
 ==== Состояния конфигурации при апгрейде и даунгрейде MLNX-OS\Onyx ==== ==== Состояния конфигурации при апгрейде и даунгрейде MLNX-OS\Onyx ====
Line 98: Line 305:
 ==== Состояние SFP на выключенном порту ==== ==== Состояние SFP на выключенном порту ====
  
-Даже если порт в shutdown, все равно можно посмотреть уровени оптический сигналов. +Даже если порт в shutdown, все равно можно посмотреть уровни оптических сигналов. 
  
 <code> <code>
Line 159: Line 366:
 ==== Время загрузки MLNX-0S ==== ==== Время загрузки MLNX-0S ====
  
-MLNX-OS версии 3.6.4112 загружается за 3 минуты 30 секунд (+-5 секунд).+MLNX-OS версии 3.6.4112 в режиме MLAG загружается за 3 минуты 30 секунд (+-5 секунд).\\ 
 +Не в MLAG режиме загружается примерно за 1 минуту
  
  
qnote/mellanox.1568666438.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki