Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Created June 20, 2017 20:44
Show Gist options
  • Save karl-gustav/464996d08a02972fa9a2dd53d17dd7e7 to your computer and use it in GitHub Desktop.
Save karl-gustav/464996d08a02972fa9a2dd53d17dd7e7 to your computer and use it in GitHub Desktop.
How to setup static IP in raspberry pi
auto lo
iface lo inet loopback
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 10.0.0.5
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8 8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment