netplan does not support ifmetric
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Is very useful feature in cases when you have two interfaces receiving default routes via dhcp
It was supported by ifupdown once ifmetric package was installed
http://
root@test:~# dpkg -L ifmetric
/.
/etc
/etc/network
/etc/network/
/etc/network/
/usr
/usr/sbin
/usr/sbin/ifmetric
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/man
/usr/share/man/man8
/usr/share/
root@test:~# cat /etc/network/
#!/bin/sh
if [ -x /usr/sbin/ifmetric -a "${IF_METRIC}" ]; then
/usr/
fi
description: | updated |
Changed in netplan: | |
assignee: | Daniel Axtens (daxtens) → nobody |
status: | In Progress → Confirmed |
tags: | added: id-5f490c94eee2ba35d0a22a2e |
Yes, I believe we want to allow users to specify the RouteMetric value.
Netplan auto generates this value, but keeps it the same for any interface, except wifi which is set higher.
I believe if we allowed setting something like:
network:
dhcp4: y
metric: 101
dhcp4: y
metric: 201
version: 2
ethernets:
eth0:
eth1:
Which would render a networkd config like:
[Match]
Name=eth0
[Network]
DHCP=ipv4
[DHCP]
UseMTU=true
RouteMetric=101
[Match]
Name=eth1
[Network]
DHCP=ipv4
[DHCP]
UseMTU=true
RouteMetric=201