[Bug 1664352] Re: dhclient-script doesn't use configured metric for rfc3442 classless routes
Matt Heller
matthewfheller+launchpad at gmail.com
Tue Mar 14 22:00:36 UTC 2017
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.
--Matt
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1664352
Title:
dhclient-script doesn't use configured metric for rfc3442 classless
routes
Status in isc-dhcp package in Ubuntu:
Confirmed
Bug description:
lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
apt-cache policy isc-dhcp-client
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1664352/+subscriptions
More information about the foundations-bugs
mailing list