Edit
1 | /etc/network/interfaces |
and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100):
1 2 | # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). |
1 2 3 | # The loopback network interface auto lo iface lo inet loopback |
1 2 3 4 5 | # This is a list of hotpluggable network interfaces. # They will be activated automatically by the hotplug subsystem. mapping hotplug script grep map eth0 |
1 2 3 4 5 6 7 8 | # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 |
Then do
1 | sudo /etc/init.d/networking restart |
to restart the network.