On Fri, Jun 27, 2014 at 11:09 AM, Marcel Holtmann <[email protected]> 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? _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
