[systemd-devel] [PATCH] Add support for DHCP static route options in networkd

Eugene Yakubovich eyakubovich at gmail.com
Fri Jun 27 13:12:28 PDT 2014


On Fri, Jun 27, 2014 at 11:09 AM, Marcel Holtmann <marcel at holtmann.org> wrote:
>> Hmm, something in the middle of the range, I figure, that is still nice
>> to type and look at for whatever that is. pick something... Also I
>> figure the default route added due to dhcp config should also use this
>> same metric.
>
> it might actually make sense to provide a configuration option for the metric value here. And if not present just default to something that make sense. Seems like 1024 is pretty popular.
>
> Allowing different metrics for multi homing situation seems like a neat benefit. If by all means possible, add all routes provided by DHCP for eth0 with metric A and for eth1 use metric B. You never know what kind of datacenter network configuration you encounter. I have seen really crazy ones in my lifetime ;)

I think allowing the user to specify metrics would be beneficial but
it maybe better to do that as a separate patch. To be consistent, the
static routes (those from [Route]) should also have an adjustable
metric.

I'm also thinking about how the switches would look like.

[Route]
Destination=xxx
Gateway=yyy
Metric=10

[DHCPv4]
UseRoutes=false

or don't set UseRoutes (will default to true) and
[DHCPv4]
RouteMetric=100

Does that work?


More information about the systemd-devel mailing list