Example /etc/network/interfaces file (adapted from my own on a (X)Ubuntu machine), created for a friend.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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