[+]DHCP flooded in /var/log/syslog

Masz problemy z siecią bądź internetem? Zapytaj tu
zhup
Posty: 3
Rejestracja: 05 sierpnia 2016, 14:19

[+]DHCP flooded in /var/log/syslog

Post autor: zhup »

Czesc,

mam serwer uslug na debianie 8, ktory pobiera adresacje z routera mikrotik.
Niestety dhcp bardzo smieci ponizszymi wpisami w logach:

Kod: Zaznacz cały

dhclient: DHCPREQUEST on eth0 to 192.168.88.1 port 67
dhclient: DHCPACK from 192.168.88.1
dhclient: bound to 192.168.88.1.15 -- renewal in 270 seconds
Jak to wylaczyc?
Z gory dziekuje za pomoc.
Awatar użytkownika
dedito
Moderator
Posty: 3515
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: DHCP flooded in /var/log/syslog

Post autor: dedito »

Sprawdź jak masz ustawiony parametr lease-time na tym mikrotiku.
http://wiki.mikrotik.com/wiki/Manual:IP ... Properties
zhup
Posty: 3
Rejestracja: 05 sierpnia 2016, 14:19

Re: DHCP flooded in /var/log/syslog

Post autor: zhup »

dhclient.conf - domyslny, nic w nim nie zmienialem.

Kod: Zaznacz cały

dhclient.conf      [----]  0 L:[  1+ 0   1/ 56] *(0   /1797b) 0035 0x023                                                                                                                       [*][X]
# Configuration file for /sbin/dhclient, which is included in Debian's
#<----->dhcp3-client package.
#
# This is a sample configuration file for dhclient. See dhclient.conf's
#<----->man page for more information about the syntax of this file
#<----->and a more comprehensive list of the parameters understood by
#<----->dhclient.
#
# Normally, if the DHCP server provides reasonable information and does
#<----->not leave anything out (like the domain name, for example), then
#<----->few changes must be made to this file, if any.
#

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

#send host-name "andare.fugue.com";
send host-name = gethostname();
#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
#send dhcp-lease-time 3600;
#supersede domain-name "fugue.com home.vix.com";
#prepend domain-name-servers 127.0.0.1;
#request subnet-mask, broadcast-address, time-offset, routers,
<------>domain-name, domain-name-servers, domain-search, host-name,
<------>dhcp6.name-servers, dhcp6.domain-search,
<------>netbios-name-servers, netbios-scope, interface-mtu,
<------>rfc3442-classless-static-routes, ntp-servers;
require subnet-mask, domain-name-servers;
#timeout 60;
#retry 60;
#reboot 10;
#select-timeout 5;
#initial-interval 2;
#script "/etc/dhcp3/dhclient-script";
#media "-link0 -link1 -link2", "link0 link1";
#reject 192.33.137.209;

#alias {
#  interface "eth0";
#  fixed-address 192.5.5.213;
#  option subnet-mask 255.255.255.255;
#}

#lease {
#  interface "eth0";
#  fixed-address 192.33.137.200;
#  medium "link0 link1";
#  option host-name "andare.swiftmedia.com";
#  option subnet-mask 255.255.255.0;
#  option broadcast-address 192.33.137.255;
#  option routers 192.33.137.250;
Awatar użytkownika
lizard
Beginner
Posty: 287
Rejestracja: 08 lutego 2016, 18:47

Re: DHCP flooded in /var/log/syslog

Post autor: lizard »

To nie klient, a serwer decyduje o czasie dzierżawy. Twój mikrotik ma ustawiony czas dzierżawy na 4 min i 30 sekund. To oznacza, że klienty odnawiają adres co 2 min. 15 sekund.
Awatar użytkownika
dedito
Moderator
Posty: 3515
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: DHCP flooded in /var/log/syslog

Post autor: dedito »

Tak jak wcześniej pisałem, sprawdź lease-time na mikrotiku lub sprawdź czy zadziała odchaszowanie, w swoim dhclient.conf, parametru

Kod: Zaznacz cały

#send dhcp-lease-time 3600;
Można też ustawić (w porozumieniu z adminem mikrotika) statyczne IP z poza puli adresów serwera dhcp.
zhup
Posty: 3
Rejestracja: 05 sierpnia 2016, 14:19

Re: DHCP flooded in /var/log/syslog

Post autor: zhup »

Dzieki wszystkim za pomoc.
Faktycznie byla to "wina" mikrotika.
Awatar użytkownika
dedito
Moderator
Posty: 3515
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: DHCP flooded in /var/log/syslog

Post autor: dedito »

W takim razie oznacz temat jako rozwiązany zgodnie z regulaminem forum.
Zablokowany