Como configurar una IP fija en Linux Debian

0
46

Para configurar una ip fija en linux Debian hay que editar el siguiente archivo: /etc/network/interfaces

#nano /etc/network/interfaces

Tendremos algo cmo esto:

# 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

Lo cambiamos por esto:

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
gateway 192.168.1.1

Ahora solo hace falta configurar los DNS para que resuelvan sin problema.

0 0 votos
Calificación
Suscribirse
Notificar
0 Comentarios
Opinión entre párrafo
Ver todos los comentarios