dhcpcd-discuss

Re: dhcpcd br0:fact_ip not working anymore in v6.11.2

Roy Marples

Sat Aug 06 23:41:43 2016

On Sunday 07 August 2016 00:09:08 Roy Marples wrote:
> Hi
> 
> On Friday 05 August 2016 15:08:03 Giorgio wrote:
> > Hi,
> > 
> > I've recently updated dhcpcd to v6.11.2 and the command line:
> > 
> > # dhcpcd -S ip_address=10.7.1.117/8 'br0:fact_ip'
> > br0:fact_ip: interface not found or invalid
> > dhcpcd exited
> > #
> > 
> > does not work anymore.
> > 
> > I think it is an effect of the commit id
> > 1ea41b230676c4803efb23456b55f52a0d8bbcd5:
> > Add if_nametospec helper to decode and interface name such as bge1:2
> > into device name, lun, ppa and driver name. Use this function when
> > discovering addresesses and when they arrive via the kernel listening
> > socket so they can be assigned to the correct physical interface. This
> > change does also stop `dhcpcd eth0:1` working on Linux, but is needed
> > for basic Solaris support.
> > 
> > I use this feature essentially in my embedded userland and I would like
> > to know if
> > there is a workaround to configure more than one ip on the same net.
> > device using
> > some kind of (different) labels to distinguish between them.
> 
> You can configure >1 ip on the same interface  .... just not using labels.
> Use the ip command rather than ifconfig to see them.

In this specific case, you can do this before running dhcpcd to keep the label.
# ip addr add 10.7.1.117/8 dev br0 label br0:fact_ip

And then this command works fine
# dhcpcd -S ip_address=10.7.1.117/8 br0

Roy

References:
dhcpcd br0:fact_ip not working anymore in v6.11.2Giorgio
Re: dhcpcd br0:fact_ip not working anymore in v6.11.2Roy Marples
Archive administrator: postmaster@marples.name