Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186385 - >=net-misc/dhcpcd-3.0.19 netlink: Network is unreachable
Summary: >=net-misc/dhcpcd-3.0.19 netlink: Network is unreachable
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 21:57 UTC by Timo Gurr (RETIRED)
Modified: 2007-07-31 11:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix netmask calculation for static routes (dhcp.patch,1.03 KB, patch)
2007-07-30 12:22 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr (RETIRED) gentoo-dev 2007-07-23 21:57:00 UTC
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:
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-07-25 21:52:15 UTC
Could you attach wireshark traces for the dhcp transaction from both dhcpcd versions please?
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-07-30 12:22:24 UTC
Created attachment 126439 [details, diff]
Fix netmask calculation for static routes

Please test this patch and report back.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-07-31 10:07:06 UTC
Fixed in 3.1.2

Re-open if you disagree
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-07-31 11:46:01 UTC
ChangeLog mentions bug 186386.
186386 should be replaced with 186385.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-07-31 11:49:13 UTC
hehehehe, fixed.