직렬 네트워크 오류(CentOS 7)

직렬 네트워크 오류(CentOS 7)

내 서버에서 IPv6를 실행하려고 하는데 제대로 작동하지 않는 것 같습니다. 하지만 더 큰 문제가 있어 IPv6 네트워크 실행을 방해하는 것 같습니다. 오류 없이 네트워크를 다시 시작할 수도 없습니다. 편집: 방금 뭔가를 시도했으므로 하단의 업데이트를 참조하세요.

-- 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

참조되는 것을 보았지만 /etc/sysconfig/network-scripts/route6-eth0인터페이스가 ens3다음과 같아서 편집 route6-eth0하고 변경했습니다.

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

도착하다:

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

그런 다음 실행했지만 mv /etc/sysconfig/network-scripts/route6-eth0 /etc/sysconfig/network-scripts/route6-ens3여전히 오류가 발생했습니다.

이것은 다음의 출력입니다 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.

이것은 /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

답변1

삭제로 수정되었습니다 /etc/sysconfig/network-scripts/ifcfg-eth0. 이는 호스트 자동 구성의 결과입니다.

관련 정보