重启电脑后,IPv6地址丢失

问题描述 投票:0回答:0

ipv6 地址在启动时丢失

例如:

2023 年 2 月 23 日星期四 11:09:49 CST

Thu Feb 23 11:09:49 CST 2023
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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:91:23:c3 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.47/24 brd 172.16.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 2402:4e00:1717:ee01:0:987a:c739:1bb6/128 scope global dynamic
       valid_lft 441sec preferred_lft 141sec
    inet6 fe80::5054:ff:fe91:23c3/64 scope link
       valid_lft forever preferred_lft forever

2023 年 2 月 23 日星期四 11:09:50 CST:

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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:91:23:c3 brd ff:ff:ff:ff:ff:ff
    inet 172.16.1.47/24 brd 172.16.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe91:23c3/64 scope link tentative
       valid_lft forever preferred_lft forever

2402:4e00:1717:ee01:0:987a:c739:1bb6 丢失

journalctl 日志是:

Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: Cloud-init v. 20.1 running 'init' at Thu, 23 Feb 2023 03:09:41 +0000. Up 174.27 seconds.
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +++++++++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++++++++
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: | Device |  Up  |                 Address                  |      Mask     | Scope  |     Hw-Address    |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |  eth0  | True |               172.16.1.47                | 255.255.255.0 | global | 52:54:00:91:23:c3 |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |  eth0  | True | 2402:4e00:1717:ee01:0:987a:c739:1bb6/128 |       .       | global | 52:54:00:91:23:c3 |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |  eth0  | True |        fe80::5054:ff:fe91:23c3/64        |       .       |  link  | 52:54:00:91:23:c3 |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   lo   | True |                127.0.0.1                 |   255.0.0.0   |  host  |         .         |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   lo   | True |                 ::1/128                  |       .       |  host  |         .         |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +--------+------+------------------------------------------+---------------+--------+-------------------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: ++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +-------+-------------+------------+---------------+-----------+-------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: | Route | Destination |  Gateway   |    Genmask    | Interface | Flags |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +-------+-------------+------------+---------------+-----------+-------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   0   |   0.0.0.0   | 172.16.1.1 |    0.0.0.0    |    eth0   |   UG  |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   1   | 169.254.0.0 |  0.0.0.0   |  255.255.0.0  |    eth0   |   U   |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   2   |  172.16.1.0 |  0.0.0.0   | 255.255.255.0 |    eth0   |   U   |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +-------+-------------+------------+---------------+-----------+-------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: ++++++++++++++++++++++++++++++++++++++++Route IPv6 info+++++++++++++++++++++++++++++++++++++++++
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +-------+--------------------------------------+---------------------------+-----------+-------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: | Route |             Destination              |          Gateway          | Interface | Flags |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +-------+--------------------------------------+---------------------------+-----------+-------+
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   8   | 2402:4e00:1717:ee01:0:987a:c739:1bb6 |             ::            |    eth0   |   Ue  |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   9   |       2402:4e00:1717:ee01::/64       |             ::            |    eth0   |   U   |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   11  |              fe80::/64               |             ::            |    eth0   |   U   |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   12  |                 ::/0                 | fe80::feee:ffff:feff:ffff |    eth0   |   UG  |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: |   17  |               ff00::/8               |             ::            |    eth0   |   U   |
Feb 23 11:09:41 VM-1-47-centos cloud-init[966]: ci-info: +-------+--------------------------------------+---------------------------+-----------+-------+
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Initial cloud-init job (metadata service crawler).
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting Permit User Sessions...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Reached target Network is Online.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting Crash recovery kernel arming...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting System Logging Service...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting OpenSSH server daemon...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Reached target Cloud-config availability.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting Apply the settings specified in cloud-config...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting /etc/rc.d/rc.local Compatibility...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Permit User Sessions.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Job spooling tools.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Command Scheduler.
Feb 23 11:09:41 VM-1-47-centos kdumpctl[979]: No memory reserved for crash kernel
Feb 23 11:09:42 VM-1-47-centos kdumpctl[979]: Starting kdump: [FAILED]
Feb 23 11:09:41 VM-1-47-centos ntpd[545]: Listen normally on 4 eth0 2402:4e00:1717:ee01:0:987a:c739:1bb6 UDP 123
Feb 23 11:09:41 VM-1-47-centos systemd[1]: kdump.service: main process exited, code=exited, status=1/FAILURE
Feb 23 11:09:41 VM-1-47-centos ntpd[545]: new interface(s) found: waking up resolver
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Failed to start Crash recovery kernel arming.
Feb 23 11:09:41 VM-1-47-centos crond[997]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 62% if used.)
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Unit kdump.service entered failed state.
Feb 23 11:09:42 VM-1-47-centos cloud-init[982]: Cloud-init v. 20.1 running 'modules:config' at Thu, 23 Feb 2023 03:09:41 +0000. Up 174.98 seconds.
Feb 23 11:09:42 VM-1-47-centos crond[997]: (CRON) INFO (running with inotify support)
Feb 23 11:09:43 VM-1-47-centos kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
Feb 23 11:09:43 VM-1-47-centos kernel: ISO 9660 Extensions: RRIP_1991A
Feb 23 11:09:41 VM-1-47-centos systemd[1]: kdump.service failed.
Feb 23 11:09:42 VM-1-47-centos sshd[981]: Server listening on 0.0.0.0 port 22.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started /etc/rc.d/rc.local Compatibility.
Feb 23 11:09:43 VM-1-47-centos cloud-init[1063]: Cloud-init v. 20.1 running 'modules:final' at Thu, 23 Feb 2023 03:09:42 +0000. Up 175.95 seconds.
Feb 23 11:09:43 VM-1-47-centos cloud-init[1063]: Cloud-init v. 20.1 finished at Thu, 23 Feb 2023 03:09:43 +0000. Datasource DataSourceConfigDrive [local,ver=2][source=/dev/sr0].  Up 176.34 seconds
Feb 23 11:09:42 VM-1-47-centos sshd[981]: Server listening on :: port 22.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting Terminate Plymouth Boot Screen...
Feb 23 11:09:42 VM-1-47-centos rsyslogd[980]:  [origin software="rsyslogd" swVersion="8.24.0-52.el7_8.2" x-pid="980" x-info="http://www.rsyslog.com"] start
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Starting Wait for Plymouth Boot Screen to Quit...
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Received SIGRTMIN+21 from PID 218 (plymouthd).
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Wait for Plymouth Boot Screen to Quit.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Getty on tty1.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Serial Getty on ttyS0.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Reached target Login Prompts.
Feb 23 11:09:41 VM-1-47-centos systemd[1]: Started Terminate Plymouth Boot Screen.
Feb 23 11:09:42 VM-1-47-centos systemd[1]: Started OpenSSH server daemon.
Feb 23 11:09:42 VM-1-47-centos systemd[1]: Started Apply the settings specified in cloud-config.
Feb 23 11:09:42 VM-1-47-centos systemd[1]: Starting Execute cloud user/final scripts...
Feb 23 11:09:42 VM-1-47-centos systemd[1]: Started System Logging Service.
Feb 23 11:09:43 VM-1-47-centos systemd[1]: Started Execute cloud user/final scripts.
Feb 23 11:09:50 VM-1-47-centos systemd[1]: Started Dynamic System Tuning Daemon.
Feb 23 11:09:50 VM-1-47-centos systemd[1]: Reached target Multi-User System.
Feb 23 11:09:50 VM-1-47-centos systemd[1]: Starting Update UTMP about System Runlevel Changes...
Feb 23 11:09:50 VM-1-47-centos systemd[1]: Reached target Cloud-init target.
Feb 23 11:09:50 VM-1-47-centos systemd[1]: Started Update UTMP about System Runlevel Changes.
Feb 23 11:09:50 VM-1-47-centos systemd[1]: Startup finished in 810ms (kernel) + 19.079s (initrd) + 2min 43.434s (userspace) = 3min 3.323s.
Feb 23 11:09:51 VM-1-47-centos ntpd[545]: Deleting interface #4 eth0, 2402:4e00:1717:ee01:0:987a:c739:1bb6#123, interface stats: received=0, sent=0, dropped=0, active_time=10 secs
**Feb 23 11:09:51 VM-1-47-centos ntpd[545]: Deleting interface #3 eth0, fe80::5054:ff:fe91:23c3#123, interface stats: received=0, sent=0, dropped=0, active_time=30 secs**
Feb 23 11:09:53 VM-1-47-centos ntpd[545]: Listen normally on 5 eth0 fe80::5054:ff:fe91:23c3 UDP 123
Feb 23 11:09:53 VM-1-47-centos ntpd[545]: new interface(s) found: waking up resolver

Feb 23 11:09:51 VM-1-47-centos ntpd[545]:删除接口 #4 eth0,2402:4e00:1717:ee01:0:987a:c739:1bb6#123,接口统计:收到=0 , sent=0, dropped=0, active_time=10 秒

好像有服务删除了这个 ipv6 地址

我能为这个问题做什么?

centos ip redhat ipv6 ntpd
© www.soinside.com 2019 - 2024. All rights reserved.