sudo apt-get update sudo apt-get upgrade
sudo nano /etc/network/interfaces
auto eth0 iface eth0 inet static address 192.168.1.150 netmask 255.255.255.0 network 192.168.2.0 broadcast 192.168.1.255 gateway 192.168.2.1 safe
sudo nano /etc/resolv.conf
Do not edit this file by hand --your changes will be overwritten # I add this nameserver 220.127.116.11 nameserver 18.104.22.168
sudo apt-get remove dhcp-client
sudo /etc/init.d/networking restart
*Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces *Reconfiguring network interfaces... ssh stop/waiting ssh start/running,process 1438
Where is the mistake? I'm not lazy. I Googled it for 3 days but without results. I tried everything.
After reboot the
/etc/resolv.conf file is flashing to the original state.