Configurar IP statica en Debian 10
Configurar ip statica en debian 10 (funciono con los CT (Proxmox) en una plantilla de debian 10 standar)
La configuración de las interfaces de red está guardada en el archivo /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug eth0
# iface eth0 inet dhcp
# Static IP address
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
Para ver la configuración de las tarjetas de red, el antiguo comando #ipconfig ya no sirve. Usar en su lugar el nuevo # ip a
Para reiniciar el servicio de red utilizar el comando:
# /etc/init.d/networking restart o en su defecto reiniciar la máquina.
Para comprobar que tenemos conexión y podemos navegar por internet podemos usar el comando:
# ping -c 3 www.google.es
Documentación utilizada
Enlaces
-
[X1] https://servidordebian.org/es/squeeze/config/network/static_ip
Donde se configuran los servicios de ip statica en Debian