CONFIGURING STATIC IP ADDRESSES ON UBUNTU 17.10 SERVERS

Ubuntu 17.10 network configuration is completely changed. Have you heard of NetPlan? Probably not, but if you have, then you’re a step ahead of many. NetPlan is a new network configuration tool introduced in Ubuntu 17.10 to manage network settings.

It can be used by writing a simple YAML description of the required network interfaces with what they should be configured to do; and it will generate the required configuration for a chosen renderer tool. Sigue leyendo

¿Como especificar la direccion IP?

En ubuntu la configuración se especifica en /etc/network

DCHP

auto eth0
iface eth0 inet dhcp

IP Estatica

auto eth0
iface eth0 inet static
address 192.168.0.20
netmask 255.255.255.0
#broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8 8.8.4.4

Con esta ultima linea al reiniciar se regenerara el archvo /etc/resolv.conf  con los nameserver especificados.

Realizados estos cambios es necesario actualizar la configuracion de la interfaz de red, esto se realiza mediante el comando

/etc/init.d/networking restart

Cabe destacar que dependiendo la distribución de linux que se este utilizando este comando o la ruta puede cambiar.