DHCPD and Assigning Subnets to Different Interfaces
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
you don't need two files, that's really not a great design to follow. the pool that is allocated from is the one upon which the dhcp request is heard, it's all implicit. similarily, if you use a dhcp relay in a router elsewhere in the netwrok that will forward requests to the server including the ip address of it's listening interface so that too knows which network toallocate from.
Last edited by acid_kewpie; 01-21-2008 at 08:04 AM.
you can see a nice debug of a bootp relay packet there, and in there is the IP address of the cisco router which would have the ip helper-address on it, and so when the dhcp server recieves it it has a reference point to use to know what subnet is relevant.
correct? I am a bit confused. thanks (Empahsis added)
Correct. If I understand your situation, you just need one conf file similar to what I posted (adjust as needed) and one instance of dhcpd. dchpd knows the configuration of each of your NICs and will assign addresses from the proper subnet. As best as I can figure out, the rest of this conversation about relaying, etc. while it might be correct, is beyond what I take to be your fairly basic needs.
EDIT: Just to be clear, my single instance of dhcpd is invoked from within my distoro's /etc/init.d/dhcpd script, but no parameters are supplied to dhcpd. So it is looking at all (in my case, two) NICs.
Last edited by blackhole54; 01-25-2008 at 01:48 AM.