Bug 90082 - networkd: in [Route] section Gateway must come before Destination
Summary: networkd: in [Route] section Gateway must come before Destination
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Tom Gundersen
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-18 05:03 UTC by jyoung15
Modified: 2019-03-19 12:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description jyoung15 2015-04-18 05:03:07 UTC
Overview:
In a .network file [Route] section, if the Destination= directive is specified before the Gateway= directive the former is ignored.  The documentation does not explicitly state that the Gateway must come before the Destination.

Steps to Reproduce:
Add Route section to .network file with Destination listed first.

[Route]
Destination=x.x.x.x
Gateway=x.x.x.x


Actual Results:
Default route is added for gateway. Destination is ignored.


Expected Results:
Static route is added for specified destination


Version:
$ /usr/lib/systemd/systemd --version
systemd 216
+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL -XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN

$ uname -a
Linux xxxx 3.17.7-gentoo #1 SMP Mon Jan 5 12:29:29 EST 2015 x86_64 AMD Opteron(tm) Processor 4122 AuthenticAMD GNU/Linux
Comment 1 Lennart Poettering 2019-03-19 12:55:30 UTC
I am pretty sure this has long been fixed in current networkd versions. if this is reproducible in the two most recent systemd upstream versions, please file a new issue in systemd github. thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.