Agregar ip a servidor Debian
En días pasados me vi en la necesidad de añadir una nueva IP a un servidor virtual Linux, para lo cual no encontré mucha información, así que me di a la tarea de buscar mas profundamente:
Debian 10
Entrar a :
nano /etc/network/interfaces
------------------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.192
gateway 199.217.117.129
------------------------------------------------------------------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.255
gateway 192.168.1.1
auto eth0:0
iface eth0:0 inet static
address 192.168.1.12
netmask 255.255.255.255
auto eth0:1
iface eth0:1 inet static
address 192.168.1.13
netmask 255.255.255.255
auto eth0:2
iface eth0:2 inet static
address 192.168.1.14
netmask 255.255.255.255
------------------------------------------------------------------------------------
y posteriormente solo reiniciamos la red:
/etc/init.d/networking restart
Comentarios
Publicar un comentario