Série de erros de rede (CentOS 7)

1

Estou tentando fazer com que o IPv6 funcione em um servidor e não consigo fazer com que funcione, mas também parece que tenho problemas maiores, que acredito que também estejam me impedindo de obter a rede IPv6. Eu não posso nem reiniciar a rede sem um erro. Edit: Eu acabei de tentar algo, por favor, veja a atualização na parte inferior.

-- Unit network.service has begun starting up.
Aug 01 16:59:57 server.myhost.com systemd-sysctl[3646]: Failed to write '99999999999999' to '/proc/sys/net/ipv6/conf/ens3/max_addresses': Invalid argument
Aug 01 16:59:57 server.myhost.com NetworkManager[583]: <warn>  [1501621197.7556] ifcfg-rh:     ignoring manual default route: 'default via 2001:0df3:5c00:0552:0000:0000:0000:0001' (/etc/sysconfig/network-scripts/route6-eth0)
Aug 01 16:59:57 server.myhost.com network[3623]: Bringing up loopback interface:  [  OK  ]
Aug 01 16:59:57 server.myhost.com network[3623]: Bringing up interface ens3:  [  OK  ]
Aug 01 16:59:58 server.myhost.com NetworkManager[583]: <warn>  [1501621198.0306] ifcfg-rh:     ignoring manual default route: 'default via 2001:0df3:5c00:0552:0000:0000:0000:0001' (/etc/sysconfig/network-scripts/route6-eth0)
Aug 01 16:59:58 server.myhost.com NetworkManager[583]: <info>  [1501621198.1393] audit: op="connection-activate" uuid="5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03" name="System eth0" result="fail" reason="No suitable device found for this connection."
Aug 01 16:59:58 server.myhost.com network[3623]: Bringing up interface eth0:  Error: Connection activation failed: No suitable device found for this connection.
Aug 01 16:59:58 server.myhost.com network[3623]: [FAILED]
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com network[3623]: RTNETLINK answers: File exists
Aug 01 16:59:58 server.myhost.com systemd-sysctl[3786]: Failed to write '99999999999999' to '/proc/sys/net/ipv6/conf/ens3/max_addresses': Invalid argument
Aug 01 16:59:58 server.myhost.com systemd[1]: network.service: control process exited, code=exited status=1
Aug 01 16:59:58 server.myhost.com systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
Aug 01 16:59:58 server.myhost.com systemd[1]: Unit network.service entered failed state.
Aug 01 16:59:58 server.myhost.com systemd[1]: network.service failed.

Aug 01 16:59:58 server.myhost.com polkitd[571]: Unregistered Authentication Agent for unix-process:3617:42765 (system bus name :1.60, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Aug 01 17:00:01 server.myhost.com systemd[1]: Started Session 2 of user root.
-- Subject: Unit session-2.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-2.scope has finished starting up.
-- 
-- The start-up result is done.
Aug 01 17:00:01 server.myhost.com systemd[1]: Starting Session 2 of user root.
-- Subject: Unit session-2.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-2.scope has begun starting up.
Aug 01 17:00:01 server.myhost.com CROND[3798]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Aug 01 17:01:01 server.myhost.com systemd[1]: Started Session 3 of user root.
-- Subject: Unit session-3.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-3.scope has finished starting up.
-- 
-- The start-up result is done.
Aug 01 17:01:01 server.myhost.com systemd[1]: Starting Session 3 of user root.
-- Subject: Unit session-3.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-3.scope has begun starting up.
Aug 01 17:01:01 server.myhost.com CROND[3946]: (root) CMD (run-parts /etc/cron.hourly)
Aug 01 17:01:01 server.myhost.com run-parts(/etc/cron.hourly)[3949]: starting 0anacron
Aug 01 17:01:01 server.myhost.com run-parts(/etc/cron.hourly)[3955]: finished 0anacron

Eu vi que estava fazendo referência a /etc/sysconfig/network-scripts/route6-eth0 , mas minha interface é ens3 , então editei route6-eth0 e mudei de:

2001:0df3:5c00:0552:0000:0000:0000:0001 dev eth0
default via 2001:0df3:5c00:0552:0000:0000:0000:0001

para:

2001:0df3:5c00:0552:0000:0000:0000:0001 dev ens3
default via 2001:0df3:5c00:0552:0000:0000:0000:0001

Então eu corri: mv /etc/sysconfig/network-scripts/route6-eth0 /etc/sysconfig/network-scripts/route6-ens3 mas ainda recebendo erros.

Aqui está a saída de systemctl status network.service :

Aug 01 17:13:52 server.host.com systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
Aug 01 17:13:52 server.host.com systemd[1]: Unit network.service entered failed state.
Aug 01 17:13:52 server.host.com systemd[1]: network.service failed.
Aug 01 17:13:52 server.host.com polkitd[571]: Unregistered Authentication Agent for unix-process:5957:126228 (system bus name :1.99, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
[root@vn1 ~]# nano /etc/sysconfig/network-scripts/route6-eth0
[root@vn1 ~]# nano /etc/sysconfig/network-scripts/route6-ens3 
[root@vn1 ~]# nano /etc/sysconfig/network-scripts/route6-ens3 
[root@vn1 ~]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[root@vn1 ~]# systemctl status network.service
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2017-08-01 17:18:18 EDT; 6s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6762 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Aug 01 17:18:18 server.host.com network[6762]: RTNETLINK answers: File exists
Aug 01 17:18:18 server.host.com network[6762]: RTNETLINK answers: File exists
Aug 01 17:18:18 server.host.com network[6762]: RTNETLINK answers: File exists
Aug 01 17:18:18 server.host.com network[6762]: RTNETLINK answers: File exists
Aug 01 17:18:18 server.host.com network[6762]: RTNETLINK answers: File exists
Aug 01 17:18:18 server.host.com network[6762]: RTNETLINK answers: File exists
Aug 01 17:18:18 server.host.com systemd[1]: network.service: control process exited, code=exited status=1
Aug 01 17:18:18 server.host.com systemd[1]: Failed to start LSB: Bring up/down networking.
Aug 01 17:18:18 server.host.com systemd[1]: Unit network.service entered failed state.
Aug 01 17:18:18 server.host.com systemd[1]: network.service failed.

Aqui está o /etc/sysconfig/network-scripts/ifcfg-ens3 :

HWADDR=00:16:3C:35:02:72
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no

NAME=ens3
UUID=c74b3d53-6175-469c-8163-0905403413b3
ONBOOT=yes
IPADDR=61.14.235.156
GATEWAY=61.14.235.1
NETMASK=255.255.255.0
DNS1=61.14.235.2
DNS2=8.8.8.8
    
por xendi 01.08.2017 / 23:11

1 resposta

1

Corrigido pela exclusão de /etc/sysconfig/network-scripts/ifcfg-eth0 . Estava lá como resultado de um autoconfig pelo host.

    
por 01.08.2017 / 23:40