View previous topic :: View next topic |
Author |
Message |
kakakoka Tux's lil' helper
Joined: 14 May 2003 Posts: 147 Location: Denmark
|
Posted: Wed May 11, 2005 6:42 pm Post subject: /etc/init.d/dhcp start problem (server) |
|
|
I just installed dhcp on my small test server, since i want to start serving dynamical IP adresses to the computers on my small institutional network (so far theyre running static everything, which is a pain).
My problem is that when i do /etc/init.d/dhcp start, the [ok] at *Starting dhcp does never show up, and the script never exits, so its not returning to the prompt. The server is running fine except for this problem. I'm running dhcp with -d, and I see no errors in my logs, only succesful leases given and renewals. If I exit the init script with CTRL-D dhcp stops running.
Note: Im just running the init script here, not rebooting (don't want to if not nessecary, since im currently running other stuff on the server as well).
Also another thing, to which runlevel should dhcp be added to? I've added it to default so far. Is this fine?
I hope someone can help me out here. Thanks
BTW. searching for problems with DHCP is annoying since one end up with 90% posts regarding dhcpcd. I tried, and looked through a few pages of posts without finding anything relevant to my problem _________________ Aspiring to once become a great geek
---
"Tachikoma": AMD TB 1300 Mhz, ECS-K7S5A (SIS 735), (noname) RADEON 8500, Hercules Gametheater XP, Pinnacle PCTV pro
"Pyonpyon": Athlon 2500+ Barton, MSI K7N2-delta-ISLR (Nforce2), Sapphire Radeon 9600 Pro |
|
Back to top |
|
|
jdgill0 Veteran
Joined: 25 Mar 2003 Posts: 1366 Location: Lexington, Ky -- USA
|
Posted: Wed May 11, 2005 9:38 pm Post subject: |
|
|
kakakoka,
Did you also configure /etc/conf.d/dhcp to set the correct interface for the dhcp server, specifically setting IFACE="ethX" -- replacing "X" of course?
Running dhcp server on default runlevel is OK. _________________ Vim has excellent syntax highlighting for configuration files: emerge gentoo-syntax
Learn how to use Vim: vimtutor |
|
Back to top |
|
|
kakakoka Tux's lil' helper
Joined: 14 May 2003 Posts: 147 Location: Denmark
|
Posted: Thu May 12, 2005 11:26 am Post subject: |
|
|
jdgill0,
Thanks for answering.
As to your question: My /etc/conf.d/dhcp contains
Code: |
# Configure which interface or interfaces to for dhcp to listen on
# list all interfaces space separated.
IFACE="eth0"
# Insert any other options needed
DHCPD_OPTS="-q -d"
|
and these are the only directives in that file. (IFACE was set to "eth0" as default).
I just tried rebooting the server, and it now hangs during init at the point where DHCP is starting. Luckily I can still ssh into the machine. _________________ Aspiring to once become a great geek
---
"Tachikoma": AMD TB 1300 Mhz, ECS-K7S5A (SIS 735), (noname) RADEON 8500, Hercules Gametheater XP, Pinnacle PCTV pro
"Pyonpyon": Athlon 2500+ Barton, MSI K7N2-delta-ISLR (Nforce2), Sapphire Radeon 9600 Pro |
|
Back to top |
|
|
kakakoka Tux's lil' helper
Joined: 14 May 2003 Posts: 147 Location: Denmark
|
Posted: Thu May 12, 2005 11:46 am Post subject: |
|
|
I tried running dhcpd from the prompt, and it runs fine (and returns to the prompt). So probably something is wrong with the init script. Im guessing it could have something to do with the fact that something was left over from a previous installation attempt, where I tried to run dhcp in a chroot jail. I'm now trying emerge -C dhcp, which I will follow up by cleaning /etc/conf.d /etc/init.d /etc/dhcp/*, and a reemerge og dhcp. _________________ Aspiring to once become a great geek
---
"Tachikoma": AMD TB 1300 Mhz, ECS-K7S5A (SIS 735), (noname) RADEON 8500, Hercules Gametheater XP, Pinnacle PCTV pro
"Pyonpyon": Athlon 2500+ Barton, MSI K7N2-delta-ISLR (Nforce2), Sapphire Radeon 9600 Pro |
|
Back to top |
|
|
kakakoka Tux's lil' helper
Joined: 14 May 2003 Posts: 147 Location: Denmark
|
Posted: Thu May 12, 2005 11:57 am Post subject: |
|
|
Did the above, still didn't work. However then i tried removing the -d from /etc/conf.d/dhcp, so that
DHCPD_OPTS="-q -d"
became
DHCPD_OPTS="-q"
That fixed the problem. Was I using DHCPD_OPTS wrongly or is this a bug in the init script? _________________ Aspiring to once become a great geek
---
"Tachikoma": AMD TB 1300 Mhz, ECS-K7S5A (SIS 735), (noname) RADEON 8500, Hercules Gametheater XP, Pinnacle PCTV pro
"Pyonpyon": Athlon 2500+ Barton, MSI K7N2-delta-ISLR (Nforce2), Sapphire Radeon 9600 Pro |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|