Instalei recentemente a versão mínima do Centos 7 no meu Raspberry PI 3B +. Rede parece estar funcionando (eu sou capaz de ssh para isso), mas network.service está a falhar ao iniciar. Abaixo da saída do journalctl:
-- 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)
Minha #ip a
output:
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
aae abaixo do meu arquivo /etc/sysconfig/network-scripts/ifcfg-wlan0
:
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
Outra questão é que eu tenho IP duplo, apesar de ter IP estático configurado no arquivo ifcfg-wlan0, como você pode ver acima. Primeiro que é dinamicamente preenchido pelo servidor dhcp do meu roteador e segundo que eu especifiquei no arquivo ifcfg-wlan0 como IP estático. Alguma idéia do que devo fazer diferente para ter apenas um ip estático?
FYI, após a instalação do SO, não havia arquivos ifcfg, então eu tive que criar ifcfg-wlan0.