IP Estática - Debian 6.0 Squeeze
- Detalles
- Categoría: Debian 6.0 Squeeze
- Publicado en Miércoles, 09 Febrero 2011 12:52
- Escrito por jsanchezmartin
|
AYUDARNOS A MANTENER LA WEB ES FACIL, |

Si queremos configurar nuestra IP de forma estática nos logeamos como root y simplemente tenemos que editar el siguiente archivo:
nano /etc/network/interfaces
Debemos dejarlo de la siguiente manera:
# 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 static
address 192.168.1.240 #Dirección IP
netmask 255.255.255.0 #Mascara de red
network 192.168.1.0 #Dirección de red
broadcast 192.168.1.255 #Broadcast
gateway 192.168.1.254 #Puerta de enlace
dns-nameservers 192.168.1.254 #Dirección del Servidor DNS (Router)
Con esto ya tenemos configurada la red de forma estática.
Si queremos configurarla con DHCP, simplente lo dejamos así:
# 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
Espero que os sea de ayuda.



