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 versionlo 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
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-01show running-configes la configuración en memoria;show configes la guardada (la que carga al arrancar). Si difieren, hay cambios sin guardar.show vlans ports 12dice en qué VLANs está un puerto yshow vlans 20qué puertos tiene una VLAN.show mac-address a0b3cc-4f12d8busca una MAC concreta: el formato de HP esxxxxxx-xxxxxx.show lldp info remote-devicees el equivalente deshow lldp neighborsde Cisco: con él sabes a qué switch o teléfono lleva cada puerto. Añadedetaily el número de puerto para ver la IP de gestión del vecino.show logging -rmuestra 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 quieres | Cisco IOS | HP ArubaOS-Switch |
|---|---|---|
| Puerto de usuario en la VLAN 20 | switchport access vlan 20 | puerto untagged en la VLAN 20 |
| Enlace que lleva varias VLANs | troncal (switchport mode trunk) | puerto tagged en cada VLAN |
| VLAN sin etiqueta en ese enlace | VLAN nativa | la VLAN en la que el puerto es untagged |
| Varios cables agregados | EtherChannel / port-channel | trunk (trk1) |
En HP la VLAN se configura desde la propia VLAN, no desde el puerto:
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 atrk1, 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.
write memoryshow configwrite 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:
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.cfgTFTP no cifra ni autentica. Mejor SCP, con el switch como servidor y la copia iniciada desde el servidor de gestión:
configure terminalip ssh filetransferexit# desde el servidor de copias:scp manager@10.10.99.11:/cfg/startup-config ./sw-p2-acc01-startup.cfgAl 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:
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 primaryvuelve a la anterior. Cuando lleve unos días estable, copia la nueva también a primary. - Comprueba con
show versionque 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.
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 12Có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-fullen la tarjeta) y el otro negocia en automático, se queda en half dúplex y empiezan las colisiones tardías.
Pasos:
- Pon los contadores a cero (
clear statistics 12) y mira si siguen subiendo con el usuario trabajando. - 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.
- Prueba el cable desde el switch con
test cable-diagnostics 12y lee el resultado conshow cable-diagnostics. Corta el puerto unos segundos: avisa al usuario. - Comprueba que el puerto está en automático (
speed-duplex autoen la interfaz) y la tarjeta del portátil también. No fijes la velocidad solo en un extremo. - 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 versiontells you on the first line; this guide uses ArubaOS-Switch syntax and points out where CX differs.
1. The everyday commands
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-01show running-configis the configuration in memory;show configis the saved one (the one loaded at boot). If they differ, there are unsaved changes.show vlans ports 12tells you which VLANs a port is in, andshow vlans 20which ports a VLAN has.show mac-address a0b3cc-4f12d8looks up a specific MAC: HP's format isxxxxxx-xxxxxx.show lldp info remote-deviceis the equivalent of Cisco'sshow lldp neighbors: it tells you which switch or phone each port leads to. Adddetailand the port number to see the neighbour's management IP.show logging -rshows 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 want | Cisco IOS | HP ArubaOS-Switch |
|---|---|---|
| User port in VLAN 20 | switchport access vlan 20 | port untagged in VLAN 20 |
| Link carrying several VLANs | trunk (switchport mode trunk) | port tagged in each VLAN |
| Untagged VLAN on that link | native VLAN | the VLAN in which the port is untagged |
| Several cables aggregated | EtherChannel / port-channel | trunk (trk1) |
On HP the VLAN is configured from the VLAN itself, not from the port:
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 totrk1, 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.
write memoryshow configwrite 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:
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.cfgTFTP neither encrypts nor authenticates. SCP is better, with the switch as the server and the copy started from the management server:
configure terminalip ssh filetransferexit# from the backup server:scp manager@10.10.99.11:/cfg/startup-config ./sw-p2-acc01-startup.cfgEnabling 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:
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 primarygoes 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 versionthat 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.
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 12How 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-fullon the card) and the other auto-negotiates, falls back to half duplex, and late collisions start.
Steps:
- Reset the counters (
clear statistics 12) and see whether they keep climbing while the user works. - 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.
- Test the cable from the switch with
test cable-diagnostics 12and read the result withshow cable-diagnostics. It drops the port for a few seconds: warn the user. - Check the port is on auto (
speed-duplex autoon the interface) and the laptop's card too. Never fix the speed on one end only. - 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 →