¿Cuántas IP utilizables hay en una subred? Hoja de trucos de máscara de subred

Hosts utilizables = 2(32 − prefijo) − 2 (red + difusión). Excepción: /31 (2 IPs, enlaces punto a punto, RFC 3021) y /32 (1 IP, bucle invertido).

Referencia rápida

CIDRMáscaraTotal de IPsHosts utilizablesUso común
/24255.255.255.0256254LAN estándar
/25255.255.255.128128126Media LAN
/26255.255.255.1926462VLAN pequeña
/27255.255.255.2243230DMZ, Wi-Fi
/28255.255.255.2401614Punto a punto, segmento pequeño
/29255.255.255.24886Segmento diminuto
/30255.255.255.25242Enlaces punto a punto (tradicional)
/31255.255.255.25422*Enlaces punto a punto (moderno, RFC 3021)
/32255.255.255.25511*Bucle invertido / ruta de host

Las IPs reservadas reducen las utilizables

  • Puerta de enlace/router (generalmente .1 o .254)
  • Servidor DHCP
  • DNS, NTP, gestión
  • VIPs / VRRP / HSRP

Plan: utilizables − reservadas = asignables reales.

IPv6

/64 por subred = 18 quintillones de direcciones. No cuentas. Asignas.