LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-15-2018, 04:50 AM   #1
miccze
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 17

Rep: Reputation: Disabled
Network.service failed starting: No suitable device found


I recently installed Centos 7 minimal version on my Raspberry PI 3B+. Network seems to be working ( i am able to ssh to it), but network.service is failing to start. Below journalctl output:

Code:
-- Unit network.service has begun starting up.
Sep 14 14:46:44 rpicent1 network[1253]: Bringing up loopback interface:  [ OK ]
Sep 14 14:46:45 rpicent1 NetworkManager[244]: <info>  [1536929205.2079] 
audit: op="connection-activate" uuid="85810e29-e837-1d48-f5e7-9cd60d5a0ee4" 
name="System link" result="fail" reason="No suitable device found for this
Sep 14 14:46:45 rpicent1 network[1253]: Bringing up interface link:  Error: 
Connection activation failed: No suitable device found for this connection 
connection."
Sep 14 14:46:45 rpicent1 network[1253]: [FAILED]
Sep 14 14:46:45 rpicent1 network[1253]: Bringing up interface wlan0:

RTNETLINK answers: File exists
Sep 14 14:46:46 rpicent1 network[1253]: [  OK  ]
Sep 14 14:46:46 rpicent1 network[1253]: Bringing up interface 3Bredband-4FB2- 
2.4GHz:  [  OK  ]
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 network[1253]: RTNETLINK answers: File exists
Sep 14 14:46:47 rpicent1 systemd[1]: network.service: control process exited, 
code=exited status=1
Sep 14 14:46:47 rpicent1 systemd[1]: Failed to start LSB: Bring up/down 
networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Subject: Unit network.service has failed
-- Defined-By: systemd

-- Unit network.service has failed
-- The result is failed.
Sep 14 14:46:47 rpicent1 systemd[1]: Unit network.service entered failed 
state.
Sep 14 14:46:47 rpicent1 systemd[1]: network.service failed.
Sep 14 14:46:47 rpicent1 polkitd[316]: Unregistered Authentication Agent for 
unix-process:1247:56939 (system bus name :1.70, object path 
/org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) 
(disconnected from bus)
My #ip a output:

Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether b8:27:eb:e9:65:e0 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:bc:30:b5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.102/24 brd 192.168.8.255 scope global noprefixroute dynamic wlan0
       valid_lft 84766sec preferred_lft 84766sec
    inet 192.168.8.210/24 brd 192.168.8.255 scope global secondary wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::159:6aa3:3794:9a87/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
aaand below my /etc/sysconfig/network-scripts/ifcfg-wlan0 file:

Code:
TYPE=WiFi
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=wlan0
DEVICE=wlan0
ONBOOT=yes
IPV6_PRIVACY=no
UUID=b9253d06-b892-41ad-a05b-7c49a2eebc73
IPADDR=192.168.8.210
NETMASK=255.255.255.0
HWADDR=B8:27:EB:BC:30:B5
GATEWAY=192.168.8.1
DNS1=192.168.8.1
Another issue is that i have double IP, despite having static IP configured in ifcfg-wlan0 file, as you can see above. First that is dynamically populated by my router's dhcp server and second which i specified in ifcfg-wlan0 file as static IP. Any idea what should i do different to have just one static ip?

FYI, after OS installation, there was no ifcfg files, so i had to create ifcfg-wlan0.
 
Old 09-15-2018, 02:16 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Welcome to LinuxQuestions.

I have not tried installing CentOS 7 on a Pi so I am not sure how it is different then a regular PC. Typically NetworkManager controls all networking functions by default and therefore no need for the ifcfg- files.

You can either use NetworkManager and configure wlan0 with a static IP address using its applet in the desktop or command line utility or disable it completely and do everything manually.
 
Old 09-15-2018, 03:52 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
What michaelk said. I've not yet decoded the CentOS 7 differences re: NetworkManager and using network-scripts, tho, so I'm watching with interest.

I do note, however, that yes, your wlan appears to be working. The error you're getting appears to be related to the loopback configuration. Maybe you need to create ifcfg-lo?

Last edited by scasey; 09-15-2018 at 03:54 PM.
 
Old 09-16-2018, 02:59 AM   #4
miccze
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks for replies.
I found what was wrong with network.service and why it wasn't starting.
I turned out, that there was file ifcfg-link, in which below lines were written:
Code:
DEVICE=link
BOOTPROTO=dhcp
ONBOOT=on
After renaming this file with orig, so the system won't find it, network.service starts up.
However, when i then disable NetworkManager to operate just on network-scripts, it turns out link is needed after all, as network service fails to start with following output:

Code:
-- Unit network.service has begun starting up.
Jan 01 01:04:01 rpicent1 network[1113]: Bringing up loopback interface:  [  OK  ]
Jan 01 01:04:02 rpicent1 network[1113]: Bringing up interface wlan0:  RTNETLINK answers: File exists
Jan 01 01:04:02 rpicent1 network[1113]: [  OK  ]
Jan 01 01:04:03 rpicent1 network[1113]: Bringing up interface 3Bredband-4FB2-2.4GHz:
Jan 01 01:04:08 rpicent1 network[1113]: Determining IP information for wlan0... failed; no link present.  Check cable?
Jan 01 01:04:08 rpicent1 network[1113]: [FAILED]
Jan 01 01:04:08 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:08 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:08 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:08 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:08 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:09 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:09 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:09 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:09 rpicent1 network[1113]: RTNETLINK answers: File exists
Jan 01 01:04:09 rpicent1 systemd[1]: network.service: control process exited, code=exited status=1
Jan 01 01:04:09 rpicent1 systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed

Any idea what should i write into it, so this would work with just static IP from ifcfg-wlan0?
Also, i still can't get rid off the double IP problem, when NetworkManager is running.
 
  


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
[SOLVED] virbr0 and virbr1 won't start - no suitable device found lahfordie Linux - Newbie 6 09-06-2016 03:08 PM
No suitable device found: no device found for connection System eth0 eribudi Linux - Networking 8 07-07-2014 11:08 AM
[SOLVED] tcpdump - no suitable device found LorenCarter Linux - Networking 5 06-07-2010 10:43 AM
Port:0x180 failed (device not found ) Port:0 failed (device not found ) aaliya Linux - Hardware 0 10-05-2006 05:46 AM
Starting postgresql service: [FAILED] HeyAZ Fedora 1 08-21-2006 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 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