dhcpcd-discuss

Re: Planning to switch VyOS from ISC dhclient to dhcpcd

Roy Marples

Fri Jan 29 08:36:42 2016

On Friday 29 January 2016 07:53:59 Roy Marples wrote:
> >  - Can you start `dhcpcd -M` with a configuration that basically says 
“don’t
> > do anything with an interface unless it’s specifically mentioned in this
> config file?” In essence, VyOS doesn’t always know about all interfaces
> > unless they are configured, and even for those it does know about, it would
> > be a complication to the config system is it had to explicitly exclude
> > interfaces from DHCP configuration whenever configured without DHCP. It
> > would be much easier to only add DHCPCD configuration for those interfaces
> > that want DHCP, and simply ignore the ones that don’t. Is that possible? 
> > (I
> > think denyinterfaces really messed up my thought process on this. Makes it
> > seem like you have to explicitly disable DHCP for any interface that
> > doesn’t want it.)

> > Do I understand correctly that everything after `interface <name>` in the
> > configuration file is configuration specific to that interface? So, for
> > multiple interfaces, you’d do:
> > 
> > <global config options>
> > interface eth0
> > <eth0 config options>
> > interface eth1
> > <eth1 config options>

Just to clarify the above, you can do this

# Global section, disable all protocols by default
noipv4
noipv6
nodhcp6

interface eth0
ipv4

interface eth1
ipv4
ipv6

interface eth2
dhcp6
# dhcp6 will turn ipv6 on globally and RS will still be active, so turn it off
noipv6rs


I could have moved noipv6rs to the global section but left it there to 
demonstrate.

Hope this helps!

Roy

References:
Planning to switch VyOS from ISC dhclient to dhcpcdNicholas Williams
Re: Planning to switch VyOS from ISC dhclient to dhcpcdNick Williams
Re: Planning to switch VyOS from ISC dhclient to dhcpcdRoy Marples
Archive administrator: postmaster@marples.name