RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1595412 - dhcp: router outside client subnet mask no longer works
Summary: dhcp: router outside client subnet mask no longer works
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: dhcp
Version: 6.10
Hardware: All
OS: All
urgent
urgent
Target Milestone: rc
: ---
Assignee: Pavel Zhukov
QA Contact: Ondrej Mejzlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-26 21:36 UTC by Chris Cheney
Modified: 2021-09-09 14:46 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, due to incorrect handling of classless static routes in the dhclient script, routing was not set properly. As a consequence, network connections on Google Compute Engine machines did not work. This update fixes handling of classless static routes and network connection works as expected.
Clone Of:
Environment:
Last Closed: 2018-07-10 17:54:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 524298 0 low CLOSED dhcp client fails to setup route to not-on-local-net gateway in ARP-less device 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2018:2163 0 None None None 2018-07-10 17:54:34 UTC

Internal Links: 524298

Description Chris Cheney 2018-06-26 21:36:55 UTC
Description of problem:

If a client is given a subnet mask where the router is outside of it as of dhclient 4.1.1-60 it no longer works due to the change to fix BZ#1527995.

This appears to be due to the fact it won't run the code unless is_router_reachable is true, which was not the case previously.


diff -Nruab 4.1.1-53/dhclient-script 4.1.1-60/dhclient-script
--- 4.1.1-53/dhclient-script    2018-06-26 14:10:21.882181860 -0500
+++ 4.1.1-60/dhclient-script    2018-06-26 14:10:30.438209325 -0500
@@ -451,6 +451,17 @@
                 fi
                 gateway=${static_routes[$i+1]}

+                # special case 0.0.0.0 to allow static routing for link-local addresses
+                # (including IPv4 multicast) which will not have a next-hop (#769463, #787318)
+                if [ "${gateway}" = "0.0.0.0" ]; then
+                    valid_gateway=0
+                    scope='scope link'
+                else
+                    is_router_reachable ${gateway}
+                    valid_gateway=$?
+                    scope=''
+                fi
+                if [ ${valid_gateway} -eq 0 ]; then
                 metric=''
                 for t in ${route_targets[@]}; do
                     if [ ${t} = ${target} ]; then

Comment 8 Pavel Zhukov 2018-06-27 08:25:34 UTC
Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1102830

Comment 24 errata-xmlrpc 2018-07-10 17:54:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2163


Note You need to log in before you can comment on or make changes to this bug.