View previous topic :: View next topic |
Author |
Message |
Rush[ZA] n00b

Joined: 01 Dec 2004 Posts: 56 Location: Johannesburg
|
Posted: Mon Feb 07, 2005 5:04 am Post subject: setting up a dhcp server |
|
|
Is there a guide to setting up a dhcp server ?
I searched the forums and all I found were problems relating to dhcp and not the actual how to.
Any ideas? _________________ <------- This ad space for rent ------> |
|
Back to top |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Mon Feb 07, 2005 6:14 am Post subject: |
|
|
Check out Chapter 3 of the Diskless Nodes with Gentoo document... _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
 |
moby n00b


Joined: 17 Dec 2002 Posts: 29
|
Posted: Mon Feb 07, 2005 10:33 pm Post subject: DHCP Howto |
|
|
If you are seriously going to setup and run DHCP in a business setting, I would suggest you purchase:
"The DHCP Handbook" written by Ralph Droms, Ph.D. (wrote the RFC), and Ted Lemon (programmed the ISC dhcp server).
Excelent reference.
If your just setting it up at home for fun, just emerge it and follow the documentation that comes with it. If you get stuck post a question, and we will try to help. I haven't run accross a How-to in these forums. Of course I wasn't looking for one either
-moby |
|
Back to top |
|
 |
Rush[ZA] n00b

Joined: 01 Dec 2004 Posts: 56 Location: Johannesburg
|
Posted: Tue Feb 08, 2005 5:29 am Post subject: |
|
|
sadly its just for home use.
I have a laptop that I am dual booting
windows for work and home and gentoo for home
problem is that work has a dhco server running so when I get home and want to plug my laptop in, I need to go and change the ip settings all the time
would be so much easier just plugging it in and thats that.
I found a guide in the wiki and followed it but I am still having problems
when I start the dhcp
I get this
setting ownership on dhcp.leases [ok]
starting dhcpd .... [!!] _________________ <------- This ad space for rent ------> |
|
Back to top |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Tue Feb 08, 2005 5:52 am Post subject: |
|
|
check the log file to see why this is failing to start...
do you have a /var/lib/dhcp/dhcpd.leases file in place? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
 |
Rush[ZA] n00b

Joined: 01 Dec 2004 Posts: 56 Location: Johannesburg
|
Posted: Tue Feb 08, 2005 7:05 am Post subject: |
|
|
/var/lib/dhcp/dhcp.leases exists
Its chowed to dhcp and is chmodded 644
which log file should I be looking at ? _________________ <------- This ad space for rent ------> |
|
Back to top |
|
 |
xbmodder Guru

Joined: 25 Feb 2004 Posts: 404
|
Posted: Tue Feb 08, 2005 7:09 am Post subject: |
|
|
type this 'dhcpd'
tell us what it says
btw: steal my sig... with envy.... _________________ http://xbmodder.us/ |
|
Back to top |
|
 |
Rush[ZA] n00b

Joined: 01 Dec 2004 Posts: 56 Location: Johannesburg
|
Posted: Tue Feb 08, 2005 7:16 am Post subject: |
|
|
I'm at work so I'll have to wait till I get home in 7 hours or so so I can check.
I cant log into my server remotely as I forgot to tart the adsl connection when i left this morning
*slaps forehead* _________________ <------- This ad space for rent ------> |
|
Back to top |
|
 |
Rush[ZA] n00b

Joined: 01 Dec 2004 Posts: 56 Location: Johannesburg
|
Posted: Tue Feb 08, 2005 9:53 pm Post subject: |
|
|
it spits out a message about
no subnet declaration for eth1
thats the only error I see _________________ <------- This ad space for rent ------> |
|
Back to top |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Tue Feb 08, 2005 10:35 pm Post subject: |
|
|
Rush[ZA] wrote: | it spits out a message about
no subnet declaration for eth1
thats the only error I see | check the /etc/conf.d/dhcp file... Make sure that the following is correct for your situation... Code: | # Configure which interface or interfaces to for dhcp to listen on
# list all interfaces space separated.
IFACE="eth1" |
_________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
 |
Rush[ZA] n00b

Joined: 01 Dec 2004 Posts: 56 Location: Johannesburg
|
Posted: Tue Feb 08, 2005 10:54 pm Post subject: |
|
|
yep
thats set _________________ <------- This ad space for rent ------> |
|
Back to top |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Tue Feb 08, 2005 11:32 pm Post subject: |
|
|
Do you have a /etc/dhcp/dhcpd.conf file, and is it configured foryour situation? _________________ All reality is the construct of the observer.
Get Firefox and rediscover the web!
BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it. |
|
Back to top |
|
 |
nobspangle Veteran


Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Wed Feb 09, 2005 8:04 am Post subject: |
|
|
the log files will tell you why dhcpd is not starting.
If you have syslog check /var/log/messages if you have metalog check /var/log/everything/current |
|
Back to top |
|
 |
thomasando Tux's lil' helper

Joined: 05 Apr 2003 Posts: 94
|
Posted: Fri Mar 11, 2005 10:58 am Post subject: |
|
|
Try
Code: | echo "ddns-update-style ad-hoc;" >>/etc/dhcp/dhcpd.conf |
that did it for me. Running dhcpd gave me this:
Code: | root@web thomas # dhcpd
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
** You must add a ddns-update-style statement to /etc/dhcp/dhcpd.conf.
To get the same behaviour as in 3.0b2pl11 and previous
versions, add a line that says "ddns-update-style ad-hoc;"
Please read the dhcpd.conf manual page for more information. **
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.
|
|
|
Back to top |
|
 |
|