Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565972 - netifrc + wlan + dhcp + static route fail
Summary: netifrc + wlan + dhcp + static route fail
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-16 19:26 UTC by Uli-DD-70
Modified: 2016-10-24 21:26 UTC (History)
0 users

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


Attachments
emerge --info output (emerge.info.txt,5.01 KB, text/plain)
2015-11-16 19:26 UTC, Uli-DD-70
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uli-DD-70 2015-11-16 19:26:15 UTC
Created attachment 417132 [details]
emerge --info output

Hello,

my box is configured to use wlan via wpa_supplicant using dhcp. On my dhcp-server there is an entry for one static route (host route via gateway).
Problem: The netifrc scripts on client side do not add this given static route as a host-route; the routing table shows a route without gateway address.
Btw., dhcpd gives the right data when asking my dhcp-server.

This problem occures since an update this summer, I don't know anymore which packages are new, think about dhcpd or wpa_supplicant.

Here's the response from dhcpd on my client when starting interface wlan0:

Quote:	

Nov 15 00:52:03 aphrodite dhcpcd[6076]: wlan0: carrier acquired
Nov 15 00:52:03 aphrodite dhcpcd[6076]: wlan0: IAID 5d:7c:0d:88
Nov 15 00:52:03 aphrodite dhcpcd[13460]: sending commands to master dhcpcd process
Nov 15 00:52:03 aphrodite dhcpcd[6076]: control command: dhcpcd -m 2002 wlan0
Nov 15 00:52:04 aphrodite dhcpcd[6076]: wlan0: rebinding lease of 192.168.178.122
Nov 15 00:52:04 aphrodite dhcpcd[6076]: wlan0: leased 192.168.178.122 for 3522 seconds
Nov 15 00:52:04 aphrodite dhcpcd[6076]: wlan0: adding route to 192.168.178.0/24
Nov 15 00:52:04 aphrodite dhcpcd[6076]: wlan0: adding host route to 10.0.0.1 via 192.168.178.6 --> this is the special host route, response from dhcp-server ok
Nov 15 00:52:04 aphrodite dhcpcd[6076]: wlan0: adding default route via 192.168.178.1
Nov 15 00:52:04 aphrodite dhcpcd[6076]: wlan0: removing route to 192.168.178.0/24


As you can see, dhcpd tells the right host route via the right interface

But the resulting kernel routing table looks like this:

Quote:	

ip route list
default via 192.168.178.1 dev wlan0 metric 302
10.0.0.1 dev wlan0 metric 302 ---> this line is wrong, I can't ping 10.0.0.1, gateway missing
127.0.0.0/8 dev lo scope host
127.0.0.0/8 via 127.0.0.1 dev lo
192.168.178.0/24 dev wlan0 proto kernel scope link src 192.168.178.122 metric 302


If I manually run this:

Quote:	

ip route add 10.0.0.1 via 192.168.178.6


it works and I can ping the 10.0.0.1!!!
Routing table like this:
Quote:	

ip route list
default via 192.168.178.1 dev wlan0 metric 302
10.0.0.1 dev wlan0 metric 302
10.0.0.1 via 192.168.178.6 dev wlan0 --> here is the difference!
127.0.0.0/8 dev lo scope host
127.0.0.0/8 via 127.0.0.1 dev lo
192.168.178.0/24 dev wlan0 proto kernel scope link src 192.168.178.122 metric 302


Can someone tell me, why the host route is not added correctly?
Comment 1 Myckel Habets 2015-12-08 21:46:40 UTC
x86 stabilization team doesn't belong here.

@netifrc, could you handle this?
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-10-24 21:26:49 UTC
Please retest on netifrc-9999, and if the problem persists, post your /etc/conf.d/net (with passwords/keys redacted as needed).