After upgrade from dhcpcd-2.0.5-r1 to new stable version 3.0.16 it is not able to set default route during getting of dhcp lease. As result I connot connect into network. When downgraded everything works correctly. There is my route information on version 2.0.5-r1: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.23.79.159 * 255.255.255.255 UH 0 0 0 eth0 172.23.79.160 * 255.255.255.240 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo default 172.23.79.159 0.0.0.0 UG 0 0 0 eth0 and on 3.0.16 version: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.23.79.160 * 255.255.255.240 U 0 0 0 eth0 loopback * 255.0.0.0 U 0 0 0 lo Reproducible: Always Steps to Reproduce: 1. start system after upgrading of dhcpcd 2. 3.
Please attach the output of dhcpcd -k eth0 dhcpcd -d eth0
There is result on dhcpcd-2* laptop_mirka ~ # dhcpcd -k eth0 laptop_mirka ~ # dhcpcd -d eth0 Info, MAC address = 00:90:f5:4c:9c:30 Debug, broadcasting DHCP_DISCOVER Debug, broadcastAddr option is missing in DHCP server response. Assuming 172.23.79.175 Debug, dhcpIPaddrLeaseTime=604800 in DHCP server response. Debug, DHCP_OFFER received from office (172.23.79.159) Debug, broadcasting DHCP_REQUEST for 172.23.79.168 Debug, dhcpIPaddrLeaseTime=604800 in DHCP server response. Debug, DHCP_ACK received from office (172.23.79.159) Debug, broadcasting ARPOP_REQUEST for 172.23.79.168 Info, verified 172.23.79.168 address is not in use Info, your IP address = 172.23.79.168 Debug, orig hostname = laptop_mirka and there result on dhcpcd-3* laptop_mirka ~ # dhcpcd -k eth0 laptop_mirka ~ # dhcpcd -d eth0 Info, eth0: dhcpcd 3.0.16 starting Info, eth0: hardware address = 00:90:f5:4c:9c:30 Info, eth0: broadcasting for a lease Debug, eth0: sending DHCP_DISCOVER with xid 87666417 Debug, eth0: waiting on select for 20 seconds Debug, eth0: got a packet with xid 87666417 Info, eth0: offered 172.23.79.168 from 172.23.79.159 `office' Debug, eth0: sending DHCP_REQUEST with xid 87666417 Debug, eth0: waiting on select for 20 seconds Debug, eth0: got a packet with xid 87666417 Info, eth0: leased 172.23.79.168 for 604800 seconds Debug, eth0: renew in 302400 seconds Debug, eth0: rebind in 453600 seconds Info, eth0: adding IP address 172.23.79.168/28 Info, eth0: adding default route via 172.23.79.159 metric 0 Error, eth0: netlink: Network is unreachable Debug, eth0: writing /etc/resolv.conf Debug, eth0: writing /var/lib/dhcpcd/dhcpcd-eth0.info Debug, eth0: forking to background
The dhcp server needs to supply a static route to the host. dhcpcd-3.x no longer applies a host route if the gateway fails to add as it proved unreliable and caused too much trouble.
Changing of this could be difficult, as I have hardware router from D-link.
(In reply to comment #4) > Changing of this could be difficult, as I have hardware router from D-link. > Then use some sensible settings :) 192.168.0.1/24 --- router 192.168.0.100-255/24 - dhcp ip's
OK. Now it works fine. Thank you.
*** Bug 175053 has been marked as a duplicate of this bug. ***