Unraid: Modificar Bonding de red
Hace ya unas entradas os enseñé como pasé mi red Gigabit a una red 2,5Gb/10Gb con el cambio al router RB5009 y el Zyxel 1210.
En este proceso, os explicaba como compré un adaptador USB-C a Ethernet 2.5Gb, que funciona sin problemas tanto en Linux, Proxmox, MacOS, Windows y Unraid:
- https://www.amazon.es/dp/B0C2H9HVH3?tag=elblogdenegu-21
- ENTRADA: https://www.maquinasvirtuales.eu/conexion-zyxel-xgs1210-12-a-mikrotik-rb5009/
Desde entonces, llevo dándole vueltas, que puedo usar los USB 3.0 de mi HP Microserver Gen8 con estos adaptadores, para subir la velocidad de las interfaces de red, que están limitados a 1 GB. Es un equipo obsoleto, pero podrían llegar sus puertos a 5Gb sin problema, con lo que es darle otra vuelta de tuerca a un equipo que funciona a las mil maravillas y que creo tardaré en renovar.
Aunque entre los dos equipos, ya no tengo mucho juego por número de bocas a velocidades superiores a 1Gb/s, porque cambié los hypervisores a 2,5Gb, hasta que se me ocurra otra cosa, simplemente voy a usar interfaces 1Gb extras para aumentar la velocidad a 3Gb o 4Gb con el bonding que ya forman los dos interfaces gigabit del HP Microserver Gen8.
Para los que no sepáis que es el bonding, os dejo unas entradas:
- Mikrotik: Crear bonding en router RB5009UG+S+IN
- Proxmox: Crear un Bond o Nic Teaming o Link Aggregation
- Unraid: Configurar Trunk con HP Aruba
Os dejo los datos de mi bond, como veis suma 2Gb y lo conforman dos interfaces. Os lo muestro vía comando:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
root@UNRAID:~# ethtool bond0 Settings for bond0: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 2000Mb/s Duplex: Full Auto-negotiation: off Port: Other PHYAD: 0 Transceiver: internal Link detected: yes root@UNRAID:~# cat /boot/config/network.cfg # Generated settings: IFNAME[0]="br0" BONDNAME[0]="bond0" BONDING_MIIMON[0]="100" BRNAME[0]="br0" BRSTP[0]="no" BRFD[0]="0" BONDING_MODE[0]="4" BONDNICS[0]="eth0 eth1" BRNICS[0]="bond0" PROTOCOL[0]="ipv4" USE_DHCP[0]="yes" DHCP_KEEPRESOLV="no" USE_DHCP6[0]="yes" DHCP6_KEEPRESOLV="no" MTU[0]="9000" SYSNICS="1" |
Si queréis revisarlo vía interfaz gráfica, vais a Settings -> Network Settings dentro de la web de gestión de Unraid:
Para cambiar las configuraciones y agregar otro interfaz, tendréis que:
- En vuestro switch o router mikrotik, como es mi caso, agregar el interfaz nuevo al bond
- Conectar el adaptador USB-C a Ethernet al USB 3.0 (el modelo que yo he usado funciona, no todos los adaptadores son compatibles)
- Parar máquinas virtuales y contenedores docker:
- Una vez paradas las VM´s y Containers, tendréis que parar el raid desde Main -> Array Operation:
- Y se habilitarán las opciones. Luego desde Main, arrancáis el array y luego las máquinas virtuales y contenedores.
- Si este proceso es lioso, podéis también cambiar el siguiente fichero “/boot/config/network.cfg” en la línea “BONDNICS[0]” ,agregando la interfaz nueva:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
root@UNRAID:~# cat /boot/config/network.cfg # Generated settings: IFNAME[0]="br0" BONDNAME[0]="bond0" BONDING_MIIMON[0]="100" BRNAME[0]="br0" BRSTP[0]="no" BRFD[0]="0" BONDING_MODE[0]="4" BONDNICS[0]="eth0 eth1 eth2" BRNICS[0]="bond0" PROTOCOL[0]="ipv4" USE_DHCP[0]="yes" DHCP_KEEPRESOLV="no" USE_DHCP6[0]="yes" DHCP6_KEEPRESOLV="no" MTU[0]="9000" SYSNICS="1" |
- Reiniciáis el sistema y comprobáis la velocidad:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
root@UNRAID:~# ethtool bond0 Settings for bond0: Supported ports: [ ] Supported link modes: Not reported Supported pause frame use: No Supports auto-negotiation: No Supported FEC modes: Not reported Advertised link modes: Not reported Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 3000Mb/s Duplex: Full Auto-negotiation: off Port: Other PHYAD: 0 Transceiver: internal Link detected: yes |
Te ha gustado la entrada SGUENOS EN TWITTER O INVITANOS A UN CAFE?