Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
Problem z DHCPD - Proszę o pomoc http://forum.freesco.pl/viewtopic.php?f=22&t=17327 |
Strona 1 z 1 |
Autor: | dulek [ środa, 26 listopada 2008, 12:49 ] |
Tytuł: | Problem z DHCPD - Proszę o pomoc |
Witam serdecznie, od wczoraj po zawieszeniu się mojego modemu i restarcie modemu przez tepse (modem thomson speedtoutch) internet na serwerze działa, ale nie startuje mi DHCPD. [root@router dulek]# /etc/rc.d/dhcpd restart NND: Stopping DHCP Server [Wykonane] NND: Starting DHCP Server [Nieudane] [root@router dulek]# Nic w plikach się nie zmieniło. Nikt tam nie grzebał od dawna. /etc/dhcpd.conf # /etc/dhcp.conf # Plik konfiguracyjny deamona dhcpd ddns-update-style=ad-hoc; option domain-name "siec"; option domain-name-servers 194.204.159.1, 194.204.152.34; option subnet-mask 255.255.255.0; default-lease-time 21600; max-lease-time 86400; subnet 192.168.0.0 netmask 255.255.255.0 { option broadcast-address 192.168.0.255; #Adres rozgłoszeniowy option routers 192.168.0.1; #Brama domyślna authoritative; } host marketing12 { hardware ethernet 00:4F:4E:61:23:39; fixed-address 192.168.0.2; option broadcast-address 192.168.0.255; option routers 192.168.0.1; } host ksiegowosc2 { hardware ethernet 00:18:F3:6F:FD:9C; fixed-address 192.168.0.3; option broadcast-address 192.168.0.255; option routers 192.168.0.1; } shared-network SANBONUS { subnet 192.168.1.0 netmask 255.255.255.0 { option broadcast-address 192.168.1.255; #Adres rozgłoszeniowy option routers 192.168.1.1; #Brama domyślna option subnet-mask 255.255.255.0; } subnet 192.168.2.0 netmask 255.255.255.0 { option broadcast-address 192.168.2.255; #Adres rozgłoszeniowy option routers 192.168.2.1; #Brama domyślna option subnet-mask 255.255.255.0; } subnet 192.168.3.0 netmask 255.255.255.0 { option broadcast-address 192.168.3.255; #Adres rozgłoszeniowy option routers 192.168.3.1; #Brama domyślna option subnet-mask 255.255.255.0; } subnet 192.168.4.0 netmask 255.255.255.0 { option broadcast-address 192.168.4.255; #Adres rozgłoszeniowy option routers 192.168.4.1; #Brama domyślna option subnet-mask 255.255.255.0; } subnet 192.168.5.0 netmask 255.255.255.0 { option broadcast-address 192.168.5.255; #Adres rozgłoszeniowy option routers 192.168.5.1; #Brama domyślna option subnet-mask 255.255.255.0; } } host marketing1 { hardware ethernet 00:1A:4D:F1:EE:0C; fixed-address 192.168.1.2; option broadcast-address 192.168.1.255; option routers 192.168.1.1; } host marketing2 { hardware ethernet 00:1A:4D:F1:F3:C2; fixed-address 192.168.1.3; option broadcast-address 192.168.1.255; option routers 192.168.1.1; } host marketing3 { hardware ethernet 00:18:F3:6F:FD:5D; fixed-address 192.168.1.4; option broadcast-address 192.168.1.255; option routers 192.168.1.1; } host soulman { hardware ethernet 00:19:E3:36:0F:08; fixed-address 192.168.1.5; option broadcast-address 192.168.1.255; option routers 192.168.1.1; } host test { hardware ethernet 00:90:f5:25:d0:ea; fixed-address 192.168.1.6; option broadcast-address 192.168.1.255; option routers 192.168.1.1; } host szkolenia2 { hardware ethernet 00:18:F3:6F:FD:9A; fixed-address 192.168.2.2; option broadcast-address 192.168.2.255; option routers 192.168.2.1; } host szkolenia3 { hardware ethernet 00:18:F3:6F:FD:65; fixed-address 192.168.2.3; option broadcast-address 192.168.2.255; option routers 192.168.2.1; } host szkolenia4 { hardware ethernet 00:0A:E4:E2:B4:5D; fixed-address 192.168.2.4; option broadcast-address 192.168.2.255; option routers 192.168.2.1; } host prezes { hardware ethernet 00:1B:24:15:F3:1B; fixed-address 192.168.2.5; option broadcast-address 192.168.2.255; option routers 192.168.2.1; } host wydawnictwo1 { hardware ethernet 00:90:F5:54:DB:B2; fixed-address 192.168.3.2; option broadcast-address 192.168.3.255; option routers 192.168.3.1; } host wydawnictwo2 { hardware ethernet 00:03:0D:59:D5:87; fixed-address 192.168.3.3; option broadcast-address 192.168.3.255; option routers 192.168.3.1; } host asus { hardware ethernet 00:1D:60:07:1E:D6; fixed-address 192.168.3.4; option broadcast-address 192.168.2.255; option routers 192.168.3.1; } host wcprezes { hardware ethernet 00:21:5A:20:B6:CB; fixed-address 192.168.4.5; option broadcast-address 192.168.4.255; option routers 192.168.4.1; } // 1 host iwonas { hardware ethernet 00:1F:29:DC:30:ED; fixed-address 192.168.4.6; option broadcast-address 192.168.4.255; option routers 192.168.4.1; } host ewa { hardware ethernet 00:1D:60:76:4B:5C; fixed-address 192.168.3.5; option broadcast-address 192.168.2.255; option routers 192.168.3.1; } host wydawnictwo22 { hardware ethernet 00:60:6E:00:03:41; fixed-address 192.168.4.2; option broadcast-address 192.168.4.255; option routers 192.168.4.1; } host marketing32 { hardware ethernet 00:19:5B:6C:7D:B8; fixed-address 192.168.4.3; option broadcast-address 192.168.4.255; option routers 192.168.4.1; } // 2 host szkolenia32 { hardware ethernet 00:19:5B:6C:7D:B7; fixed-address 192.168.4.4; option broadcast-address 192.168.4.255; option routers 192.168.4.1; } host ksiegowosc1 { hardware ethernet 00:1A:4D:F1:F3:F1; fixed-address 192.168.5.2; option broadcast-address 192.168.5.255; option routers 192.168.5.1; } nie mam pojęcia co się mogło stać. Tepsa mówi, że nic nie zmienili i wszystko powinno być ok. Na początku myślałem, że to może zmiana DNS... |
Autor: | Maciek [ środa, 26 listopada 2008, 12:58 ] |
Tytuł: | |
Wpisz z palca jako root dhcpd i wtedy otrzymasz jasną informację dlaczego usługa nie startuje. |
Autor: | konrad_1415 [ piątek, 28 listopada 2008, 16:49 ] |
Tytuł: | |
A weź wykasuj na poczatek wpisy //1 i //2 z twego dhcpd.conf |
Autor: | Demon17 [ sobota, 4 kwietnia 2009, 23:34 ] |
Tytuł: | |
Zasadniczo zacząłbym od posprzątania w konfiguracji. 1. 'option subnet-mask' umieścibym w definicjach podsieci - będzie logiczniej. 2. podejrzewam, że twój serwer jest autorytatywny dla wszystkich posieci, więc 'authoritative' umieściłbym w części globalnej. 3. definicje hostów umieść wewnątrz odpowiednich dla nich podsieci redukując jednocześnie ich zawartość i przenosząc część wspólną do definicji podsieci (chyba o to tobie chodzi). Plik konfiguracyjny powienien wyglądać mniej więcej tak: # /etc/dhcpd.conf # Plik konfiguracyjny demona DHCPD default-lease-time 21600; max-lease-time 86400; option domain-name "siec"; option domain-name-servers 194.204.159.1, 194.204.152.34; ddns-update-style ad-hoc; authoritative; subnet 192.168.0.0 netmask 255.255.255.0 { option routers 192.168.0.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; host marketing12 { hardware ethernet 00:4F:4E:61:23:39; fixed-address 192.168.0.2; } host ksiegowosc2 { hardware ethernet 00:18:F3:6F:FD:9C; fixed-address 192.168.0.3; } } shared-network SANBONUS { subnet 192.168.1.0 netmask 255.255.255.0 { ...itd... Zwróć uwagę na wcięcia. Znak równości w 3 linijce może robić problemy, i ogólny bałagan. Zawsze po próbie uruchomienia demona zajrzyj do logów. tam są wszystkie informacje. U mnie w Debianie jest jeszcze jeden plik konfiguracyjny '/etc/default/dhcp3-server' gdzie wskazuje się demonowi, na których interfejsach ma nasłuchiwać 'INTERFACES=...'. Sprawdź, czy u ciebie również ten plik jest poprawny. Czasami jest tak, że brak pliku '/var/lib/dhcp3/dhcpd.leases' nie pozwala uruchomić demona - wtedy wystarczy stworzyć pusty plik o tej nazwie i jest OK. Pozdrawiam. |
Autor: | qrak [ niedziela, 5 kwietnia 2009, 08:26 ] |
Tytuł: | |
1. archeolog ![]() 2. NND to nie Debian ![]() |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |