Freesco, NND, CDN, EOS
http://forum.freesco.pl/

dotyczy DHCP
http://forum.freesco.pl/viewtopic.php?f=35&t=6701
Strona 1 z 1

Autor:  jhorzombek [ wtorek, 8 lutego 2005, 14:45 ]
Tytuł:  dotyczy DHCP

Witam wszystkich
mam taki problem: po uruchomieniu: rc_dhcpd start otrzymuję taki komunikat błędu :
Starting dhcpd... /etc/dhcpd.conf line 12: parameters not allowed after first declaration.
option domain-name "alfa";
^
/etc/dhcpd.conf line 13: parameters not allowed after first declaration.
default-lease-time 604800;
^
/etc/dhcpd.conf line 14: parameters not allowed after first declaration.
max-lease-time 604800;
^
Warning: subnet 192.168.0.0/24 conflicts with subnet 192.168.0.0/24
Configuration file errors encountered -- exiting
exiting.
czy ktoś mógłby mi powiedzieć, co w moim freesco 027 jest nie tak.
Podam jeszcze jak u mnie wygląda plik dhcpd.conf :
option domain-name "alfa";
default-lease-time 604800;
max-lease-time 604800;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.15 192.168.0.30;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
}
option domain-name "alfa";
default-lease-time 604800;
max-lease-time 604800;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.15;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
}
host galka {
fixed-address 192.168.0.2;
hardware ethernet 00:30:4f:14:e4:b1;
}
host kaca {
fixed-address 192.168.0.3;
hardware ethernet 00:e0:4c:11:13:6f;
}
host jh {
fixed-address 192.168.0.4;
hardware ethernet 00:30:4f:19:a6:d8;
}
host kasprzyk {
fixed-address 192.168.0.5;
hardware ethernet 00:30:4f:2d:ba:ba;
}
host siminski {
fixed-address 192.168.0.6;
hardware ethernet 00:d0:b7:a8:c8:92;
}
host piatek {
fixed-address 192.168.0.7;
hardware ethernet 00:30:4f:21:0d:89;
}
host kawalec {
fixed-address 192.168.0.8;
hardware ethernet 00:02:44:57:a3:83;
}
host filipczak {
fixed-address 192.168.0.9;
hardware ethernet 00:02:44:6a:d9:8a;
}
host grygierek {
fixed-address 192.168.0.10;
hardware ethernet 00:30:4f:28:b7:f7;
}
host kopyto {
fixed-address 192.168.0.11;
hardware ethernet 00:e0:18:ef:c2:f3;
}
host galach {
fixed-address 192.168.0.12;
hardware ethernet 00:30:4f:28:b7:fa;
}
host asia {
fixed-address 192.168.0.13;
hardware ethernet 00:30:4f:19:a7:f5;
}
Będę wdzięczny za każdą pomoc

Autor:  Maciek [ wtorek, 8 lutego 2005, 17:36 ]
Tytuł:  Re: dotyczy DHCP

jhorzombek pisze:
Witam wszystkich
mam taki problem: po uruchomieniu: rc_dhcpd start otrzymuję taki komunikat błędu :
Starting dhcpd... /etc/dhcpd.conf line 12: parameters not allowed after first declaration.
option domain-name "alfa";
^
/etc/dhcpd.conf line 13: parameters not allowed after first declaration.
default-lease-time 604800;
^
/etc/dhcpd.conf line 14: parameters not allowed after first declaration.
max-lease-time 604800;
^
Warning: subnet 192.168.0.0/24 conflicts with subnet 192.168.0.0/24
Configuration file errors encountered -- exiting
exiting.
czy ktoś mógłby mi powiedzieć, co w moim freesco 027 jest nie tak.

Zapewne wpisałeś zbyt dużo rzeczy. Plik dhcpd.conf w pierwszej części jest generowany auttomatycznie na podstawie konfiguracji. Do /mnt/router/etc/dhcpd.conf wpisujemy tylko MAC klientów, nic na temat dzierżawy, maski rangi... a u ciebie chyba to wystąpiło podwójnie...

Autor:  jhorzombek [ wtorek, 8 lutego 2005, 23:11 ]
Tytuł: 

bardzo dziękuję Ci za pomoc, już kilka razy pomogłeś mi z moimi problemami, jestem bardzo wdzięczny, ale dziś nie mogę tego sprawdzić - dopiero pojutrze, dam Ci znać, czy mi się to udalo
jeszcze raz dziękuję
pozdrowionka
jhorzombek

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/