User Tools

Site Tools


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 [2023/07/05 13:36] 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 ==== ==== Обозначение направлений воздуха у Mellanox ====
Line 15: Line 159:
 </code> </code>
  
 +----
  
  
qnote/mellanox.1688553407.txt.gz · Last modified: by k

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki