dhclient-script doesn't use configured metric for rfc3442 classless routes

Bug #1664352 reported by Tom Carroll
This bug affects 2 people
Affects Status Importance Assigned to Milestone
isc-dhcp (Debian)
isc-dhcp (Ubuntu)

Bug Description

lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
apt-cache policy isc-dhcp-client
  Installed: 4.3.3-5ubuntu12.6
  Candidate: 4.3.3-5ubuntu12.6
  Version table:
 *** 4.3.3-5ubuntu12.6 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     4.3.3-5ubuntu12 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

If the metric option is set in interfaces(5), dhclient is executed with the variable IF_METRIC set to the configured administrative metric. The exit-hook rfc3442-classless-routes doesn't use the variable; thus, a multi-interface box will experience a race condition if multiple interfaces are supplied with one or more duplicate rfc3442 routes. The attached patch adds support for IF_METRIC handling.

Revision history for this message
Tom Carroll (h-thomas-carroll) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Support IF_METRIC for rfc 3442 routes" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in isc-dhcp (Ubuntu):
status: New → Confirmed
Revision history for this message
Matt Heller (matthew-f-heller) wrote :

In my environment we have some dual-homed Ubuntu hosts that have one network interface with a WAN IP and one on a private network. For proper network connectivity we need to use the configurable metric value to prioritize the default route provided by the WAN connected interface over the default route (a NAT gateway) provided by the private network DHCP server. Unfortunately the current dhclient script ignores the configured metric when adding DHCP provided rfc3442 classless routes to the routing table. This patch from Tom fixes dhclient behavior for my use case.


Revision history for this message
Matt Heller (matthew-f-heller) wrote :

Is there something I can do to help make some progress fixing this bug? This issue is not applicable to the upstream software source however I did notice that it is relevant to Debian's isc-dhcp-client package which I believe is in a sense "upstream" for the Ubuntu package. In light of that should I pursue fixing the Debian package first? (https://wiki.ubuntu.com/Debian/Bugs)


Changed in isc-dhcp (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.