Debian: IP estática

Esta guía explica como configurar una ip estática en debian

  • Abrimos el archivo
nano /etc/network/interfaces
  • Modificamos
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens18
iface ens18 inet dhcp
  • Por:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens18
iface ens18 inet static
 address 10.20.200.32
 netmask 255.255.255.0
 broadcast 10.20.200.255
 gateway 10.20.200.1
 dns-nameservers 10.20.200.36