I don't know how to use a static IP address on a Debian machine. Can anyone help?
I have the static IP address 188.8.131.52.
This is what I've tried:
$ cp /etc/network/interfaces /etc/network/interfaces.bak $ sudo vi /etc/network/interfaces
iface eth0 inet dhcp
with the following text:
iface eth0 inet static address 184.108.40.206 gateway 220.127.116.11 netmask 255.255.255.0 network 18.104.22.168 broadcast 22.214.171.124
(NB: I have no idea if those gateway/network/broadcast addresses are correct - can anyone advise?)
When I restart networking:
$ /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning). Reconfiguring network interfaces...SIOCDELRT: No such process
And it hangs forever.
Can anyone help?