Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Anyone there can tell me how to automatically enable DHCP server upon boot up? I have already installed DHCP package, already have /etc/dhcpd.conf file. I issue these command to have DHCP running:
1. touch /var/lib/dhcp/dhcpd.leases
2. /etc/init.d/dhcpd start
3. chkconfig dhcpd on
The DHCP server is perfectly rinning after the above commands, my windows XP workstation can successfully acquire IP address but when I reboot my Linux and issue "ipconfig /renew" on my workstation it can't acquire IP address. I have to run the above commands again in order for DHCP to get started.
Thank you for your reply. Yeah, that's what the tutorial is saying. But, I don't know, for some reason my workstation is not acquiring IP address. I will issue that command and check it when I get back home, I'm in the office right now.
Hrrm, that would imply that the dhcpd server should be started in runlevels 2,3,4, and 5. I would assume you're not booting your system into single user mode, right?
(oh, and if you use the non-quick reply mechanism, there's a button to disable smilies).
I had a problem getting DHCP running at home. I editted the rc.local file. I don't remember what I put in, but I think it was "/etc/init.d/dhcpd start &"
I'll check when I get home. This was in Slackware 10.0
Yes, I created 2 users for testing purposes.. I noticed that, while I'm booting my linux box and I click on show details, the 'touch /var/lib/dhcp/dhcpd.leases' command has an error of "permission denied" and so the '/etc/init.d/dhcpd start' will fail to load - I assumed. What do I have to do now?
I'm in the office right now but I'm pretty much sure of the permission above because I've tried chmod it to 'a+x' yesterday (not sure if that's the right thing) but nothing happened. Next thing I will do is to chmod it to 'a+w'. Do you think that will solve the problem?
I think that if you su first, and then do the "touch /var/lib/dhcp/dhcpd.leases" it will work. Basically all this is doing is creating a blank dhcpd.leases file. Once you do the touch, you can exit out of root.
F_M
P.S. Sorry about not getting back to this sooner, I was leaving on vacation and time got away from me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.