dhcpcd-discuss

RE: Recommendations for Configuring DHCP on Multiple Interfaces

Roy Marples

Fri Jun 06 18:44:35 2014

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?
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. 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!

Roy

Follow-Ups:
RE: Recommendations for Configuring DHCP on Multiple InterfacesDavid Hauck
References:
Recommendations for Configuring DHCP on Multiple InterfacesDavid Hauck
Re: Recommendations for Configuring DHCP on Multiple InterfacesRoy Marples
RE: Recommendations for Configuring DHCP on Multiple InterfacesDavid Hauck
RE: Recommendations for Configuring DHCP on Multiple InterfacesRoy Marples
RE: Recommendations for Configuring DHCP on Multiple InterfacesDavid Hauck
RE: Recommendations for Configuring DHCP on Multiple InterfacesRoy Marples
RE: Recommendations for Configuring DHCP on Multiple InterfacesDavid Hauck
Archive administrator: postmaster@marples.name