I am getting the following message after changing dhcp to start with the following settings:

network mask

*Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
*Reconfiguring network interfaces...

what does deprecated mean? I have searched the blogs and none is helping

  • Use sudo service networking restart or sudo restart networking, because old syntax becomes deprecated which means it comes out of using.
    – Danatela
    Mar 5, 2014 at 5:49
  • Thanks danatela when I restart using suggest syntax above I get the MSG "stop: Unknown instance: networking / waiting. Please note that I am able to ping my dns and websites
    – Given
    Mar 5, 2014 at 6:07
  • @Given To clarify, 'deprecated' in terms of commands means that the referenced command is no longer officially supported and has been replaced with a newer command string. This is usually because script libraries and code has changed to invoke new functions not implemented in the old command string.
    – douggro
    Mar 5, 2014 at 8:15

3 Answers 3


Just do one change

network give

Hope this will help you

  • Daniel are you saying I type the network IP exactly with .0/24?
    – Given
    Mar 5, 2014 at 6:11
  • @Given Yes, enter network - this enables access to the entire subnet.
    – douggro
    Mar 5, 2014 at 8:09
  • @douggro I have done as daniel suggested and when I do Sudo service restart networking restart , I get "stop: Unknown instance: networking stop/waiting" what does this exactly mean? I want to proceed and install Samba. Can i go ahead?
    – Given
    Mar 5, 2014 at 8:22
  • @Given See my answer to your other question.
    – douggro
    Mar 5, 2014 at 8:44

Deprecated means that it's not used anymore instead you can use other commands like:

sudo ifdown eth0 && sudo ifup eth0

replace eth0 with your interface


sudo service network-manager restart

auto eth1

iface eth1 inet static






After edited, try this command " sudo ifup eth1 "

Try like this, it will help you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.