LINUX.ORG.RU
решено ФорумAdmin

[непонятное нечто][dhcp] dnsmasq, не выдаётся IP

 


0

0

Стоит DNS/DHCP-сервер на FreeBSD 8.0 и dnsmasq из портов, около месяца работал нормально, в /etc/ethers около 5000 IP-адресов, текущих лизов 150.

Сегодня началось нечто непонятное, не могу получить от него IP, аналогичное уже пару раз возникло у абонентов.

Выглядит как-то так на стороне клиента:

root@laptop> /etc/rc.d/netif restart                              /home/gforgx
Stopping network: lo0 em0 pflog0.
DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from 10.0.10.1
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPNAK from 10.0.10.1
DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 10.0.10.1
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPNAK from 10.0.10.1
DHCPNAK with no active lease.
^C

На сервере тишина, ничего в логах особого не видно, новые лизы в dnsmasq.leases появляются.

dhcp# dnsmasq -v
Dnsmasq version 2.50  Copyright (C) 2000-2009 Simon Kelley
Compile time options IPv6 GNU-getopt DBus no-I18N DHCP TFTP

This software comes with ABSOLUTELY NO WARRANTY.
Dnsmasq is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2 or 3.

Уже однажды замечал такое примерно недели две назад, но тогда «как-то само» (c) заработало через 5 минут.

Google молчит. Буду благодарен за советы :)

★★★

А настроить нормальный dhcpd и bind не судьба?

no-dashi ★★★★★
()

tcpdump -vv и внимательно смотри.

splinter ★★★★★
()

Внезапным образом решилось.

Сначала слепо обновил до 2.53 и проблема исчезла. Потом прочитал http://www.thekelleys.org.uk/dnsmasq/CHANGELOG и всё встало на свои места:

            Increased the default limit on number of leases to 1000
            (from 150). This is mainly a defence against DoS attacks,
            and for the average "one for two class C networks"
            installation, IP address exhaustion does that just as
            well. Making the limit greater than the number of IP
            addresses available in such an installation removes a
            surprise which otherwise can catch people out.

Видимо, кто-то не думал, что кто-то будет использовать его на /12 A-сети :)

GFORGX ★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.