1st we need to edit the interface file with nano editer.
– sudo nano /etc/network/interfaces –
And look for this line in the file.
– iface eth0 inet dhcp –
And change it to
– iface eth0 inet static –
After that we need to add a few lines under what we just edited in
– iface eth0 inet static
address 192.168.0.100netmask 255.255.255.0 gateway 192.168.0.1 You can change the address to anything you want.