After the interfaces file is configured, run the/etc/init. d/networking restart command to restart the network configuration. The following error occurs:
* Running/etc/init. d/networking restart is deprecated because it may not enable again some interfaces * reconfiguring network interfaces... resolvconf: Error:/etc/resolv. conf isn't a symlink, not doing anything. rtnetlink answers: file existsfailed to bring up eth0.resolvconf: Error:/etc/resolv. conf isn't a symlink, not doing anything. * setting up iSCSI targets... done. SSH stop/waitingssh start/running, process 15220... done.
Solution:
Sudo dpkg-reconfigure resolvconf
Attach my complete interfaces file:
Auto loiface lo Inet loopbackauto eth0iface eth0 Inet static address 192.168.1.188 // ipnetmask mask 255.255.0 // subnet mask gateway 192.168.1.1 // gateway # broadcast 192.168.1.255 # DNS-nameservers 192.168.1.1