RE: Recommendations for Configuring DHCP on Multiple Interfaces
David Hauck
Fri Jun 06 18:53:58 2014
On Friday, June 06, 2014 11:45 AM, Roy Marples wrote:
> On 06/06/2014 19:33, David Hauck wrote:
>>> Ah, you didn't mention it was ok to discard the other interfaces.
>
> I mean discard upon receipt.
>
>> I want to make sure I understand your inference here: the
>> dhcpcd.conf "interface <name>" clauses are distinct from other
>> interfaces - specified or not - wrt their contents, right? That is,
>> I could have something like the following
>>
>> ...
>> interface eth1
>> nogateway
>>
>> interface eth2
>> nooption hostname
>>
>> And this would allow negotiation of hostname (but not gateway) for
>> eth1 as well as allow negotiation of gateway (but not hostname) for
>> eth2. In addition, full negotiation would occur for any/all other
>> discovered interfaces (e.g., eth0, eth3, etc.)?
>
> Exactly so. Options above the first block (interface, profile, ssid,
> etc) are considered global.
>
> What's the likelyhood of a plugable interface coming into the mix?
Assuming I understand what you mean by "pluggable" - in my current world, "zero" ;).
> I ask as what you want is probably this
>
> # Global section
> nogateway
> nohostname
>
> interface eth0
> gateway
> option hostname
>
> That presently doesn't work, but it won't take much effort to allow it
> to work and facilitates hot plugging of new interfaces.
Oh, that's interesting, yes. Independent of pluggable interfaces this could be a useful configuration variant.
> I'm actually quite curious though - what device of yours has 6
> interfaces wanting DHCP setup? I can't think of a single use case for such a beast!
;) We have some system configurations like this (used for advanced routing and data transfer applications). We currently don't allow for dynamic network configuration of these interfaces but I'm researching what might be involved in doing so.
Cheers,
-David
> Roy
Archive administrator: postmaster@marples.name