Esta guía proporciona instrucciones para configurar direcciones IP adicionales en tus VPS usando CubePath.
Requisitos Previos
- Acceso root al servidor dedicado
- IPs adicionales asignadas
- Instancias VPS existentes
Paso 1: Habilitar Reenvío de IP
ssh root@ip_servidor
sudo sysctl -w net.ipv4.ip_forward=1
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
Paso 2: Asignar IPs al Servidor
Edita /etc/network/interfaces (Debian/Ubuntu):
auto eth0
iface eth0 inet static
address [IP_PRIMARIA]
netmask 255.255.255.0
gateway [GATEWAY]
auto eth0:0
iface eth0:0 inet static
address [IP_ADICIONAL]
netmask 255.255.255.255
Reinicia: sudo systemctl restart networking
Paso 3: Configurar Red en VPS
En el VPS, configura:
auto eth0
iface eth0 inet static
address [IP_VPS]
netmask 255.255.255.255
gateway [IP_PRIMARIA_NODO]
Paso 4: Verificar
ping -c 4 8.8.8.8
ip addr show eth0
ip route


