#867625 isc-dhcp: dhclient-script doesn't use configured metric for rfc3442 classless routes, launchpad bug #1664352

Package:
isc-dhcp
Source:
isc-dhcp
Submitter:
Matthew Heller
Date:
2026-08-05 17:34:10 UTC
Severity:
normal
Tags:
#867625#5
Date:
2017-07-07 21:10:22 UTC
From:
To:
Dear Maintainer,

Please consider the included patch to fix the problem described below
and in Ubuntu bug report:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1664352

As things stand a routing metric configured in /etc/network/interfaces
is applied when the "option routers" value received from DHCP is used to
create a route but when "option classless-static-routes" values are
received the configured metric is ignored. If a system has more than one
network interface providing the same route, for example two interfaces
both providing a default route this 'metric' option (described in
interfaces(5)) is needed to configure a consistent behavior of
prioritizing the route of one interface over the other, otherwise it is a
race condition of last interface up wins.

Before https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=592735
and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748272 were fixed,
enforcing rfc3442 complaint behavior of ignoring the 'routers' option
when a 'classless-static-routes' option is present, it was possible to
work around this limitation by omitting the default route from the
'classless-static-routes' list and using the 'routers' option to provide
the default route with metric if configured. Now you are stuck if you
need rfc3442 routes and need to prioritize conflicting routes.

This patch fixes the problem in my environment. The patch provides the
behavior I would expect from the 'metric' option, and I think it is the
correct behavior, since option is currently described in
the interfaces(5) man page dhcp method section as
"Metric for added routes (dhclient)" indicating its application should
not be limited to just cases where the 'routers' option alone is used.


*** /tmp/tmpqO9qiS/bug_body

  * Apply configured metric to rfc3442 routes. Fixes launchpad bug
    #1664352


Thanks for considering the patch.

#867625#10
Date:
2020-03-22 13:39:19 UTC
From:
To:
Bug still exists in 4.4.1-2 and in 4.4.1-2.1, according to isc-dhcp_4.4.1-2.1.debian.tar.xz. Fixing
it should be fairly easy and bring isc-dhcp-client to the documentation given in interfaces(5).

#867625#15
Date:
2020-05-03 18:54:48 UTC
From:
To:
Recently I just had the same issue and came to the same solution,
although with a little bit more sanitized usage of variables.

I created a bugfix branch, but I am not able to create a merge request
for the original repository of the dhcp team:
https://salsa.debian.org/maddes_b/isc-dhcp/-/commit/24b230483b27c4387a805893234decf10684d2f6
https://salsa.debian.org/dhcp-team/isc-dhcp

Please consider fixing also in the current Debian release.

Kind regards
Maddes

#867625#20
Date:
2020-08-21 13:25:04 UTC
From:
To:
Hello,


I also ran into this bug.


Please consider fixing this in Debian/oldstable and later.


Beste greetings,

Philip

#867625#25
Date:
2026-08-05 17:31:09 UTC
From:
To:
Dear submitter,

as the package isc-dhcp has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1143544

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)