Hide Forgot
Description of problem: systemd-networkd ignores UseRoutes=false in [DHCP] of .network file, this is upstream bug report https://github.com/systemd/systemd/issues/2282 Version-Release number of selected component (if applicable): systemd-networkd-219-62.el7.x86_64 How reproducible: $ cat /etc/systemd/network/wired.network [Match] Name=eth0 [Network] DHCP=ipv4 [DHCP] UseRoutes=false $ Even "UseRoutes=false" is set, there is still the default route from DHCP. Actual results: systemd-networkd ignores UseRoutes=false in [DHCP] of .network file. Expected results: systemd-networkd properly handles UseRoutes=false in [DHCP] of .network file. Additional info: Upstream patch is https://github.com/systemd/systemd/pull/3075
systemd-networkd is shipped in the optional channel and is not supported. However, the fix is trivial and I'd say we could fix this as OtherQA or maybe even SanityOnly.
Created attachment 1520395 [details] Patch suggestion Initially mentioned patch solves the issue (tested), but to make really sense, the following patches should be IMHO included as well: - https://github.com/systemd/systemd/commit/223932c786ada7f758a7b7878a6ad2dae0d1e5fb - https://github.com/systemd/systemd/pull/6594/commits/e98d8eac0ff3da6ed46d76c80a0f1200833707c7 The result is this patch suggestion.
Filed case #02290894 at the Red Hat customer portal.
Testing packages can be found at http://people.redhat.com/~jsynacek/systemd/bz1663365-dhcp-useroutes/.
https://github.com/lnykryn/systemd-rhel/pull/270
(In reply to Jan Synacek from comment #7) > https://github.com/lnykryn/systemd-rhel/pull/270 Most of the packages there have a size of zero bytes, feels like a broken upload.
(In reply to Robert Scheck from comment #8) > (In reply to Jan Synacek from comment #7) > > https://github.com/lnykryn/systemd-rhel/pull/270 > > Most of the packages there have a size of zero bytes, feels like a broken > upload. Yes, Robert seems so that's why couldn't able to upload the rest of the files with the case.
I didn't realize that the quota was so low and in truncated the rest of my upload. I've rebuilt and reuploaded the packages. Please, try again. The packages are there now.
(In reply to Jan Synacek from comment #10) > Please, try again. The packages are there now. Thanks; systemd-networkd-219-63.el7.bz1663365_dhcp_useroutes.x86_64.rpm works here as expected.
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/270 -> post
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/RHSA-2019:2091