I had to package.mask >=net-misc/dhcpcd-3.0.19 on my rented server since I'm not able to get a working eth0 with that versions. [ebuild R ] net-misc/dhcpcd-3.1.0 USE="-vram" 0 kB [0] * Starting eth0 * Bringing up eth0 * dhcp * Running dhcpcd ...Error, eth0: netlink: Invalid argument Error, eth0: netlink: Network is unreachable [ ok ] * eth0 received address 87.106.14.69/32 Jul 23 23:37:03 nexus dhcpcd[27207]: eth0: dhcpcd 3.1.0 starting Jul 23 23:37:03 nexus dhcpcd[27207]: eth0: hardware address = xx:xx:xx:xx:xx:xx Jul 23 23:37:03 nexus dhcpcd[27207]: eth0: DUID = 00:01:00:01:0e:37:5e:97:xx:xx:xx:xx:xx:xx Jul 23 23:37:03 nexus dhcpcd[27207]: eth0: broadcasting for a lease Jul 23 23:37:03 nexus dhcpcd[27207]: eth0: offered 87.106.14.69 from 87.106.14.249 Jul 23 23:37:03 nexus dhcpcd[27207]: eth0: checking 87.106.14.69 is available on attached networks Jul 23 23:37:04 nexus dhcpcd[27207]: eth0: leased 87.106.14.69 for 172800 seconds Jul 23 23:37:04 nexus dhcpcd[27207]: eth0: adding IP address 87.106.14.69/32 Jul 23 23:37:04 nexus dhcpcd[27207]: eth0: adding route to 10.255.255.1 (255.0.0.0) metric 0 Jul 23 23:37:04 nexus dhcpcd[27207]: eth0: netlink: Invalid argument Jul 23 23:37:04 nexus dhcpcd[27207]: eth0: adding default route via 10.255.255.1 metric 0 Jul 23 23:37:04 nexus dhcpcd[27207]: eth0: netlink: Network is unreachable Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo [ebuild R ] net-misc/dhcpcd-3.0.16-r1 0 kB [0] * Starting eth0 * Bringing up eth0 * dhcp * Running dhcpcd ... [ ok ] * eth0 received address 87.106.14.69/32 Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: dhcpcd 3.0.16 starting Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: hardware address = xx:xx:xx:xx:xx:xx Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: broadcasting for a lease Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: offered 87.106.14.69 from 87.106.14.249 Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: got subsequent offer of 87.106.14.69, ignoring Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: leased 87.106.14.69 for 172800 seconds Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: adding IP address 87.106.14.69/32 Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: adding route to 10.255.255.1 (255.255.255.255) metric 0 Jul 23 23:31:17 nexus dhcpcd[25095]: eth0: adding default route via 10.255.255.1 metric 0 Kernel IP Routentabelle Ziel Router Genmask Flags Metric Ref Use Iface 10.255.255.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 10.255.255.1 0.0.0.0 UG 0 0 0 eth0 Let me know if you need more information, also I'm not able to get a static setup working. I tried config_eth0=( "87.106.14.69 netmask 255.255.255.255 broadcast 87.106.14.69" ) routes_eth0=( "default via 10.255.255.1" ) but no success. Reproducible: Always Steps to Reproduce:
Could you attach wireshark traces for the dhcp transaction from both dhcpcd versions please?
Created attachment 126439 [details, diff] Fix netmask calculation for static routes Please test this patch and report back.
Fixed in 3.1.2 Re-open if you disagree
ChangeLog mentions bug 186386. 186386 should be replaced with 186385.
hehehehe, fixed.