Summary: | netifrc + wlan + dhcp + static route fail | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Uli-DD-70 <ulrich.uhlig> |
Component: | [OLD] Unspecified | Assignee: | netifrc Team <netifrc> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info output |
x86 stabilization team doesn't belong here. @netifrc, could you handle this? Please retest on netifrc-9999, and if the problem persists, post your /etc/conf.d/net (with passwords/keys redacted as needed). |
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?