New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FS#1815 - Udhcpc on boot don't add default gateway and dns server #8506
Comments
jow-: Please provide your complete /etc/config/network and the complete output of "logread", "dmesg" and "ifstatus wan" after boot. |
lupin-de-mid:
~# cat /etc/config/network
|
lupin-de-mid: Add log files |
be3m: Got same error on TL -1043ND V1, constantly I get error, that default gateway not found on my windows machine! |
lvsv: I found the reason. The problem in this string ip_net and gw_net has the same value for me My correct routing is To fix the problem, i removed check and left only |
dedeckeh: What values do $ip and $mask have in your case as $ip_net is derived from $ip and $mask. |
lupin-de-mid:
config interface 'wan' option ifname 'eth0.2' option proto 'dhcp' option macaddr '00:0F:EA:60:3D:30'
# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.40.62.0 10.40.62.5 255.255.255.0 UG 0 0 0 eth0.2 192.168.2.0 * 255.255.255.0 U 0 0 0 br-lan
But no default gw addedSat Aug 25 11:44:54 2018 daemon.notice netifd: wan (1297): udhcpc: started, v1.28.3
Sat Aug 25 11:44:54 2018 daemon.err odhcp6c[1296]: Failed to send RS (Address not available)
Sat Aug 25 11:44:54 2018 daemon.notice netifd: wan (1297): udhcpc: sending discover
Sat Aug 25 11:44:54 2018 daemon.notice netifd: wan (1297): udhcpc: sending select for 10.40.62.76
Sat Aug 25 11:44:54 2018 daemon.notice netifd: wan (1297): udhcpc: lease of 10.40.62.76 obtained, lease time 43200
~# udhcpc -i eth0.2
udhcpc: started, v1.28.3
udhcpc: sending discover
udhcpc: sending select for 10.40.62.76
udhcpc: lease of 10.40.62.76 obtained, lease time 43200
udhcpc: ifconfig eth0.2 10.40.62.76 netmask 255.255.255.0 broadcast 10.40.62.255
udhcpc: setting default routers: 10.40.62.5
And routing is like
~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.40.62.5 0.0.0.0 UG 0 0 0 eth0.2
10.40.62.0 * 255.255.255.0 U 0 0 0 eth0.2
192.168.2.0 * 255.255.255.0 U 0 0 0 br-lan
Workaround
*/1 * * * * udhcpc -i eth0.2
The text was updated successfully, but these errors were encountered: