auto eth0
iface eth0 inet dhcp
.- Configuración con dirección ip estítica:
# sudo nano /etc/network/interfaces
El contenido debe tener lo siguiente:
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
Si tienes más de una tarjeta de red, pondría lo siguiente:
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
.- Configuración de DNS:
# sudo nano /etc/resolv.conf
Con un contenido similar a:
nameserver 80.58.0.33
nameserver 80.58.32.97
Fuente: http://www.taringa.net/posts/linux/1388366/IP-estatica-en-Linux-manualmente.html
No hay comentarios:
Publicar un comentario