LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2015, 11:09 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
/etc/init.d/network restart (failed)


My box is Scientific Linux 7.1 x64 and I got network problem.

Quote:
[root@localhost ~]# service network restaqrt
Usage: /etc/init.d/network {start|stop|status|restart|reload|force-reload}
[root@localhost ~]# /etc/init.d/network restart
Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journ alctl -xn' for details.
[FAILED]
Quote:
~] # nmcli c load /etc/sysconfig/network-scripts/ifcfg-eth0
could not load file '/etc/sysconfig/network-scripts/ifcfg-eth0'
Any helpful comment would be appreciated.
Thanks in advance.

Last edited by windstory; 11-17-2015 at 11:19 PM.
 
Old 11-17-2015, 11:29 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
[QUOTE=windstory;5451262]My box is Scientific Linux 7.1 x64 and I got network problem.

Code:
Restarting network (via systemctl): Job for network.service failed. 
See 'systemctl status network.service' and 'journalctl -xn' for details.
Did you do that?

Quote:
Originally Posted by windstory View Post
Any helpful comment would be appreciated.
Check ifcfg-eth0.
 
1 members found this post helpful.
Old 11-17-2015, 11:46 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
About 'systemctl status network.service' and 'journalctl -xn', I did it as shown at the attached photo but I could not understand what this means.
Click image for larger version

Name:	networkError.jpg
Views:	1923
Size:	181.9 KB
ID:	20070

And I've checked the ifcfg-eth0, but I could not find anything weird.

Click image for larger version

Name:	networkError2.jpg
Views:	1784
Size:	57.9 KB
ID:	20071
 
Old 11-18-2015, 12:01 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
When you can copy text, don't use pictures for posting text.

And if you don't understand an error message, try Google.

I believe the RNETLINK message means that the interface wasn't shut down correctly, thus it couldn't be started. Perhaps the nmcli message has the same cause. But I would have to google that myself to get clarity.

As a first step, I would try systemctl stop network, then check IP addresses, then systemctl start network. But as I said, google.
 
1 members found this post helpful.
Old 11-18-2015, 12:53 AM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
After 'systemctl stop network' I check ip with 'ifconfig', but there is not ip for inet4.
And I did 'systemctl start network', then shows 'Job for network.service failed. See 'systemctl satus network.service' and 'Journalctl -xn' for details.'.
 
Old 11-18-2015, 01:12 AM   #6
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
'ifdown eth0 and ifup eth0' has a problem.

Quote:
[root@localhost ~] ifdown ethO
Could not load file '/etc/sysconfig/network-sc ripts/ifcfg-eth0'
Could not load file '/etc/sysconfig/network-sc ripts/ifcfg-eth0'
ERROR : [/etc/sysconfig/network-sc ripts/ifdown-eth] Device has MAC address 00:00:00:00:00:00 00:15:5D:00:02:02, instead of configured address 00:15:5D:00:02:002. Ignoring,
[root@localhost ~] ifup ethO
Could not load file '/etc/sysconfig/netwo rk-scripts/ifcfg-eth0'
Could not load file '/etc/sysconfig/netwo rk-scripts/ifcfg-eth0'
ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device has different MAC address than expected,ignoring.

Last edited by windstory; 11-18-2015 at 01:14 AM.
 
Old 11-18-2015, 03:05 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by windstory View Post
'ifdown eth0 and ifup eth0' has a problem.
Code:
Device has MAC address 00:00:00:00:00:00 00:15:5D:00:02:02, instead of configured address 00:15:5D:00:02:002. Ignoring,
I think this output is a bit garbled, but it says that the MAC address in your ifcfg-eth0 is different from the actual MAC address of eth0.

You can take the HWADDRESS line out of ifcfg-eth0 or correct it.
 
1 members found this post helpful.
Old 11-18-2015, 03:17 AM   #8
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Thanks, I corrected it and solved.
 
Old 12-14-2020, 03:25 AM   #9
jugfudjustin
LQ Newbie
 
Registered: Dec 2020
Posts: 1

Rep: Reputation: Disabled
configure Restarting networking

old :

/etc/init.d/network-manager restart
Restarting networking (via systemctl): networking.service.

new :

/etc/init.d/networking restart
Restarting networking (via systemctl): networking.service.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
register_cnic failed error when restart network service wwipro Linux - Server 0 01-15-2014 10:44 PM
NETWORK transmit errors - assuming offline / NETWORK restart failed, could not find gcan Linux - Networking 3 11-13-2009 07:01 PM
Have to manually restart /etc/init.d/network after pm-suspend GamerX Fedora 2 10-18-2008 10:55 PM
-bash: /etc/init.d/network restart: permission denied mariusmusicus Linux - Networking 3 01-31-2008 12:00 PM
Ethernet card not working when '/etc/rc.d/init.d/network restart'. brynjarh Linux - Newbie 1 08-11-2004 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration