@@ -, +, @@ udhcpc -i ens3 -V d-i -T 1 -t 59 -O router -f ip: an inet address is expected rather than "192.168.10.13 192.168.10.14" --- debian/tree/busybox-udeb/etc/udhcpc/default.script | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) --- a/debian/tree/busybox-udeb/etc/udhcpc/default.script +++ a/debian/tree/busybox-udeb/etc/udhcpc/default.script @@ -59,7 +59,7 @@ case "$1" in bound|renew) do_hostname - + ip -4 addr add "$ip/$subnet" dev "$interface" if [ -n "$mtu" ]; then @@ -69,8 +69,10 @@ case "$1" in # special case for /32 subnets, use onlink when adding routes [ ".$subnet" = .255.255.255.255 ] \ && onlink=onlink || onlink= - for r in "$router"; do - ip -4 route add default via "$r" $onlink + metric=0 + for r in $router; do + ip -4 route add default via "$r" $onlink metric $metric + metric=$((1+$metric)) done do_resolv_conf --