Hy guys, I have problem automatically getting DHCP lease from my ISP
Installed LEDE Reboot 17.01.7 on Linksys wrt3200acm and problem is:
If I set Wan protocol to DHCP client, I wont have internet until I call 'udhcpc -i eth1' from ssh
If I set Wan protocol to static IP and insert IP given by manually calling udhcpc then everything works fine.
I just would like to DHCP client to work out of the box. Can you please help me configuring it?
Version 17.01 is obsolete. 18.06.4 is recommended for most users.
Do not set gateway or dns in the LAN section. If you don't want your ISP's DNS, set a different one under wan. That setting will be inherited back to be advertised to DHCP clients on the LAN.
Other than whatever you're trying to do with DNS, default settings should suit your usage, try that first.
thanks for prompt response.
Upgraded to OpenWrt 18.06.4 and removed unnecessary lan changes, but problem persists. This time I cannot get internet working even with 'udhcpc -i eth1.2'. Only works when I manually set up static ip, gateway and dns.
cat /etc/config/network https://pastebin.com/tzZCD6AM
cat /etc/config/dhcp https://pastebin.com/JNtmNxNL
@vgaetera 'option clientid 'openwrt'' chrome tried to autofill that field. disabled chrome autofilling removed that field and was almost sure that it was my problem. but no..
Your switch config is strange because of 2 tagged CPU ports 5 and 6 while shconfig ... help shows CPU only on port 5, but I'm not experienced enough in configuring switches to declare it incorrect.
You can create a separate topic about it and ask someone to explain or verify if this is okay or not.
This is certainly not good because system services depend on this API.
We should consider how to troubleshoot it.
But, now, I dont really understand problem you explained above I would create separate post, but I dont really know how to describe problem and troubleshoot absence of ${NET_IF} . I can perform ssh commands if you have good ideas
On my setup, with 2 ISPs being load balanced by mwan3, I leave WANs alone and set DNS on VLAN DHCP. I had to set it directly on /etc/config/dhcp because couldn't get it working from Luci. If you need the code, I'll get it later when I'm home.