GuíasGuides · Nivel 2Level 2

Switches HP y Aruba: VLANs tagged y untagged, copia de la configuración, firmware y un puerto que negocia a 100 MbHP and Aruba switches: tagged and untagged VLANs, config backup, firmware and a port that negotiates at 100 Mb

Los comandos básicos de un switch HP ProCurve o ArubaOS-Switch, las VLANs con la terminología de HP frente a la de Cisco, guardar con write memory, la copia por TFTP o SCP, la actualización de firmware con dos imágenes y el puerto que va a 100 Mb o acumula errores.The basic commands of an HP ProCurve or ArubaOS-Switch switch, VLANs in HP terms versus Cisco's, saving with write memory, backup over TFTP or SCP, a firmware update with two images, and the port that runs at 100 Mb or keeps piling up errors.

Qué vas a conseguir

Moverte con soltura en un switch de acceso HP de la familia ProCurve / ArubaOS-Switch (series 2530, 2930F, 3810 y similares): leer la configuración, ver puertos, VLANs, direcciones MAC y vecinos, crear una VLAN con la terminología de HP, guardar, sacar una copia fuera del equipo, actualizar el firmware sin quedarte sin vuelta atrás y diagnosticar el puerto de un usuario que va lento.

Antes de empezar

  • Acceso por SSH a la IP de gestión, o un cable de consola si el equipo no tiene red. En ArubaOS-Switch hay dos niveles: operator (solo lectura) y manager, al que se pasa con enable.
  • Un servidor TFTP o SCP en la red de gestión para las copias y el firmware.
  • Saber qué familia tienes delante. ArubaOS-Switch (el antiguo ProCurve) y AOS-CX (series 6100, 6200, 6300, 8xxx) son sistemas distintos con comandos distintos. show version lo dice en la primera línea; esta guía usa la sintaxis de ArubaOS-Switch y señala las diferencias de CX.

1. Los comandos de cada día

sw-p2-acc01 · ArubaOS-Switch
show interfaces brief  Port   Type      | Alert Enabled Status Mode     Flow Ctrl  ------ --------- + ----- ------- ------ -------- ---------  11     100/1000T | No    Yes     Up     1000FDx  off  12     100/1000T | No    Yes     Up     100FDx   off  13     100/1000T | No    Yes     Down   1000FDx  offshow vlans  VLAN ID Name                 | Status     Voice Jumbo  ------- -------------------- + ---------- ----- -----  1       DEFAULT_VLAN         | Port-based No    No  20      USUARIOS             | Port-based No    No  30      VOZ                  | Port-based Yes   Noshow mac-address 12  MAC Address   VLANs  ------------- ------  a0b3cc-4f12d8 20show lldp info remote-device  LocalPort | ChassisId     PortId SysName  --------- + ------------- ------ -----------  49        | 9c8cd8-11aa00 1/0/24 sw-core-01
  • show running-config es la configuración en memoria; show config es la guardada (la que carga al arrancar). Si difieren, hay cambios sin guardar.
  • show vlans ports 12 dice en qué VLANs está un puerto y show vlans 20 qué puertos tiene una VLAN.
  • show mac-address a0b3cc-4f12d8 busca una MAC concreta: el formato de HP es xxxxxx-xxxxxx.
  • show lldp info remote-device es el equivalente de show lldp neighbors de Cisco: con él sabes a qué switch o teléfono lleva cada puerto. Añade detail y el número de puerto para ver la IP de gestión del vecino.
  • show logging -r muestra el registro con lo más reciente arriba: caídas de enlace, bucles, fallos de fuente.

2. VLANs: tagged y untagged

HP y Cisco hablan de lo mismo con palabras distintas, y la confusión más peligrosa es trunk:

Lo que quieresCisco IOSHP ArubaOS-Switch
Puerto de usuario en la VLAN 20switchport access vlan 20puerto untagged en la VLAN 20
Enlace que lleva varias VLANstroncal (switchport mode trunk)puerto tagged en cada VLAN
VLAN sin etiqueta en ese enlaceVLAN nativala VLAN en la que el puerto es untagged
Varios cables agregadosEtherChannel / port-channeltrunk (trk1)

En HP la VLAN se configura desde la propia VLAN, no desde el puerto:

sw-p2-acc01 · crear la VLAN de usuarios y la de voz
configure terminalvlan 20name USUARIOSuntagged 1-24tagged 49-50exitvlan 30name VOZvoicetagged 1-24,49-50exit
  • Un puerto solo puede ser untagged en una VLAN. Al hacerlo untagged en la 20 sale de la DEFAULT_VLAN (la 1) solo.
  • El teléfono IP marca su tráfico en la VLAN 30 (tagged) y el PC que cuelga de él va sin marcar en la 20: un cable, dos redes.
  • Si los puertos 49 y 50 forman una agregación (trunk 49-50 trk1 lacp), las VLANs se asignan a trk1, no a los puertos sueltos.

Antes de quitar una VLAN de un enlace de subida (no tagged 49), comprueba por cuál te has conectado. Si tu SSH va por esa VLAN, te quedas fuera y toca ir con el cable de consola.

En AOS-CX se hace desde la interfaz, más parecido a Cisco: interface 1/1/12 y vlan access 20 para un usuario; vlan trunk native 1 y vlan trunk allowed 20,30 para un enlace de subida.

3. Guardar la configuración

Los cambios se aplican al instante pero viven en memoria: un reinicio o un corte de luz los borra.

sw-p2-acc01
write memoryshow config

write memory copia la configuración en uso a la de arranque. En AOS-CX también existe write memory (o copy running-config startup-config), y además puntos de restauración (checkpoints) con los que volver a una configuración anterior.

4. Copia de la configuración fuera del switch

Un switch averiado se cambia en minutos si su configuración está en un servidor. Por TFTP:

sw-p2-acc01 · copia por TFTP
copy running-config tftp 10.10.99.20 sw-p2-acc01-2026-10-30.cfgcopy startup-config tftp 10.10.99.20 sw-p2-acc01-startup.cfg

TFTP no cifra ni autentica. Mejor SCP, con el switch como servidor y la copia iniciada desde el servidor de gestión:

sw-p2-acc01 · habilitar transferencia por SSH
configure terminalip ssh filetransferexit# desde el servidor de copias:scp manager@10.10.99.11:/cfg/startup-config ./sw-p2-acc01-startup.cfg

Al activar ip ssh filetransfer el switch desactiva TFTP. Programa la copia (un script nocturno o la herramienta de red que uses) y guarda varias versiones: la de ayer es la que querrás cuando alguien cambie algo hoy.

5. Actualizar el firmware

ArubaOS-Switch guarda dos imágenes en flash, primary y secondary. Eso permite actualizar dejando la buena como vuelta atrás:

sw-p2-acc01 · actualización con vuelta atrás
show flashImage           Size (bytes) Date     Version--------------- ------------ -------- ----------Primary Image   :   32103550 03/02/25 WC.16.10.0025Secondary Image :   32103550 03/02/25 WC.16.10.0025Default Boot Image   : Primarycopy tftp flash 10.10.99.20 WC_16_11_0021.swi secondaryboot system flash secondary
  • Lee las notas de la versión antes: requisitos de versión intermedia, cambios de comportamiento y si actualiza también la BootROM. Si la actualiza, no se corta la corriente durante el primer arranque.
  • Hazlo en una ventana de cambio y un switch cada vez. El reinicio corta la red de todos los puertos durante unos minutos.
  • Si la nueva falla, boot system flash primary vuelve a la anterior. Cuando lleve unos días estable, copia la nueva también a primary.
  • Comprueba con show version que arranca la imagen esperada y guarda una copia de la configuración justo antes.

6. El ticket: "mi equipo va lento con la red"

Un puesto en el puerto 12. El portátil tiene tarjeta de 1 Gb y en el paso 1 ya se veía 100FDx.

sw-p2-acc01 · contadores del puerto
show interfaces 12 Status and Counters - Port Counters for port 12  Link Status     : Up  Errors (Since boot or last clear) :   FCS Rx          : 4,812            Drops Tx        : 0   Alignment Rx    : 0                Collisions Tx   : 0   Runts Rx        : 0                Late Colln Tx   : 0   Giants Rx       : 0                Excessive Colln : 0clear statistics 12

Cómo se lee:

  • A 100 Mb con una tarjeta de 1 Gb: Gigabit Ethernet necesita los cuatro pares del cable y 100 Mb solo usa dos. Un par roto en el latiguillo, la roseta o el panel hace que el enlace baje a 100. Casi siempre es cableado.
  • FCS Rx creciendo: tramas que llegan dañadas. Cable, conector o interferencia.
  • Collisions o Late Colln en un enlace full dúplex: hay un desajuste de dúplex. Un extremo está fijado (por ejemplo, 100-full en la tarjeta) y el otro negocia en automático, se queda en half dúplex y empiezan las colisiones tardías.

Pasos:

  1. Pon los contadores a cero (clear statistics 12) y mira si siguen subiendo con el usuario trabajando.
  2. Cambia el latiguillo del puesto y, si sigue igual, el del panel. Es lo más rápido y lo que más veces lo resuelve.
  3. Prueba el cable desde el switch con test cable-diagnostics 12 y lee el resultado con show cable-diagnostics. Corta el puerto unos segundos: avisa al usuario.
  4. Comprueba que el puerto está en automático (speed-duplex auto en la interfaz) y la tarjeta del portátil también. No fijes la velocidad solo en un extremo.
  5. Si el cable entre panel y roseta está mal, es una reparación de cableado: anótalo con el número de roseta y el puerto del panel.

En el ticket: puerto, velocidad y errores antes y después, qué se cambió y el resultado.

Siguientes pasos

  • La guía de Cisco: switches y routers cubre lo mismo con IOS: VLANs, troncales y el puerto que no da red.
  • La guía de Device42 explica cómo tener inventariado cada switch con su rack, su U y su contrato de soporte.
  • La guía de SolarWinds sirve para vigilar por SNMP los errores de los puertos y enterarte antes que el usuario.

¿Falta algo o en tu entorno es distinto? Escríbeme y lo corrijo.

What you'll get

Working comfortably on an HP access switch from the ProCurve / ArubaOS-Switch family (2530, 2930F, 3810 series and similar): reading the configuration, checking ports, VLANs, MAC addresses and neighbours, creating a VLAN in HP terms, saving, keeping a copy off the device, updating the firmware without losing your way back, and diagnosing the port of a user whose network is slow.

Before you start

  • SSH access to the management IP, or a console cable if the device has no network. ArubaOS-Switch has two levels: operator (read-only) and manager, which you reach with enable.
  • A TFTP or SCP server on the management network for backups and firmware.
  • Knowing which family is in front of you. ArubaOS-Switch (formerly ProCurve) and AOS-CX (6100, 6200, 6300, 8xxx series) are different systems with different commands. show version tells you on the first line; this guide uses ArubaOS-Switch syntax and points out where CX differs.

1. The everyday commands

sw-p2-acc01 · ArubaOS-Switch
show interfaces brief  Port   Type      | Alert Enabled Status Mode     Flow Ctrl  ------ --------- + ----- ------- ------ -------- ---------  11     100/1000T | No    Yes     Up     1000FDx  off  12     100/1000T | No    Yes     Up     100FDx   off  13     100/1000T | No    Yes     Down   1000FDx  offshow vlans  VLAN ID Name                 | Status     Voice Jumbo  ------- -------------------- + ---------- ----- -----  1       DEFAULT_VLAN         | Port-based No    No  20      USERS                | Port-based No    No  30      VOICE                | Port-based Yes   Noshow mac-address 12  MAC Address   VLANs  ------------- ------  a0b3cc-4f12d8 20show lldp info remote-device  LocalPort | ChassisId     PortId SysName  --------- + ------------- ------ -----------  49        | 9c8cd8-11aa00 1/0/24 sw-core-01
  • show running-config is the configuration in memory; show config is the saved one (the one loaded at boot). If they differ, there are unsaved changes.
  • show vlans ports 12 tells you which VLANs a port is in, and show vlans 20 which ports a VLAN has.
  • show mac-address a0b3cc-4f12d8 looks up a specific MAC: HP's format is xxxxxx-xxxxxx.
  • show lldp info remote-device is the equivalent of Cisco's show lldp neighbors: it tells you which switch or phone each port leads to. Add detail and the port number to see the neighbour's management IP.
  • show logging -r shows the log with the newest entries on top: link drops, loops, power supply failures.

2. VLANs: tagged and untagged

HP and Cisco talk about the same things with different words, and the most dangerous mix-up is trunk:

What you wantCisco IOSHP ArubaOS-Switch
User port in VLAN 20switchport access vlan 20port untagged in VLAN 20
Link carrying several VLANstrunk (switchport mode trunk)port tagged in each VLAN
Untagged VLAN on that linknative VLANthe VLAN in which the port is untagged
Several cables aggregatedEtherChannel / port-channeltrunk (trk1)

On HP the VLAN is configured from the VLAN itself, not from the port:

sw-p2-acc01 · create the user and voice VLANs
configure terminalvlan 20name USERSuntagged 1-24tagged 49-50exitvlan 30name VOICEvoicetagged 1-24,49-50exit
  • A port can only be untagged in one VLAN. Making it untagged in 20 takes it out of DEFAULT_VLAN (VLAN 1) on its own.
  • The IP phone tags its traffic on VLAN 30 and the PC hanging off it goes untagged on 20: one cable, two networks.
  • If ports 49 and 50 form an aggregation (trunk 49-50 trk1 lacp), VLANs are assigned to trk1, not to the individual ports.

Before removing a VLAN from an uplink (no tagged 49), check which one you are connected through. If your SSH session runs over that VLAN you are locked out, and it is a trip with the console cable.

On AOS-CX it is done from the interface, closer to Cisco: interface 1/1/12 and vlan access 20 for a user; vlan trunk native 1 and vlan trunk allowed 20,30 for an uplink.

3. Saving the configuration

Changes apply instantly but live in memory: a reboot or a power cut wipes them.

sw-p2-acc01
write memoryshow config

write memory copies the running configuration to the startup one. AOS-CX also has write memory (or copy running-config startup-config), plus checkpoints that let you go back to an earlier configuration.

4. Backing up the configuration off the switch

A failed switch is swapped in minutes if its configuration is on a server. Over TFTP:

sw-p2-acc01 · backup over TFTP
copy running-config tftp 10.10.99.20 sw-p2-acc01-2026-10-30.cfgcopy startup-config tftp 10.10.99.20 sw-p2-acc01-startup.cfg

TFTP neither encrypts nor authenticates. SCP is better, with the switch as the server and the copy started from the management server:

sw-p2-acc01 · enable transfer over SSH
configure terminalip ssh filetransferexit# from the backup server:scp manager@10.10.99.11:/cfg/startup-config ./sw-p2-acc01-startup.cfg

Enabling ip ssh filetransfer makes the switch disable TFTP. Schedule the copy (a nightly script or whatever network tool you use) and keep several versions: yesterday's is the one you will want when someone changes something today.

5. Updating the firmware

ArubaOS-Switch keeps two images in flash, primary and secondary. That lets you update while keeping the good one as the way back:

sw-p2-acc01 · update with a way back
show flashImage           Size (bytes) Date     Version--------------- ------------ -------- ----------Primary Image   :   32103550 03/02/25 WC.16.10.0025Secondary Image :   32103550 03/02/25 WC.16.10.0025Default Boot Image   : Primarycopy tftp flash 10.10.99.20 WC_16_11_0021.swi secondaryboot system flash secondary
  • Read the release notes first: intermediate version requirements, behaviour changes and whether it also updates the BootROM. If it does, nobody cuts the power during the first boot.
  • Do it in a change window and one switch at a time. The reboot takes the network down on every port for a few minutes.
  • If the new one fails, boot system flash primary goes back to the previous one. Once it has been stable for a few days, copy the new image to primary as well.
  • Check with show version that the expected image booted, and save a copy of the configuration right before.

6. The ticket: "my computer is slow on the network"

A desk on port 12. The laptop has a 1 Gb card and step 1 already showed 100FDx.

sw-p2-acc01 · port counters
show interfaces 12 Status and Counters - Port Counters for port 12  Link Status     : Up  Errors (Since boot or last clear) :   FCS Rx          : 4,812            Drops Tx        : 0   Alignment Rx    : 0                Collisions Tx   : 0   Runts Rx        : 0                Late Colln Tx   : 0   Giants Rx       : 0                Excessive Colln : 0clear statistics 12

How to read it:

  • At 100 Mb with a 1 Gb card: Gigabit Ethernet needs all four pairs of the cable and 100 Mb only uses two. One broken pair in the patch cable, the wall outlet or the panel drops the link to 100. It is almost always cabling.
  • FCS Rx climbing: frames arriving damaged. Cable, connector or interference.
  • Collisions or Late Colln on a full-duplex link: there is a duplex mismatch. One end is fixed (say 100-full on the card) and the other auto-negotiates, falls back to half duplex, and late collisions start.

Steps:

  1. Reset the counters (clear statistics 12) and see whether they keep climbing while the user works.
  2. Swap the desk patch cable and, if nothing changes, the one at the panel. It is the quickest step and the one that fixes it most often.
  3. Test the cable from the switch with test cable-diagnostics 12 and read the result with show cable-diagnostics. It drops the port for a few seconds: warn the user.
  4. Check the port is on auto (speed-duplex auto on the interface) and the laptop's card too. Never fix the speed on one end only.
  5. If the run between panel and outlet is bad, it is a cabling repair: record it with the outlet number and the panel port.

In the ticket: port, speed and errors before and after, what was changed and the result.

Next steps

  • The Cisco: switches and routers guide covers the same with IOS: VLANs, trunks and the port that gives no network.
  • The Device42 guide explains how to keep every switch inventoried with its rack, its U and its support contract.
  • The SolarWinds guide helps you watch port errors over SNMP and find out before the user does.

Is something missing, or different in your environment? Get in touch and I'll fix it.

Tech Career Lab · newsletter

¿Te ha servido? Cada dos semanas envío una idea práctica para perfiles IT: LinkedIn, proyectos, networking y procesos de selección.Found this useful? Every two weeks I send one practical idea for IT professionals: LinkedIn, projects, networking and hiring processes.

Apúntate y llévate las 33 ideasSign up and get the 33 ideas →