Bug 90082

Summary: networkd: in [Route] section Gateway must come before Destination
Product: systemd Reporter: jyoung15
Component: generalAssignee: Tom Gundersen <teg>
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.