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:
- Solution summary of VMware network card without IP and failure to start network card (continuous update)
- Wireless network solution of deepin Linux network card driver (manual) installation
- Docker creation container cannot find network card: error response from daemon: network XXXX not found
- CentOS 8.1 solution to error in executing #systemctl restart network.service
- The most complete solution for service network restart failure under CENTOS 7
- Solution: the network can be recovered only when the Ubuntu broadband is disconnected
- Network card problem: Unable to initialize Windows Sockets interface
- Windows Realtek USB wireless network card boot failure Rtlihvs. DLL module stop problem
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- Error:join network can not connect to Zerotier service
- The local network card cannot be obtained by opening Wireshark
- [FAILED] Failed to start Raise network interfaces
- php_ network_ Getaddresses: getaddressinfo failed: name or service not known solution
- Solution to “[dbnetlib] [connectionwrite (send()).] general network error”
- Ubuntu18 “Activation of network connection failed” cannot access the Internet 【Solution】
- 【Q&A】Failed to start LSB: Bring up/down networking
- VirtualBox Failed to start LSB:Bring up/down Networking problem
- A new virtual machine cannot be connected to the network (error fetching interface information device not found),
- How to disable Network Manager on Linux
- Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings.