Recommendations for Configuring DHCP on Multiple Interfaces
David Hauck
Wed Jun 04 21:35:10 2014
Hi,
I've been researching various techniques for using DHCP configured interfaces in a multi-homed environment. Unfortunately, I haven't uncovered any clear guidance on the various aspects of this with DHCPCD. One particular question I have relates to all of the (DHCP) interfaces communicating with the same DHCP server and being subsequently served addressing information from a pool of addresses on the same subnet (e.g., 192.168.2.[234]/24). This isn't problematic in and of itself, but generally each exchange also includes any number of: hostname, gateway, name server, ntp servers, static routes, etcetera. I've seen some material that indicates interface-specific DHCP configuration can be used to control which interfaces ignore these duplicated, global settings and, correspondingly, which interface might be configured to accept them (e.g., to ensure only one negotiates the configuration for hostname, default gateway, name servers, etc.).
I recognize that there might be some configurations where it *may* be desirable to have, for e.g., multiple default gateways, but even this is generally frowned upon (note that my current focus is IPv4). However, I'd like to constrain possibilities like this in my configurations.
What is the recommended way to do this under a Debian-based (sysvinit) system? I saw a reference somewhere that mentioned using an /etc/default/dhcpcd file to help with something like this, but I don't think this is standard. I'm guessing there's something similar built into DHCPCD (i.e., some way to configure interface-specific parameters/environment variables), but I've not yet been able to isolate this.
Thanks,
-David
Archive administrator: postmaster@marples.name