Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Czesc,
mam serwer uslug na debianie 8, ktory pobiera adresacje z routera mikrotik.
Niestety dhcp bardzo smieci ponizszymi wpisami w logach:
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.
Offline
Wygląda na to, że masz bardzo krótki lease time. Pokaż: /var/lib/dhcp/dhclient.leases
Offline
[quote=jurgensen]Wygląda na to, że masz bardzo krótki lease time. Pokaż: /var/lib/dhcp/dhclient.leases[/quote]
dhclient.eth0.leases [----] 31 L:[ 1+11 12/ 40] *(400 /1209b) 0010 0x00A [*][X] lease { interface "eth0"; fixed-address 192.168.88.15; option subnet-mask 255.255.255.0; option routers 192.168.88.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 192.168.88.1,87.204.204.204,62.233.233.233; option dhcp-server-identifier 192.168.88.1; renew 5 2016/08/05 05:52:26; rebind 5 2016/08/05 05:56:59; expire 5 2016/08/05 05:58:14; } lease { interface "eth0"; fixed-address 192.168.88.15; option subnet-mask 255.255.255.0; option routers 192.168.88.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 192.168.88.1,87.204.204.204,62.233.233.233; option dhcp-server-identifier 192.168.88.1; renew 5 2016/08/05 05:56:18; rebind 5 2016/08/05 06:01:11; expire 5 2016/08/05 06:02:26; } lease { interface "eth0"; fixed-address 192.168.88.15; option subnet-mask 255.255.255.0; option routers 192.168.88.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 192.168.88.1,87.204.204.204,62.233.233.233; option dhcp-server-identifier 192.168.88.1; renew 5 2016/08/05 06:01:14; rebind 5 2016/08/05 06:05:03; expire 5 2016/08/05 06:06:18; }
Gdzie moge zmienic parametr "lease-time"?
Offline
Można by pewnie przesłać lease-time do serwera DHCP i zobaczyć czy będzie honorował. W /etc/dhcp/dhclient.conf :
interface "eth0" { send dhcp-lease-time 3600; }
Czas w sekundach
Offline
[quote=morfik]Można by pewnie przesłać lease-time do serwera DHCP i zobaczyć czy będzie honorował. W /etc/dhcp/dhclient.conf :
interface "eth0" { send dhcp-lease-time 3600; }
Czas w sekundach[/quote]
Niestety nie dziala.
Offline
[quote=zhup][quote=jurgensen]Wygląda na to, że masz bardzo krótki lease time. Pokaż: /var/lib/dhcp/dhclient.leases[/quote]
dhclient.eth0.leases [----] 31 L:[ 1+11 12/ 40] *(400 /1209b) 0010 0x00A [*][X] lease { interface "eth0"; fixed-address 192.168.88.15; option subnet-mask 255.255.255.0; option routers 192.168.88.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 192.168.88.1,87.204.204.204,62.233.233.233; option dhcp-server-identifier 192.168.88.1; renew 5 2016/08/05 05:52:26; rebind 5 2016/08/05 05:56:59; expire 5 2016/08/05 05:58:14; } lease { interface "eth0"; fixed-address 192.168.88.15; option subnet-mask 255.255.255.0; option routers 192.168.88.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 192.168.88.1,87.204.204.204,62.233.233.233; option dhcp-server-identifier 192.168.88.1; renew 5 2016/08/05 05:56:18; rebind 5 2016/08/05 06:01:11; expire 5 2016/08/05 06:02:26; } lease { interface "eth0"; fixed-address 192.168.88.15; option subnet-mask 255.255.255.0; option routers 192.168.88.1; option dhcp-lease-time 600; option dhcp-message-type 5; option domain-name-servers 192.168.88.1,87.204.204.204,62.233.233.233; option dhcp-server-identifier 192.168.88.1; renew 5 2016/08/05 06:01:14; rebind 5 2016/08/05 06:05:03; expire 5 2016/08/05 06:06:18; }
Gdzie moge zmienic parametr "lease-time"?[/quote]
W opcjach routera xd
Tak jak defaultową klasę dla lan, hasło admina i resztę.
A najlepiej, jeśliś niemikroticzny, wywalić logowanie dhclienta na debianie, bo wierz lub nie, ale to ostatnie logi które sprawdzasz jak coś się dzieje :P
Offline
Zmienić możesz na routerze. Na MT to będzie z tego, co pamiętam /ip/dhcp-server/ i parametr lease-time
Offline
Zmienilem ustawienia w mikrotik i teraz jest ok.
Dzieki za pomoc.
Offline
Time (s) | Query |
---|---|
0.00014 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00115 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.119.107.159' WHERE u.id=1 |
0.00085 | UPDATE punbb_online SET logged=1732746521 WHERE ident='18.119.107.159' |
0.00048 | SELECT * FROM punbb_online WHERE logged<1732746221 |
0.00089 | DELETE FROM punbb_online WHERE ident='18.224.59.107' |
0.00077 | SELECT topic_id FROM punbb_posts WHERE id=303874 |
0.00006 | SELECT id FROM punbb_posts WHERE topic_id=28839 ORDER BY posted |
0.00064 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=28839 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00127 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=28839 ORDER BY p.id LIMIT 0,25 |
0.00096 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28839 |
Total query time: 0.0073 s |