Diseño, subnetting e implementación de una red multi-sede con 4 locales interconectados mediante Router-on-a-Stick + HSRP LAN/WAN. Bloque raíz 10.25.0.0/22, segmentación VLSM por VLAN, 24 VLANs activas y 24 rutas estáticas en el Router Matriz.
El bloque raíz 10.25.0.0/22 (~1022 hosts) se divide entre las 4 sedes usando VLSM: cada VLAN recibe la máscara mínima que cubre sus hosts requeridos + las 3 IPs reservadas (.1 VIP, .2 R1, .3 R2). El bloque 10.25.3.192/27 está reservado exclusivamente para los 4 enlaces WAN, cada uno con una subred /29 (6 hosts útiles).
| Sede | Red WAN /29 | VIP HSRP (.1) | R1 (.2) | R2 (.3) | Router Matriz (.4) |
|---|---|---|---|---|---|
| Sede Central | 10.25.3.192/29 | 10.25.3.193 | 10.25.3.194 | 10.25.3.195 | 10.25.3.196 |
| Local Santiago | 10.25.3.200/29 | 10.25.3.201 | 10.25.3.202 | 10.25.3.203 | 10.25.3.204 |
| Local Norte | 10.25.3.208/29 | 10.25.3.209 | 10.25.3.210 | 10.25.3.211 | 10.25.3.212 |
| Local Sur | 10.25.3.216/29 | 10.25.3.217 | 10.25.3.218 | 10.25.3.219 | 10.25.3.220 |
| VLAN | Nombre | Red / Máscara | VIP HSRP | R1 | R2 | Rango DHCP | Hosts |
|---|---|---|---|---|---|---|---|
| 20 | Contabilidad | 10.25.0.0/27 | 10.25.0.1 | 10.25.0.2 | 10.25.0.3 | 10.25.0.4–30 | 18 req. |
| 10 | Gerencia | 10.25.0.32/27 | 10.25.0.33 | 10.25.0.34 | 10.25.0.35 | 10.25.0.36–62 | 15 req. |
| 40 | Compras | 10.25.0.64/27 | 10.25.0.65 | 10.25.0.66 | 10.25.0.67 | 10.25.0.68–94 | 15 req. |
| 30 | Recursos Humanos | 10.25.0.96/28 | 10.25.0.97 | 10.25.0.98 | 10.25.0.99 | 10.25.0.100–110 | 12 req. |
| 50 | IT | 10.25.0.112/28 | 10.25.0.113 | 10.25.0.114 | 10.25.0.115 | 10.25.0.116–126 | 10 req. |
| 60 | Invitados | 10.25.0.128/28 | 10.25.0.129 | 10.25.0.130 | 10.25.0.131 | 10.25.0.132–142 | 10 req. |
| VLAN | Nombre | Red / Máscara | VIP HSRP | R1 | R2 | Rango DHCP | Hosts |
|---|---|---|---|---|---|---|---|
| 30 | Salón/Servicio | 10.25.1.0/27 | 10.25.1.1 | 10.25.1.2 | 10.25.1.3 | 10.25.1.4–30 | 25 req. |
| 60 | Clientes WiFi | 10.25.1.32/27 | 10.25.1.33 | 10.25.1.34 | 10.25.1.35 | 10.25.1.36–62 | 25 req. |
| 20 | Cocina | 10.25.1.64/27 | 10.25.1.65 | 10.25.1.66 | 10.25.1.67 | 10.25.1.68–94 | 20 req. |
| 40 | Caja/POS | 10.25.1.96/28 | 10.25.1.97 | 10.25.1.98 | 10.25.1.99 | 10.25.1.100–110 | 12 req. |
| 10 | Administración | 10.25.1.112/28 | 10.25.1.113 | 10.25.1.114 | 10.25.1.115 | 10.25.1.116–126 | 10 req. |
| 50 | IT | 10.25.1.128/28 | 10.25.1.129 | 10.25.1.130 | 10.25.1.131 | 10.25.1.132–142 | 6 req. |
| VLAN | Nombre | Red / Máscara | VIP HSRP | R1 | R2 | Rango DHCP | Hosts |
|---|---|---|---|---|---|---|---|
| 30 | Salón/Servicio | 10.25.2.0/27 | 10.25.2.1 | 10.25.2.2 | 10.25.2.3 | 10.25.2.4–30 | 22 req. |
| 60 | Clientes WiFi | 10.25.2.32/27 | 10.25.2.33 | 10.25.2.34 | 10.25.2.35 | 10.25.2.36–62 | 20 req. |
| 20 | Cocina | 10.25.2.64/27 | 10.25.2.65 | 10.25.2.66 | 10.25.2.67 | 10.25.2.68–94 | 18 req. |
| 40 | Caja/POS | 10.25.2.96/28 | 10.25.2.97 | 10.25.2.98 | 10.25.2.99 | 10.25.2.100–110 | 10 req. |
| 10 | Administración | 10.25.2.112/28 | 10.25.2.113 | 10.25.2.114 | 10.25.2.115 | 10.25.2.116–126 | 8 req. |
| 50 | IT | 10.25.2.128/28 | 10.25.2.129 | 10.25.2.130 | 10.25.2.131 | 10.25.2.132–142 | 6 req. |
| VLAN | Nombre | Red / Máscara | VIP HSRP | R1 | R2 | Rango DHCP | Hosts |
|---|---|---|---|---|---|---|---|
| 30 | Salón/Servicio | 10.25.3.0/27 | 10.25.3.1 | 10.25.3.2 | 10.25.3.3 | 10.25.3.4–30 | 20 req. |
| 60 | Clientes WiFi | 10.25.3.32/27 | 10.25.3.33 | 10.25.3.34 | 10.25.3.35 | 10.25.3.36–62 | 18 req. |
| 20 | Cocina | 10.25.3.64/27 | 10.25.3.65 | 10.25.3.66 | 10.25.3.67 | 10.25.3.68–94 | 15 req. |
| 10 | Administración | 10.25.3.96/28 | 10.25.3.97 | 10.25.3.98 | 10.25.3.99 | 10.25.3.100–110 | 8 req. |
| 40 | Caja/POS | 10.25.3.112/28 | 10.25.3.113 | 10.25.3.114 | 10.25.3.115 | 10.25.3.116–126 | 8 req. |
| 50 | IT | 10.25.3.128/28 | 10.25.3.129 | 10.25.3.130 | 10.25.3.131 | 10.25.3.132–142 | 6 req. |
Cada sede implementa HSRP en dos niveles: en las subinterfaces LAN (una por VLAN, grupo = ID de VLAN) y en la interfaz WAN hacia el Router Matriz (grupo 1). La convención es estricta: .1 = VIP, .2 = R1 (Active, priority 110), .3 = R2 (Standby, priority 90). Si R1 falla, R2 hereda ambas IPs virtuales y la red no experimenta downtime perceptible.
! ── R1-Sur: subinterfaces dot1Q + HSRP LAN ─────────────────────
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 10.25.3.2 255.255.255.224 ! R1 física — .2
standby 30 ip 10.25.3.1 ! VIP HSRP — gateway de hosts
standby 30 priority 110 ! Mayor prioridad → ACTIVE
standby 30 preempt ! Recupera rol si vuelve online
interface GigabitEthernet0/1.60
encapsulation dot1Q 60
ip address 10.25.3.34 255.255.255.224
standby 60 ip 10.25.3.33
standby 60 priority 110
standby 60 preempt
interface GigabitEthernet0/1.20
encapsulation dot1Q 20
ip address 10.25.3.66 255.255.255.224
standby 20 ip 10.25.3.65
standby 20 priority 110
standby 20 preempt
! (Repetir patrón para VLANs 10, 40, 50)
! ── R2-Sur: misma estructura, prioridad 90, sin preempt ─────────
interface GigabitEthernet0/1.30
encapsulation dot1Q 30
ip address 10.25.3.3 255.255.255.224 ! R2 física — .3
standby 30 ip 10.25.3.1 ! Mismo VIP que R1
standby 30 priority 90 ! Menor → STANDBY (sin preempt)
! ── HSRP en interfaz WAN — garantiza que Matriz alcance la sede ─
! R1-Sur
interface GigabitEthernet0/0
ip address 10.25.3.218 255.255.255.248 ! R1 WAN física — .2 del /29
standby 1 ip 10.25.3.217 ! VIP WAN — next-hop del Matriz
standby 1 priority 110
standby 1 preempt
no shutdown
! R2-Sur
interface GigabitEthernet0/0
ip address 10.25.3.219 255.255.255.248 ! R2 WAN física — .3 del /29
standby 1 ip 10.25.3.217 ! Mismo VIP WAN
standby 1 priority 90
no shutdown
! ── Rutas por defecto en R1 y R2 (next-hop = IP .4 del Matriz) ──
ip route 0.0.0.0 0.0.0.0 10.25.3.220 ! → Router Matriz (.4)
! En R1 (debe mostrar P=Active en todos los grupos):
show standby brief
! P indicates configured to preempt.
! Interface Grp Pri P State Active Standby VirtualIP
! Gi0/0 1 110 P Active local 10.25.3.219 10.25.3.217
! Gi0/1.30 30 110 P Active local 10.25.3.3 10.25.3.1
! Gi0/1.60 60 110 P Active local 10.25.3.35 10.25.3.33
! En R2 (debe mostrar Standby):
show standby brief
! Gi0/0 1 90 Standby 10.25.3.218 local 10.25.3.217
! ── TEST FAILOVER ──────────────────────────────────────────────
! En R1: apagar interfaz y verificar que R2 tome el rol
interface GigabitEthernet0/0
shutdown
! Desde PC: ping continuo a la VIP → no debe interrumpirse
! En R2: show standby → debe mostrar Active
Durante la implementación, los hosts de las sedes Norte y Santiago obtenían el gateway
.30 en lugar del VIP HSRP correcto. La causa: pools DHCP residuales
de configuraciones previas permanecían activos en memoria y respondían antes que los pools correctos.
ipconfig y mostraban default-gateway x.x.x.30. Los pings entre sedes fallaban silenciosamente porque el gateway era inválido — los hosts enviaban tráfico a una IP que ningún router tenía asignada físicamente.show ip dhcp pool se listaron todos los pools y se encontraron entradas fantasma de sesiones anteriores. Estos pools tenían default-router apuntando a .30, correspondiente a un pool de prueba que nunca fue eliminado explícitamente. En IOS, los pools DHCP persisten aunque se reconfigure la interfaz.no ip dhcp pool [nombre] para cada pool fantasma identificado, luego clear ip dhcp binding * para forzar que todos los hosts renegocien su IP. Los pools correctos con VIP HSRP como default-router fueron configurados en R1 y R2 de cada sede afectada.!!!!! (100%). Lección aplicada: siempre usar no ip dhcp pool explícitamente y verificar con show running-config | section dhcp.! ── PASO 1: DIAGNÓSTICO ──────────────────────────────────────────
show ip dhcp pool ! Listar todos los pools — buscar fantasmas
show ip dhcp binding ! Ver asignaciones — detectar gateway .30
show running-config | section dhcp ! Vista completa DHCP
! ── PASO 2: ELIMINAR POOLS FANTASMA ─────────────────────────────
no ip dhcp pool NOMBRE_FANTASMA_1
no ip dhcp pool NOMBRE_FANTASMA_2
! Reemplazar con los nombres reales detectados en show ip dhcp pool
! ── PASO 3: LIMPIAR BINDINGS ────────────────────────────────────
clear ip dhcp binding * ! Forza renegociación de todas las IPs
! ── PASO 4: CONFIGURAR POOLS CORRECTOS (R1 y R2 idénticos) ─────
! Excluir IPs reservadas en ambos routers:
ip dhcp excluded-address 10.25.3.1 10.25.3.3 ! VIP + R1 + R2 Sur
ip dhcp pool SUR_V30
network 10.25.3.0 255.255.255.224
default-router 10.25.3.1 ! VIP HSRP — nunca el .30
dns-server 8.8.8.8
lease 1
ip dhcp pool SUR_V60
network 10.25.3.32 255.255.255.224
default-router 10.25.3.33
dns-server 8.8.8.8
lease 1
! Pools para Norte (afectado):
ip dhcp pool N_V30
network 10.25.2.0 255.255.255.224
default-router 10.25.2.1
dns-server 8.8.8.8
ip dhcp pool S_V30
network 10.25.1.0 255.255.255.224
default-router 10.25.1.1
dns-server 8.8.8.8
! ── PASO 5: VERIFICACIÓN FINAL ───────────────────────────────────
show ip dhcp pool ! Solo pools correctos
show running-config | section dhcp ! Confirmar default-router = VIP
El Router Matriz no tiene HSRP, ni VLANs, ni DHCP. Su función exclusiva es el enrutamiento inter-sede mediante 24 rutas estáticas — una por cada subred de VLAN de cada sede. El next-hop de cada ruta es la IP Virtual HSRP WAN (.1) de la sede destino, lo que garantiza que el failover de R1→R2 sea transparente para el Matriz.
! ═══════════════════════════════════════════════════════════════
! ROUTER MATRIZ — Router1Matriz
! Next-hop siempre = IP Virtual HSRP WAN (.1) de cada sede
! ═══════════════════════════════════════════════════════════════
! ── SEDE CENTRAL (next-hop: 10.25.3.193) ───────────────────────
ip route 10.25.0.0 255.255.255.224 10.25.3.193 ! VLAN 20 Contabilidad
ip route 10.25.0.32 255.255.255.224 10.25.3.193 ! VLAN 10 Gerencia
ip route 10.25.0.64 255.255.255.224 10.25.3.193 ! VLAN 40 Compras
ip route 10.25.0.96 255.255.255.240 10.25.3.193 ! VLAN 30 RRHH
ip route 10.25.0.112 255.255.255.240 10.25.3.193 ! VLAN 50 IT
ip route 10.25.0.128 255.255.255.240 10.25.3.193 ! VLAN 60 Invitados
! ── LOCAL SANTIAGO (next-hop: 10.25.3.201) ─────────────────────
ip route 10.25.1.0 255.255.255.224 10.25.3.201 ! VLAN 30 Salón
ip route 10.25.1.32 255.255.255.224 10.25.3.201 ! VLAN 60 Clientes WiFi
ip route 10.25.1.64 255.255.255.224 10.25.3.201 ! VLAN 20 Cocina
ip route 10.25.1.96 255.255.255.240 10.25.3.201 ! VLAN 40 Caja/POS
ip route 10.25.1.112 255.255.255.240 10.25.3.201 ! VLAN 10 Administración
ip route 10.25.1.128 255.255.255.240 10.25.3.201 ! VLAN 50 IT
! ── LOCAL NORTE (next-hop: 10.25.3.209) ────────────────────────
ip route 10.25.2.0 255.255.255.224 10.25.3.209 ! VLAN 30 Salón
ip route 10.25.2.32 255.255.255.224 10.25.3.209 ! VLAN 60 Clientes WiFi
ip route 10.25.2.64 255.255.255.224 10.25.3.209 ! VLAN 20 Cocina
ip route 10.25.2.96 255.255.255.240 10.25.3.209 ! VLAN 40 Caja/POS
ip route 10.25.2.112 255.255.255.240 10.25.3.209 ! VLAN 10 Administración
ip route 10.25.2.128 255.255.255.240 10.25.3.209 ! VLAN 50 IT
! ── LOCAL SUR (next-hop: 10.25.3.217) ──────────────────────────
ip route 10.25.3.0 255.255.255.224 10.25.3.217 ! VLAN 30 Salón
ip route 10.25.3.32 255.255.255.224 10.25.3.217 ! VLAN 60 Clientes WiFi
ip route 10.25.3.64 255.255.255.224 10.25.3.217 ! VLAN 20 Cocina
ip route 10.25.3.96 255.255.255.240 10.25.3.217 ! VLAN 10 Administración
ip route 10.25.3.112 255.255.255.240 10.25.3.217 ! VLAN 40 Caja/POS
ip route 10.25.3.128 255.255.255.240 10.25.3.217 ! VLAN 50 IT
! ── VERIFICACIÓN ────────────────────────────────────────────────
! show ip route static → debe mostrar 24 entradas con "S"
! show ip route summary → confirmar cantidad total
| # | Destino | Máscara | Next-Hop (VIP WAN) | VLAN | Sede |
|---|---|---|---|---|---|
| // SEDE CENTRAL — next-hop 10.25.3.193 | |||||
| 1 | 10.25.0.0 | /27 | 10.25.3.193 | V20 | Central |
| 2 | 10.25.0.32 | /27 | 10.25.3.193 | V10 | Central |
| 3 | 10.25.0.64 | /27 | 10.25.3.193 | V40 | Central |
| 4 | 10.25.0.96 | /28 | 10.25.3.193 | V30 | Central |
| 5 | 10.25.0.112 | /28 | 10.25.3.193 | V50 | Central |
| 6 | 10.25.0.128 | /28 | 10.25.3.193 | V60 | Central |
| // LOCAL SANTIAGO — next-hop 10.25.3.201 | |||||
| 7 | 10.25.1.0 | /27 | 10.25.3.201 | V30 | Santiago |
| 8 | 10.25.1.32 | /27 | 10.25.3.201 | V60 | Santiago |
| 9 | 10.25.1.64 | /27 | 10.25.3.201 | V20 | Santiago |
| 10 | 10.25.1.96 | /28 | 10.25.3.201 | V40 | Santiago |
| 11 | 10.25.1.112 | /28 | 10.25.3.201 | V10 | Santiago |
| 12 | 10.25.1.128 | /28 | 10.25.3.201 | V50 | Santiago |
| // LOCAL NORTE — next-hop 10.25.3.209 | |||||
| 13 | 10.25.2.0 | /27 | 10.25.3.209 | V30 | Norte |
| 14 | 10.25.2.32 | /27 | 10.25.3.209 | V60 | Norte |
| 15 | 10.25.2.64 | /27 | 10.25.3.209 | V20 | Norte |
| 16 | 10.25.2.96 | /28 | 10.25.3.209 | V40 | Norte |
| 17 | 10.25.2.112 | /28 | 10.25.3.209 | V10 | Norte |
| 18 | 10.25.2.128 | /28 | 10.25.3.209 | V50 | Norte |
| // LOCAL SUR ★ — next-hop 10.25.3.217 | |||||
| 19 | 10.25.3.0 | /27 | 10.25.3.217 | V30 | Sur ★ |
| 20 | 10.25.3.32 | /27 | 10.25.3.217 | V60 | Sur ★ |
| 21 | 10.25.3.64 | /27 | 10.25.3.217 | V20 | Sur ★ |
| 22 | 10.25.3.96 | /28 | 10.25.3.217 | V10 | Sur ★ |
| 23 | 10.25.3.112 | /28 | 10.25.3.217 | V40 | Sur ★ |
| 24 | 10.25.3.128 | /28 | 10.25.3.217 | V50 | Sur ★ |
Validación end-to-end con pings entre todas las sedes y VLANs.
Verificaciones con show standby brief, show ip route, y prueba de failover
apagando R1 con ping continuo activo.
Según el mandato de la Sección 1910-5472, la presentación grupal de 5–8 minutos debe cubrir los siguientes entregables. Cada tarjeta resume qué mostrar y qué comandos ejecutar en vivo.
show ip interface brief10.25.3.192/27 dividido en 4× /29. VIP WAN, R1, R2 y Matriz por enlace.show ip route staticip route 0.0.0.0 0.0.0.0 x.x.x.4show ip route summaryshow standby brief → Active/Standby confirmadoshow ip dhcp binding → gateways correctos