- Code: Select all
/etc/network/interface
This is what a default file usually looks like:
- Code: Select all
# The primary network interface using DHCP to acquire an IP
auto eth0
iface eth0 inet dhcp
This is what your file should look like to set a static IP
- Code: Select all
#The IP is statically set to 192.168.0.10
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1