Skip to content

Instantly share code, notes, and snippets.

@raehik
Created September 25, 2013 21:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save raehik/6705969 to your computer and use it in GitHub Desktop.
Example /etc/network/interfaces file (adapted from my own on a (X)Ubuntu machine), created for a friend.
# interfaces(5) file used by ifup(8) and ifdown(8)
auto eth0 # BEN: automatically try to connect to eth0 (man ifup + ifdown)
iface eth0 inet static # BEN: eth0 is static
address 192.168.x.x # BEN: your own static IP
netmask 255.255.255.0 # BEN: likely this will be your netmask
network 192.168.x.0 # BEN: network you use with final octet as 0
broadcast 192.168.x.255 # BEN: probably this
gateway 192.168.1.1 # BEN: a.k.a. router
dns-nameservers 194.168.4.100 194.168.8.100 # BEN: the nameservers you use
# you use at home. Those
# are Virgin's servers,
# find your own via
# ifconfig on Linux or
# ipconfig on Windows.
auto lo # BEN: leave these be, they are to do with localhost (kinda)
iface lo inet loopback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment