Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] systemd-networkd: cherry picking route handling patch
@ 2015-01-08  8:43 Maciej Borzecki
  2015-01-08  8:43 ` [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling Maciej Borzecki
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Maciej Borzecki @ 2015-01-08  8:43 UTC (permalink / raw)
  To: openembedded-core, Chen Qi, Otavio Salvador, Ross Burton,
	Peter A. Bigot
  Cc: Maciek Borzecki

There is a problem in systemd-networkd version used in OE-core (216 as
of now) that prevents a successful communication in a configuration
that uses a static or IPv4 LL address alongside a dynamically obtained
one. The setup is rather not uncommon as is makes sense to always have
a static well known address that a technician or a support engineer
can access while in the field.

The current code in systed-networkd uses a clever trick to add a
static route to the gateway, to workaround a misconfigured DHCP server
that would assign an address from network pool that the gateway is not
a part of. The trick was missing a source IP address specification in
the static route, thus normally the first assigned IP address would be
used for outgoing IP packets. In this particular case the address
would the static one, hence the packet would most probably be dropped
by the router. Also, it is quite common in smaller networks that the
DHCP server, gateway router and even a DNS server are colocated. In
these setups the current code will effectively render any
communication to or past the router impossible.


Maciej Borzecki (1):
  systemd: cherry-pick patch fixing networkd gateway route handling

 ...d-preferred-source-to-dhcp4-gateway-route.patch | 109 +++++++++++++++++++++
 meta/recipes-core/systemd/systemd_216.bb           |   1 +
 2 files changed, 110 insertions(+)
 create mode 100644 meta/recipes-core/systemd/systemd/0001-networkd-add-preferred-source-to-dhcp4-gateway-route.patch

-- 
1.9.3



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-02-02  7:52 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08  8:43 [PATCH] systemd-networkd: cherry picking route handling patch Maciej Borzecki
2015-01-08  8:43 ` [PATCH] systemd: cherry-pick patch fixing networkd gateway route handling Maciej Borzecki
2015-01-08 14:14   ` Otavio Salvador
2015-01-08 15:46     ` Maciej Borzecki
2015-01-08 16:04       ` Otavio Salvador
2015-01-08 19:59   ` Maciej Borzecki
2015-01-08 20:36     ` Otavio Salvador
2015-02-02  7:36       ` Maciej Borzecki
2015-02-02  7:52         ` Maciej Borzecki
2015-01-08 14:13 ` [PATCH] systemd-networkd: cherry picking route handling patch Otavio Salvador
2015-01-08 19:44   ` Maciej Borzecki
2015-01-08 19:54     ` Peter A. Bigot
2015-01-08 22:35 ` akuster808
2015-01-09  8:12   ` Maciej Borzecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox