Network interfaces error

Tags
linux

 
Thread Tools Search this Thread
# 1  
Old 10-27-2017
Network interfaces error

I just ran sudo service networking start on Ubuntu 16.00 and came out with error message
Code:
Job for networking service failed because control process exited with error code see systemctl status networking.service

I tried to also run this command
Code:
systemctl status networking.service

I also got an error message
Code:
failed to start Raise network interfaces

Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 10-27-2017 at 12:14 PM.. Reason: Added CODE tags.
# 2  
Old 10-27-2017
Well, that might be the first step in a long and stony itinerary. You now need to investigate why it failed to start. Could the IFs be raised before? When did that stop functioning? Any system / systemd modifications ever since? Possible HW failures? Or, maybe a far fetched thought: does it fail because the IFs are already running?

Above is stating that the service can't raise the interface(s). Is that all or do you get more info?
When I issue the command
Code:
systemctl status networking.service
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2017-10-27 09:48:38 CEST; 8h ago
     Docs: man:interfaces(5)
. . .

you see IFs have been raised, but there's also a hint to read a man page. Therein, there are references to config files which you might want to double check (Are the right IFs listed? Do they exist?) and examples plus links for further reading like e.g. the Debian Reference manual.
# 3  
Old 10-27-2017
thanks
I did add a route in the /etc/network/interface file
and wanted to stop and start the networking service using
service networking stop and start

---------- Post updated at 12:27 PM ---------- Previous update was at 12:21 PM ----------

Code:
systemctl status networking.service
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
  Drop-In: /run/systemd/generator/networking.service.d
           └─50-insserv.conf-$network.conf
   Active: failed (Result: exit-code) since Fri 2017-10-27 16:50:42 BST; 12s ago
     Docs: man:interfaces(5)
  Process: 16089 ExecStart=/sbin/ifup -a --read-environment (code=exited, status
  Process: 16079 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] &&
 Main PID: 16089 (code=exited, status=1/FAILURE)

Oct 27 16:50:42 ukldn-ixhs-nms02 systemd[1]: Starting Raise network interfaces..
Oct 27 16:50:42 ukldn-ixhs-nms02 ifup[16089]: RTNETLINK answers: File exists
Oct 27 16:50:42 ukldn-ixhs-nms02 ifup[16089]: Failed to bring up ens160.
Oct 27 16:50:42 ukldn-ixhs-nms02 systemd[1]: networking.service: Main process ex
Oct 27 16:50:42 ukldn-ixhs-nms02 systemd[1]: Failed to start Raise network inter
Oct 27 16:50:42 ukldn-ixhs-nms02 systemd[1]: networking.service: Unit entered fa
Oct 27 16:50:42 ukldn-ixhs-nms02 systemd[1]: networking.service: Failed with res


Moderator's Comments:
Mod Comment Seriously! Please use CODE tags as required by forum rules!

Last edited by RudiC; 10-27-2017 at 01:45 PM.. Reason: Added CODE tags.
# 4  
Old 10-27-2017
Looks like there's something missing in your status output.

How did you add that "route"?
Did you remove that and try to restart?
# 5  
Old 10-27-2017
I just added it to the file /etc/network/interfaces

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Configuring network interfaces in Solaris11 nypreH Solaris 2 01-16-2014 02:24 AM
Network interfaces on T2000 - e1000g1 and ipge1 paulfoel Solaris 12 04-19-2013 03:52 PM
Network Interfaces Problem - Monitoring equipment andresguillen IP Networking 0 01-16-2013 04:27 AM
network interfaces on vio server manoj.solaris AIX 0 10-12-2012 08:24 AM
Problem with multiple network interfaces RonBowater AIX 4 07-19-2012 12:20 PM
/etc/network/interfaces g0dlik3 UNIX for Dummies Questions & Answers 1 12-02-2011 11:19 AM
How to bond network interfaces agcodba UNIX for Advanced & Expert Users 2 10-26-2010 06:22 AM
/etc/network/interfaces problem learn82 Debian 5 10-26-2010 05:50 AM
using wget on selected network interfaces chebarbudo UNIX for Dummies Questions & Answers 5 04-09-2010 05:33 AM
Network Interfaces fugitive Solaris 8 05-30-2009 06:08 AM
NIM w/ two network interfaces snakernetb AIX 1 03-04-2008 02:21 PM
NIM w/ two network interfaces snakernetb AIX 0 03-04-2008 12:03 PM
Network interfaces problem vilius SCO 0 09-19-2007 08:47 AM
Network interfaces problem vilius IP Networking 0 09-19-2007 08:45 AM
HOW-TO Retrieve all network interfaces??! LocalStorm Solaris 2 12-21-2005 04:16 PM