Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
dhcp nie przzydziela adresów do MAC http://forum.freesco.pl/viewtopic.php?f=22&t=14066 |
Strona 1 z 1 |
Autor: | klukas [ środa, 15 listopada 2006, 00:02 ] |
Tytuł: | dhcp nie przzydziela adresów do MAC |
w dhcpd conf mam tak wpisane: subnet 192.168.0.0 netmask 255.255.255.0 { ddns-update-style=ad-hoc; range 192.168.0.13, 192.168.0.14 default-lease-time 86400; option domain-name "ultra.net.pl"; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; host moj{ hardware ethernet 00:50:8D:C0:8D:AE; fixed-address 192.168.0.2; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; } host 1 { hardware ethernet 00:14:85:8F:C2:88; fixed-address 192.168.0.3; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; } host 2 { hardware ethernet 00:50:8D:E1:9E:D6; fixed-address 192.168.0.4; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; } host 3 { hardware ethernet 00:0A:E6:5F:B6:05; fixed-address 192.168.0.5; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; } host 4 { hardware ethernet 00:11:D8:63:97:93; fixed-address 192.168.0.6; i tak do ip z koncowka 12 jak ustawie do mojego kompa np ip 5 to i tak przydzieli mi 2 oczywiscie robie dhcpd restart przy kazdej zmianie configa a w logu pokazuje mi cosik takiego Nov 14 16:49:56 router dhcpd: ** You must add a global ddns-update-style statement to /etc/dhcpd.conf. Nov 14 16:49:56 router dhcpd: To get the same behaviour as in 3.0b2pl11 and previous Nov 14 16:49:56 router dhcpd: versions, add a line that says "ddns-update-style ad-hoc;" Nov 14 16:49:56 router dhcpd: Please read the dhcpd.conf manual page for more information. ** Nov 14 16:49:56 router dhcpd: Nov 14 16:49:56 router dhcpd: If you did not get this software from ftp.isc.org, please Nov 14 16:49:56 router dhcpd: get the latest from ftp.isc.org and install that before Nov 14 16:49:56 router dhcpd: requesting help. Nov 14 16:49:56 router dhcpd: Nov 14 16:49:56 router dhcpd: If you did get this software from ftp.isc.org and have not Nov 14 16:49:57 router dhcpd: yet read the README, please read it before requesting help. Nov 14 16:49:57 router dhcpd: If you intend to request help from the dhcp-server@isc.org Nov 14 16:49:57 router dhcpd: mailing list, please read the section on the README about Nov 14 16:49:57 router dhcpd: submitting bug reports and requests for help. Nov 14 16:49:57 router dhcpd: Nov 14 16:49:57 router dhcpd: Please do not under any circumstances send requests for Nov 14 16:49:57 router dhcpd: help directly to the authors of this software - please Nov 14 16:49:57 router dhcpd: send them to the appropriate mailing list as described in Nov 14 16:49:57 router dhcpd: the README file. Nov 14 16:49:57 router dhcpd: Nov 14 16:49:57 router dhcpd: exiting. |
Autor: | -MW- [ środa, 15 listopada 2006, 00:52 ] |
Tytuł: | |
Cytuj: ddns-update-style=ad-hoc; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.13 192.168.0.14; default-lease-time 86400; option domain-name "ultra.net.pl"; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; Cytuj: host moj{
hardware ethernet 00:50:8D:C0:8D:AE; fixed-address 192.168.0.2; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; } nie ma potrzeby abys powtarzal te linie, sa wyzej. |
Autor: | Aszej [ środa, 15 listopada 2006, 00:58 ] |
Tytuł: | |
jakis dziwny masz ten konfig jakos nic nie jest po kolei wg standardu, a ja bym sie przyczepil do range 192.168.0.13, 192.168.0.14 po pierwsze nie wiem co robi przecinek po 13 a po drugie zabraklo srednika za 14 |
Autor: | klukas [ środa, 15 listopada 2006, 01:18 ] |
Tytuł: | |
Aszej pisze: jakis dziwny masz ten konfig jakos nic nie jest po kolei wg standardu, a ja bym sie przyczepil do
range 192.168.0.13, 192.168.0.14 po pierwsze nie wiem co robi przecinek po 13 a po drugie zabraklo srednika za 14 no tak tutaj jest blad ale juz poprawiony. to moje pierwsze spotkanie z proba ustawienia DHCP plik jest pisany z FAQ a to ze kolejnosc jest wazna to nie wiedzialem. najgorsze jest ze nie przydziela IP :/ ![]() wogole nie wiem czy range jest potrzebne bo nie chce z niego korzystac... moge to spokojnie wywalic? |
Autor: | Aszej [ środa, 15 listopada 2006, 03:45 ] |
Tytuł: | |
zaplotkowac mozesz czyli # przed wpisem, bo kiedys moze sie przydac poprawnie zapisany dhcpd.conf wyglada mniej wiecej tak # /etc/dhcp.conf # Plik konfiguracyjny deamona dhcpd ddns-update-style=ad-hoc; option domain-name "ultra.net.pl"; 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; log-facility local0; #Jeżeli chcesz dodać statyczne wpisy dla komputerów #musisz zmieni przedział podany przy zmiennej range #tak aby komputery ze stałym IP nie zawierały się w przedziale subnet 192.168.0.0 netmask 255.255.255.0 { #range 192.168.0.13 192.168.0.14; #Zakres przydzielanych adresów option broadcast-address 192.168.0.255; #Adres rozgłoszeniowy option routers 192.168.0.1; #Brama domyślna authoritative; } host user { hardware ethernet 00:50:8D:C0:8D:AE; fixed-address 192.168.0.2; option broadcast-address 192.168.0.255; option routers 192.168.0.1; } |
Autor: | klukas [ środa, 15 listopada 2006, 14:44 ] |
Tytuł: | |
zaraz sprawdzę :] |
Autor: | klukas [ środa, 15 listopada 2006, 14:48 ] |
Tytuł: | |
teraz wywalilo mi cos takiego [root@router lucio]# dhcpd restart Internet Systems Consortium DHCP Server V3.0.3 Copyright 2004-2005 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ lease 192.168.0.14: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. lease 192.168.0.13: no subnet. Wrote 0 deleted host decls to leases file. Wrote 0 new dynamic host decls to leases file. Wrote 0 leases to leases file. No subnet declaration for restart (0.0.0.0). ** Ignoring requests on restart. If this is not what you want, please write a subnet declaration in your dhcpd.conf file for the network segment to which interface restart is attached. ** Not configured to listen on any interfaces! If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the dhcp-server@isc.org mailing list, please read the section on the README about submitting bug reports and requests for help. Please do not under any circumstances send requests for help directly to the authors of this software - please send them to the appropriate mailing list as described in the README file. exiting. |
Autor: | dafi [ środa, 15 listopada 2006, 18:38 ] |
Tytuł: | |
subnet 192.168.0.0 netmask 255.255.255.0 { #range 192.168.0.13 192.168.0.14; przed range wywal "#" i jak to ma sie zgrywać kiedy w range masz a deklaracjach statycznych ip . statyczne ip musza sie zawierać w przedziale range. No i po 2 z tego co mi wiadomo to range zawsze musi być nawet jak przydzielasz ip do MAC-a. dopisał Zciech Nawet tego nie czytajcie ![]() |
Autor: | Kimas [ środa, 15 listopada 2006, 18:46 ] |
Tytuł: | |
dafi pisze: No i po 2 z tego co mi wiadomo to range zawsze musi być nawet jak przydzielasz ip do MAC-a.
ja mam "range" zaplotkowane i chodzi dobrze |
Autor: | klukas [ środa, 15 listopada 2006, 18:56 ] |
Tytuł: | |
dafi pisze: subnet 192.168.0.0 netmask 255.255.255.0 { #range 192.168.0.13 192.168.0.14; przed range wywal "#" i jak to ma sie zgrywać kiedy w range masz a deklaracjach statycznych ip . statyczne ip musza sie zawierać w przedziale range. No i po 2 z tego co mi wiadomo to range zawsze musi być nawet jak przydzielasz ip do MAC-a. #Jeżeli chcesz dodać statyczne wpisy dla komputerów #musisz zmieni przedział podany przy zmiennej range #tak aby komputery ze stałym IP nie zawierały się w przedziale hmm ale jest wyraznie napisane zeby statyczne nie zawieraly sie w range. i dochodzi mi wpis w logu ze nie chce nasluchiwac Nov 15 15:23:15 router dhcpd: No subnet declaration for restart (0.0.0.0). Nov 15 15:23:15 router dhcpd: ** Ignoring requests on restart. If this is not what Nov 15 15:23:15 router dhcpd: you want, please write a subnet declaration Nov 15 15:23:15 router dhcpd: in your dhcpd.conf file for the network segment Nov 15 15:23:15 router dhcpd: to which interface restart is attached. ** Nov 15 15:23:15 router dhcpd: Nov 15 15:23:15 router dhcpd: Not configured to listen on any interfaces! ale sprobuje zrobic tak jak mowi dafi... i zaraz dam znac i po sprawdzaniu dalej wyskakuje to co widac w logu :/ ![]() |
Autor: | dafi [ środa, 15 listopada 2006, 20:33 ] |
Tytuł: | |
a pokaż co wyświetla ifconfig u ciebie ?? |
Autor: | klukas [ środa, 15 listopada 2006, 21:45 ] |
Tytuł: | |
prosze bardzo :] eth0 Link encap:Ethernet HWaddr 00:50:DA:43:DF:A3 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:835 errors:0 dropped:0 overruns:1 frame:0 TX packets:763 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:90121 (88.0 Kb) TX bytes:614823 (600.4 Kb) Interrupt:15 Base address:0x7c00 eth1 Link encap:Ethernet HWaddr 00:60:4C:69:60:26 UP BROADCAST RUNNING MULTICAST MTU:65535 Metric:1 RX packets:733 errors:0 dropped:0 overruns:0 frame:0 TX packets:622 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:597194 (583.1 Kb) TX bytes:70422 (68.7 Kb) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) ppp0 Link encap:Point-to-Point Protocol inet addr:83.11.173.14 P-t-P:213.25.2.228 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:729 errors:0 dropped:0 overruns:0 frame:0 TX packets:618 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:595660 (581.6 Kb) TX bytes:57898 (56.5 Kb) |
Autor: | zciech [ środa, 15 listopada 2006, 21:53 ] |
Tytuł: | |
Zrob to raz a porzadnie Aszej Ci napisal jak ma wygladac config. Zaraz ten temat trafi do śmietnika, bo tyle roznych glupot na raz to juz dawno nie widzialem. # /etc/dhcp.conf # Plik konfiguracyjny deamona dhcpd ddns-update-style=ad-hoc; option domain-name "co_badz"; option domain-name-servers 194.204.159.1, 194.204.152.34; 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 } host moj { hardware ethernet 00:50:8D:C0:8D:AE; fixed-address 192.168.0.2; } # i tak dalej nastepne az do ostatniego ostatni { hardware ethernet 00:50:88:C0:8D:DF; fixed-address 192.168.0.12; } ak nawiasem mowiac to: subnet 192.168.0.0 netmask 255.255.255.0 { ddns-update-style=ad-hoc; range 192.168.0.13, 192.168.0.14 default-lease-time 86400; option domain-name "ultra.net.pl"; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; #---------------------TU BRAKUJE KLAMRY ZAMYKAJACEJ } host moj{ hardware ethernet 00:50:8D:C0:8D:AE; fixed-address 192.168.0.2; option domain-name-servers 194.204.159.1, 194.204.152.34; option routers 192.168.0.1; } |
Autor: | dafi [ czwartek, 16 listopada 2006, 00:06 ] |
Tytuł: | |
eth1 Link encap:Ethernet HWaddr 00:60:4C:69:60:26 UP BROADCAST RUNNING MULTICAST MTU:65535 Metric:1 RX packets:733 errors:0 dropped:0 overruns:0 frame:0 TX packets:622 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:597194 (583.1 Kb) TX bytes:70422 (68.7 Kb) a dlaczego dla eth1 nie ma żadnego ip przypisanego?? czy może ja coś znowu kręcę ?? |
Autor: | zciech [ czwartek, 16 listopada 2006, 00:27 ] |
Tytuł: | |
Zasadniczo nie ma takiej potrzeby zeby mial. Ale to nie ma nic do rzeczy (do dhcpd) |
Autor: | czuczu [ sobota, 18 listopada 2006, 02:08 ] |
Tytuł: | |
mam taka prośbę potrzebuję zrobić na dhcp dwie podsieci tak aby część komputerów dostawała adresy z puli np 192.168.1.X a reszta z 192.168.2.X wszystko podłączone do jednej sieciówki najlepiej zeby adresy były stałem przypisane po MAC aktualny adres serwera to 192.168.2.1 proszęo pomoc z góry dziękuję z ajakiś config pozdrawiam |
Autor: | czuczu [ poniedziałek, 20 listopada 2006, 17:25 ] |
Tytuł: | |
czy oby sie nie dalo? czy nikt nie umie ?:> |
Autor: | tasiorek [ poniedziałek, 20 listopada 2006, 19:42 ] |
Tytuł: | |
Sie dalo i ktos umie. Nawet juz to opisal. http://forum.freesco.pl/search.php Ci pomoze. |
Autor: | czuczu [ poniedziałek, 27 listopada 2006, 00:51 ] |
Tytuł: | |
Tasiorek moze jakis link? nic tam nie moge znalezc nawe milion razy czytalem twoje faq i tez ni ma ![]() Pozdro |
Autor: | tasiorek [ poniedziałek, 27 listopada 2006, 03:10 ] |
Tytuł: | |
Np. tu: http://forum.freesco.pl/viewtopic.php?t=13821 Odpusc sobie odpowiedzi -MW- (bez urazy, poprostu, ten pomysl jest kiepski). |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |