[systemd-devel] Ignoring default gateway when configuring via dhcp

Lennart Poettering mzerqung at 0pointer.de
Fri Aug 14 10:32:02 PDT 2015


On Mon, 10.08.15 11:47, Jetchko Jekov (jetchko.jekov at gmail.com) wrote:

> Greetings,
> 
> I am investigating a possibility for using systemd-networkd for
> networking setup but I am not able to figure out how to configure
> networkd to skip installing a default gateway even if dhcp server
> offers one.
> Just for clarification, I guess UseRoutes=false can be used if there
> is only default gateway offered, but in case when dhcp server provides
> classless static routes option (RFC3442) with additional routes, the
> default gateway is specified there too and I cant find a way to ignore
> it.

Hmm, so let me get this right: if both the default route and the
rfc3442 routes are contained in the DHCP lease, then you want us to
optionally ignore the default route, but keep the rfc3442 routes?

What#s the usecase for this? Sounds quite specific too me, and not
useful in the general case, no?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list