Package: ifupdown2
Version: 1.2.5-1
Severity: normal
Dear Maintainer,
if I use metric in /etc/network/interfaces, I get an error and no
default route.
My interfaces file:
...
auto eth0
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
metric 100
...
Error message:
error: eth0: cmd '/bin/ip route add default via 10.0.2.2 proto
kernelmetric 200 dev eth0 onlink' failed: returned 255 (Error: argument
"kernelmetric" is wrong: "protocol" value is invalid
I think there is a missing space before metric in
/usr/share/ifupdown2/ifupdownaddons/LinkUtils.py in line 1129
Looks like it's fixed upstream:
https://github.com/CumulusNetworks/ifupdown2/blob/master/ifupdown2/ifupdownaddons/LinkUtils.py
Line 1148
Regards
Pascal
-- System Information:
Debian Release: 10.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ifupdown2 depends on:
ii iproute2 4.20.0-2
ii python 2.7.16-1
ii python-argcomplete 1.8.1-1
ii python-ipaddr 2.2.0-2
ifupdown2 recommends no packages.
Versions of packages ifupdown2 suggests:
pn bridge-utils <none>
pn ethtool <none>
ii isc-dhcp-client 4.4.1-2
pn python-gvgen <none>
pn python-mako <none>
pn python-pkg-resources <none>
-- no debconf information