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/.
Strony: 1
Wątek Zamknięty
Witam serdecznie.
Mam problem z odpaleniem serwera isc-dhcp-server.
Po wydaniu polecenia:
root@debian:/home/wolacinio# /etc/init.d/isc-dhcp-server start [....] Starting isc-dhcp-server (via systemctl): isc-dhcp-server.serviceJob for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details. failed!
A poniżej informacje o błędzie.
root@debian:/home/wolacinio# journalctl -xn -- Logs begin at pią 2016-07-08 09:24:56 CEST, end at sob 2016-07-09 14:02:37 CEST. -- lip 09 14:02:35 debian dhcpd[18305]: bugs on either our web page at www.isc.org or in the README file lip 09 14:02:35 debian dhcpd[18305]: before submitting a bug. These pages explain the proper lip 09 14:02:35 debian dhcpd[18305]: process and the information we find helpful for debugging.. lip 09 14:02:35 debian dhcpd[18305]: lip 09 14:02:35 debian dhcpd[18305]: exiting. lip 09 14:02:37 debian isc-dhcp-server[18298]: Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! lip 09 14:02:37 debian isc-dhcp-server[18298]: failed! lip 09 14:02:37 debian systemd[1]: isc-dhcp-server.service: control process exited, code=exited status=1 lip 09 14:02:37 debian systemd[1]: Failed to start LSB: DHCP server. -- Subject: Unit isc-dhcp-server.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit isc-dhcp-server.service has failed. -- -- The result is failed. lip 09 14:02:37 debian systemd[1]: Unit isc-dhcp-server.service entered failed state.
Poniżej plik konfiguracyjny:
default-lease-time 600; max-lease-time 7200; option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; option routers 192.168.1.254; option domain-name-servers 192.168.1.1, 192.168.1.2; option domain-name "mydomain.example"; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.100; range 192.168.1.150 192.168.1.200; }
Oraz jajko:
root@debian:/home/wolacinio# uname -a Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
Czy ktoś się spotkał z czymś takim?
Offline
Już rozwiązane. Dla potomnych należy ustawić adres:
ifconfig eth0 192.168.1.1 netmask 255.255.255.0
Offline
Raczej ogólnie, należy podnieść interfejs na którym ma działać DHCP lub przypisać adres jeśli jest podniesiony ale bez stałego IP (da się ale nie zalecam aby interfejs sam sobie pobierał z serwera DHCP który hostuje).
Przypuszczalnie w /var/log/messages lub syslog było coś w takim stylu:
No subnet declaration for eth0 (no IPv4 addresses) Ignoring requests on eth0. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface eth0 is attached.
[i]zamykam[/i]
Offline
Wątek Zamknięty
Strony: 1
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00099 | 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='3.149.237.231' WHERE u.id=1 |
0.00076 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.149.237.231', 1732373598) |
0.00080 | SELECT * FROM punbb_online WHERE logged<1732373298 |
0.00069 | SELECT topic_id FROM punbb_posts WHERE id=303103 |
0.00091 | SELECT id FROM punbb_posts WHERE topic_id=28771 ORDER BY posted |
0.00084 | 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=28771 AND t.moved_to IS NULL |
0.00007 | SELECT search_for, replace_with FROM punbb_censoring |
0.00070 | 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=28771 ORDER BY p.id LIMIT 0,25 |
0.00075 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28771 |
Total query time: 0.00665 s |