Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd fails to add host route
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rini17
n00b
n00b


Joined: 04 Jan 2006
Posts: 25
Location: Bratislava, Slovakia

PostPosted: Fri Jun 08, 2018 2:51 pm    Post subject: dhcpcd fails to add host route Reply with quote

I have added host route to dhcp server to a public address W.X.Y.Z:

Code:
option classless-routes code 121 = array of unsigned integer 8;
option classless-routes 32,W,X,Y,Z,172,27,227,7,0,172,27,227,1;


and it works on all machines except gentoo box, with following errors in the log. Any idea why?

Code:
[dhcpcd] eth0: leased 172.27.227.10 for 86400 seconds
[dhcpcd] eth0: adding route to 172.27.227.0/24
[dhcpcd] eth0: adding host route to W.X.Y.Z via 172.27.227.7
[dhcpcd] if_route (ADD): Network is unreachable
[dhcpcd] eth0: adding default route via 172.27.227.1
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 722
Location: /home

PostPosted: Sat Jun 09, 2018 9:50 am    Post subject: Reply with quote

Not a network expert, sorry. But you could try looking what versions of dhcpcd other working distros and gentoo are using, how they were built (configure options) and whether if it is openrc-systemd related.

Also if you updated to (faulty) version 7.0.5 of dhcpcd, try updating to 7.0.5b.
Back to top
View user's profile Send private message
sping
Developer
Developer


Joined: 16 Aug 2009
Posts: 25
Location: Germany, Berlin

PostPosted: Fri Jun 29, 2018 10:35 pm    Post subject: Reply with quote

We had the exatc same problem -- static route passed by server and message ..
Code:
if_route (ADD): Network is unreachable
. A downgrade to ..
Code:
=net-misc/dhcpcd-6.11.5
.. fixed the issue.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Jun 30, 2018 3:01 am    Post subject: Reply with quote

Static routes work fine for me.
As the OP has a DHCP server setup, could you please email me your exact server config to roy@marples.name please so I can diagnose it?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Jul 02, 2018 7:33 am    Post subject: Reply with quote

Possibly fixed here:
https://roy.marples.name/git/dhcpcd.git/commit/?id=d3753a8676f88ddf4a29218904dbe2701c948157
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum