cause: > today’s work required to configure a DNS server for the wireless terminal configuration host test (of course, you can buy a wireless router that can match host, please skip it). Then I set up a DNS server with debian7.5. Every time I configure and restart networking ( service networking restart), the network card could not be started and then there was no way. I went to ifup eth0 to start my network card, but I don’t know why it is like this. Before, ubuntu can be restarted directly. So services networking restart comes again
try to find a way, first in the computer room to see, there is an alarm, but the server room does not take a browser, can not be copied. Start the network card first. Then go back to your office and get the log with the following command, and search for it all at once
service networking restart >>log.txt &&ifup eth0
Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces … (warning).
Reconfiguring network interfaces… Reloading /etc/samba/smb.conf: smbd only.
done.
the answer is
in the first Google post
http://am-blog.no-ip.org/BlogEngine/post/2013/12/26/Networking-restart-is-deprecated-because-it-may-not-enable-again-some-interfaces.aspx
The reason is that/etc/init.d/networking uses the program “ifup-a”. This starts only network interfaces that are marked with “auto”.
This means that the previous command to restart the network is equivalent to using ifup-a, but only starts network devices with auto fields in interfaces by default. The solution is to add the eth0 field as
span> span> p>
try it again, done.
service networking restart >>log.txt &&ifup eth0
Reconfiguring network interfaces… Reloading /etc/samba/smb.conf: smbd only.
done.

span> span> p>
Read More:
- Stop: job failed while stopping
- Determining IP information for eth0… failed; no link present. Check cable?
- Error, some other host already uses address (How to Fix)
- CentOS 7 installation error: Cannot find a valid baseurl for repo: base/7/x86_6
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- How to disable Network Manager on Linux
- Wireless network solution of deepin Linux network card driver (manual) installation
- VBoxManage.exe: error: Failed to create the host-only adapter
- Solution: the network can be recovered only when the Ubuntu broadband is disconnected
- VirtualBox Failed to start LSB:Bring up/down Networking problem
- 【Q&A】Failed to start LSB: Bring up/down networking
- Windows Realtek USB wireless network card boot failure Rtlihvs. DLL module stop problem
- Error:Connection activation Failed: no suitable device found for this connection solution
- Linux’s method of clearing DNS cache and refreshing DNS in shell terminal (Ubuntu, Debian)
- Ubuntu18 “Activation of network connection failed” cannot access the Internet 【Solution】
- [FAILED] Failed to start Raise network interfaces
- The most complete solution for service network restart failure under CENTOS 7
- When configuring ROS distributed / Error report solution and command requirements encountered in the process of master-slave computer
- Solution summary of VMware network card without IP and failure to start network card (continuous update)