Skip to content

Instantly share code, notes, and snippets.

@etenesaca
Created August 14, 2014 14:32
Show Gist options
  • Select an option

  • Save etenesaca/3292204d0b7b0b35a53d to your computer and use it in GitHub Desktop.

Select an option

Save etenesaca/3292204d0b7b0b35a53d to your computer and use it in GitHub Desktop.
Configurar un IP estatica en Ubuntu
* ARCHIVO DE EDICION
sudo nano /etc/network/interfaces
* PARA DHPC
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
* PARA IP FIJA
- PRIMERO PONER EN DHCP PARA VER LOS SERVIDORES DNS
- LOS SERVIDORES DNS ESTAN EN
sudo nano /etc/resolv.conf
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
- SERVIDORES DE DNS (Poner los del servidor)
dns-nameservers 8.8.8.8 8.8.4.4
#Google Public DNS
nameserver 8.8.8.8
nameserver 8.8.4.4
#OpenDNS
nameserver 208.67.222.222
nameserver 208.67.220.220
* LUEGO DE CONFIGURAR
- INICIAR
sudo /etc/init.d/networking restart
- REINICIAR
sudo /etc/init.d/networking start
sudo service networking start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment