dhcpd
Community Support question - to convert into a paid question, click here
Lines in bold below have not yet been seen by the customer - those in blue are from the customer
Username : Date : Action : Comments [ close all ] |
|
|
|
jsidgman : 18/08/02 06:51 AM : Incident created |
- I have been trying to implement dhcp-server. It does not work. it fails to start when booting my machine.
First, the dhcpd.conf file is in /usr/share/doc/dhcp-server-3.0/ instead of /etc/. In order for the dhcpd command to look in the default directory I have, I edited the dhcpd file in /etc/rc.d/init.d/ and change the path. Well, it does not work it keeps looking for the dhcpd.conf file in /etc/. Is there another file I should be changing?
Meanwhile, since this did not work I made a copy of dhcpd.conf in /etc. The dhcpd comman began looking for it. However, when I run it I get a message that says:
"You must add a ddns-update-style statement to /etc/dhcpd.conf.
To get the same behaviour as in 3.0b2pl11 and previous
versions, add a line that says "ddns-update-style ad-hoc;"
Then I add this line and it says: can't parse standard ddns updater!
I have no clue how this should be done and where. Can somebody help me please?
Thanks,
Jurgen
By the way, my dhcpd.conf file looks like this:
ddns-update-style ad-hoc;
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.200 192.168.100.205;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.100.255;
option routers 192.168.100.1;
option domain-name-servers 192.168.100.1;
option domain-name "home.cbx";
option ip-forwarding on;
option netbios-node-type 8;
option netbios-name-servers 192.168.100.1;
option netbios-dd-server 192.168.100.1;
}
|
|
|
|
tivolle : 18/08/02 03:36 PM : Reply received |
- First your most of your configuration files should be in /etc
The path /usr/share/doc/dhcp-server-3.0/ is for the documentation.
To setup easly your dhcp server use the Mandrake Control Center. In the
section server you will have an option for that.
If you want to do it by hand I give you my /etc/dhcpd.conf file
Thanks to close the incident if it solve your problem.
Fabien
==================================================
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
# default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name "homelan.org";
option domain-name-servers 192.168.0.1;
range dynamic-bootp 192.168.0.16 192.168.0.253;
default-lease-time 21600;
max-lease-time 43200;
}
|
|
Attachment
|
|
jsidgman : 18/08/02 11:00 PM : More info provided |
- Thanks tivolle!
I did not have installed the wizard to configure dhcp from the Mandrake Control Center. That's why I was doing it by hand. Nevertheless, after installing the wizard I used it to build the configuration. The file did not work when I run dhcpd -f because of that "ddns-update-style" line. Then I changed it to none and I run dhcpd -f again. I did not get error messages but it looks to me that something is still wrong because at start up my computer fails to start dhcp. Also, going to Mandrake Control Center/System/Services and trying to stop and start dhcp from there, it fails.
I am attaching the dhcpd.conf file so you can take a look at what the wizard did.
Additionally, I do not know if this is important or not but the result of dhcpstatus is as follows:
DHCP Subnet Information
Subnet: 192.168.0.0 Netmask: 255.255.255.0
IP range: 192.168.0.1 - 192.168.0.254 Router: 192.168.0.1 IPs defined: 6
IPs used: 6 IPs free: 0
Which I think is odd because if no computers on my network have been able to find my server, how could it be possible that there are no IPs free? I do not know if my interpretation is correct or not.
Thanks for your help,
Jurgen
|
|
Attachment
|
|
jsidgman : 18/08/02 11:30 PM : Incident closed |
- The help was really good but I solved the problem by myself when I discovered that my changes should be made in the dhcp-server-3.0 directory since mandrake did not read it from etc despite the fact that the dhcpd command looked for it in etc.
I created a symbolic link in dhcp-server-3.0 targeting the etc folder and now everything works just fine.
Thanks for the tips,
Jurgen
|
|
|
|
Language
Search Mandriva Expert
|