Skip to content

Instantly share code, notes, and snippets.

@chelnak
Created February 25, 2015 09:20
Show Gist options
  • Save chelnak/88dcaf0217d34b9ec61f to your computer and use it in GitHub Desktop.
Save chelnak/88dcaf0217d34b9ec61f to your computer and use it in GitHub Desktop.
UBUNTU Static IP
#Edit interfaces file
sudo nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
#Edit resolv.conf for DNS
sudo vi /etc/resolv.conf
##For hostname
sudo nano /etc/hosts
sudo nano /etc/hostname
##Rebooot server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment