User Guide

42
ifconfig
3. If you are using an Ethernet cable, in the section
labelled “eth0”, make a note of the values “inet
addr”, “Bcast” and “Mask”.
4. If you are using Wi-Fi, in the section labelled
“wlan0”, make a note of the values “inet addr”,
“Bcast” and “Mask”.
5. Type the following command then press Enter:
netstat -nr
6. Make a note of the values in “Gateway” and
“Destination”. If you can see two entries in the
table, ignore the values 0.0.0.0 and use the value
from the other line.
7. Type the following command and then press Enter:
sudo nano /etc/network/interfaces
8. If you are using Wi-Fi, skip to step 12.
9. If you are using an Ethernet cable: change the line
that reads iface eth0 inet dhcp to
iface eth0 inet static
10. Add the following lines, starting on a new line after
the word “static”. Replace the values in angled
brackets with the values from the previous steps:
address <inet addr>
netmask <mask>
network <destination>
broadcast <bcast>
gateway <gateway>
11. Skip to step 14.
12. If you are using Wi-Fi: change the line that reads
iface wlan0 inet dhcp to
iface wlan0 inet static
13. Add the following lines, starting on a new line after
the word “static”.
address <inet addr>
netmask <mask>
gateway <gateway>