Debian jessie самостоятельно переходит со статики на DHCP

Автор realvava, 24 апреля 2018, 14:53:12

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

realvava

Поставил вчера сервачок для тестов на привычной jessie (8.6), поставил только SSH. Упграднул всё до предела. Набил статику в /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.8
mask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 77.88.8.8

192.168.0.1 - роутер, на котором DHCP.
Перезапустил интерфейс, машина стала откликаться по внутренней сети по заданному IP.  Сегодня уже - нет. Система не перезапускалась, сбоев питания не было. Но поскольку меня не было рядом, машинку ребутнули по-грубому - RESET-ом. Я начал копать логи.

syslog
Apr 23 15:30:24 my-serv-name kernel: [  196.521784] r8169 0000:03:00.0 eth0: link up
Apr 23 15:30:24 my-serv-name kernel: [  196.521792] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Apr 23 22:53:43 my-serv-name kernel: [26769.882552] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:02 my-serv-name kernel: [26788.016866] r8169 0000:03:00.0 eth0: link up
Apr 23 22:54:08 my-serv-name kernel: [26794.734805] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:10 my-serv-name kernel: [26796.784340] r8169 0000:03:00.0 eth0: link up
Apr 23 22:54:14 my-serv-name kernel: [26800.322465] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:16 my-serv-name kernel: [26801.932031] r8169 0000:03:00.0 eth0: link up

Apr 23 16:17:02 my-serv-name CRON[1339]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 16:21:00 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 16:21:00 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 16:21:00 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 2900 seconds.
Apr 23 17:09:20 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 17:09:21 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 17:09:21 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 3305 seconds.
Apr 23 17:17:01 my-serv-name CRON[1360]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 18:04:27 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 18:04:27 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 18:04:27 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 3040 seconds.
Apr 23 18:17:01 my-serv-name CRON[1374]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 18:55:08 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 18:55:08 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 18:55:08 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 3538 seconds.
Apr 23 19:17:01 my-serv-name CRON[1388]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 19:54:06 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 19:54:06 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 19:54:07 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 3593 seconds.
Apr 23 20:17:01 my-serv-name CRON[1402]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 20:54:00 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 20:54:00 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 20:54:01 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 3595 seconds.
Apr 23 21:17:01 my-serv-name CRON[1416]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 21:53:56 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 21:53:56 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 21:53:56 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 2940 seconds.
Apr 23 22:17:01 my-serv-name CRON[1430]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 22:42:56 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 22:42:56 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 22:42:57 my-serv-name dhclient: bound to 192.168.0.104 -- renewal in 3468 seconds.
Apr 23 22:53:43 my-serv-name kernel: [26769.882552] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:02 my-serv-name kernel: [26788.016866] r8169 0000:03:00.0 eth0: link up
Apr 23 22:54:08 my-serv-name kernel: [26794.734805] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:10 my-serv-name kernel: [26796.784340] r8169 0000:03:00.0 eth0: link up
Apr 23 22:54:14 my-serv-name kernel: [26800.322465] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:16 my-serv-name kernel: [26801.932031] r8169 0000:03:00.0 eth0: link up
Apr 23 23:17:01 my-serv-name CRON[1444]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 23 23:40:45 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 23 23:40:45 my-serv-name dhclient: DHCPNAK from 192.168.0.1
Apr 23 23:40:45 my-serv-name dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Apr 23 23:40:46 my-serv-name dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Apr 23 23:40:46 my-serv-name dhclient: DHCPOFFER from 192.168.0.1
Apr 23 23:40:46 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 23 23:40:47 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2866 seconds.
Apr 24 00:17:01 my-serv-name CRON[1468]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 00:28:33 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 00:28:33 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 00:28:33 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2716 seconds.
Apr 24 01:13:49 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 01:13:49 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 01:13:50 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2973 seconds.
Apr 24 01:17:01 my-serv-name CRON[1489]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 02:03:23 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 02:03:23 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 02:03:24 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2984 seconds.
Apr 24 02:17:01 my-serv-name CRON[1503]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 02:53:08 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 02:53:08 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 02:53:09 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3216 seconds.
Apr 24 03:17:01 my-serv-name CRON[1517]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 03:46:45 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 03:46:45 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 03:46:46 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2888 seconds.
Apr 24 04:17:01 my-serv-name CRON[1531]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 04:34:54 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 04:34:54 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 04:34:54 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3534 seconds.
Apr 24 05:17:01 my-serv-name CRON[1545]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 05:33:49 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 05:33:49 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 05:33:49 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3123 seconds.
Apr 24 06:17:01 my-serv-name CRON[1559]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 06:25:01 my-serv-name CRON[1562]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
Apr 24 06:25:53 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 06:25:53 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 06:25:53 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2858 seconds.
Apr 24 07:13:31 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 07:13:31 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 07:13:31 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3010 seconds.
Apr 24 07:17:01 my-serv-name CRON[1709]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 08:03:41 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 08:03:42 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 08:03:42 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3358 seconds.
Apr 24 08:17:01 my-serv-name CRON[1723]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 08:59:40 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 08:59:40 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 08:59:40 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 2897 seconds.
Apr 24 09:17:01 my-serv-name CRON[1737]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 09:47:57 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 09:47:57 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 09:47:58 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3089 seconds.
Apr 24 10:17:01 my-serv-name CRON[1751]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 10:39:27 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 10:39:27 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 10:39:27 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3053 seconds.
Apr 24 11:17:01 my-serv-name CRON[1765]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Apr 24 11:30:21 my-serv-name dhclient: DHCPREQUEST on eth0 to 192.168.0.1 port 67
Apr 24 11:30:21 my-serv-name dhclient: DHCPACK from 192.168.0.1
Apr 24 11:30:21 my-serv-name dhclient: bound to 192.168.0.101 -- renewal in 3374 seconds.
[свернуть]

на всякий (вдруг всё же по питанию?)
kern.log

Apr 23 15:30:24 my-serv-name kernel: [  196.521792] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Apr 23 22:53:43 my-serv-name kernel: [26769.882552] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:02 my-serv-name kernel: [26788.016866] r8169 0000:03:00.0 eth0: link up
Apr 23 22:54:08 my-serv-name kernel: [26794.734805] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:10 my-serv-name kernel: [26796.784340] r8169 0000:03:00.0 eth0: link up
Apr 23 22:54:14 my-serv-name kernel: [26800.322465] r8169 0000:03:00.0 eth0: link down
Apr 23 22:54:16 my-serv-name kernel: [26801.932031] r8169 0000:03:00.0 eth0: link up
[свернуть]

auth.log
Apr 23 16:17:02 my-serv-name CRON[1338]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 23 16:17:02 my-serv-name CRON[1338]: pam_unix(cron:session): session closed for user root
Apr 23 17:17:01 my-serv-name CRON[1359]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 23 17:17:01 my-serv-name CRON[1359]: pam_unix(cron:session): session closed for user root
Apr 23 18:17:01 my-serv-name CRON[1373]: pam_unix(cron:session): session opened for user root by (uid=0)
[свернуть]

сам crontab

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user   command
17 *   * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6   * * *   root   test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6   * * 7   root   test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6   1 * *   root   test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
[свернуть]
В каталоге cron.hourly ничего нет.

ogost

Запущен dhclient, который и меняет ваш адрес. Прибейте процесс, либо перезагрузите сервер. А network-manager случаем не установлен?