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!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2016-07-09 14:07:27

  wolacinio - Użytkownik

wolacinio
Użytkownik
Zarejestrowany: 2016-03-10

[rozwiązane]Bug isc-dhcp-server? Serwer dhcp

Witam serdecznie.
Mam problem z odpaleniem serwera isc-dhcp-server.
Po wydaniu polecenia:

Kod:

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.

Kod:

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:

Kod:

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:

Kod:

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

 

#2  2016-07-09 14:35:27

  wolacinio - Użytkownik

wolacinio
Użytkownik
Zarejestrowany: 2016-03-10

Re: [rozwiązane]Bug isc-dhcp-server? Serwer dhcp

Już rozwiązane. Dla potomnych należy ustawić adres:

Kod:

ifconfig eth0 192.168.1.1 netmask 255.255.255.0

Offline

 

#3  2016-07-11 10:01:42

  qluk - Pan inż. Cyc

qluk
Pan inż. Cyc
Skąd: Katowice
Zarejestrowany: 2006-05-22

Re: [rozwiązane]Bug isc-dhcp-server? Serwer dhcp

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:

Kod:

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.

zamykam

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
To nie jest tylko forum, to nasza mała ojczyzna ;-)