0

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

Address 192.168.1.24
network mask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

*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

3
  • Use sudo service networking restart or sudo restart networking, because old syntax becomes deprecated which means it comes out of using. – Danatela Mar 5 '14 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 '14 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 '14 at 8:15
0

Just do one change

network give 192.168.1.0/24

Hope this will help you

4
  • Daniel are you saying I type the network IP exactly with .0/24? – Given Mar 5 '14 at 6:11
  • @Given Yes, enter network 192.168.0.0/24 - this enables access to the entire subnet. – douggro Mar 5 '14 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 '14 at 8:22
  • @Given See my answer to your other question. – douggro Mar 5 '14 at 8:44
0

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

or

sudo service network-manager restart
0

auto eth1

iface eth1 inet static

address 192.168.1.24

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1

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.