Hello, I've verified this with disco-updates.
/etc/systemd/network/80-ens3.network :::::::::::::: [Match] Name=ens3 [Network] DHCP=ipv4 LinkLocalAddressing=ipv6 Address=172.16.0.5/24 root@disco-test:/home/ubuntu# ip -4 a show ens3 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 inet 172.16.0.5/24 brd 172.16.0.255 scope global ens3 valid_lft forever preferred_lft forever inet 172.16.0.21/24 brd 172.16.0.255 scope global secondary dynamic ens3 valid_lft 3485sec preferred_lft 3485sec root@disco-test:/home/ubuntu# ip route default via 172.16.0.1 dev ens3 proto dhcp src 172.16.0.21 metric 1024 172.16.0.0/24 dev ens3 proto kernel scope link src 172.16.0.5 172.16.0.1 dev ens3 proto dhcp scope link src 172.16.0.21 metric 1024 root@disco-test:/home/ubuntu# ip r get 1.1.1.1 1.1.1.1 via 172.16.0.1 dev ens3 src 172.16.0.21 uid 0 cache -> setting classless option ubuntu@disco-test:~$ sudo su root@disco-test:/home/ubuntu# ip -4 a show ens3 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 inet 172.16.0.5/24 brd 172.16.0.255 scope global ens3 valid_lft forever preferred_lft forever inet 172.16.0.21/24 brd 172.16.0.255 scope global secondary dynamic ens3 valid_lft 3575sec preferred_lft 3575sec root@disco-test:/home/ubuntu# ip r default via 172.16.0.1 dev ens3 proto dhcp metric 1024 172.16.0.0/24 dev ens3 proto kernel scope link src 172.16.0.5 root@disco-test:/home/ubuntu# ip r get 1.1.1.1 1.1.1.1 via 172.16.0.1 dev ens3 src 172.16.0.5 uid 0 cache -----> With the proposed package ubuntu@disco-test:~$ sudo su root@disco-test:/home/ubuntu# ip -4 a show ens3 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 inet 172.16.0.5/24 brd 172.16.0.255 scope global ens3 valid_lft forever preferred_lft forever inet 172.16.0.21/24 brd 172.16.0.255 scope global secondary dynamic ens3 valid_lft 3589sec preferred_lft 3589sec root@disco-test:/home/ubuntu# ip r get 1.1.1.1 1.1.1.1 via 172.16.0.1 dev ens3 src 172.16.0.21 uid 0 cache root@disco-test:/home/ubuntu# ip r default via 172.16.0.1 dev ens3 proto dhcp src 172.16.0.21 metric 1024 172.16.0.0/24 dev ens3 proto kernel scope link src 172.16.0.5 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1835581 Title: networkd-dhcp4 does not set prefsrc for dhcp-provided classless or static routes To manage notifications about this bug go to: https://bugs.launchpad.net/systemd/+bug/1835581/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs