here what i see in the logs:
Sat Jun 22 18:02:02 2019 daemon.notice netifd: wan (4479): udhcpc: sending renew to 0.0.0.0
Sat Jun 22 18:02:05 2019 daemon.notice netifd: wan (4479): udhcpc: sending renew to 0.0.0.0
Sat Jun 22 18:02:06 2019 daemon.notice netifd: wan (4479): udhcpc: sending renew to 0.0.0.0
Sat Jun 22 18:02:06 2019 daemon.notice netifd: wan (4479): udhcpc: lease lost, entering init state
Sat Jun 22 18:02:06 2019 daemon.notice netifd: Interface 'wan' has lost the connection
Sat Jun 22 18:02:06 2019 daemon.notice netifd: Interface 'WGINTERFACE' has lost the connection
Sat Jun 22 18:02:06 2019 daemon.warn dnsmasq[1375]: no servers found in /tmp/resolv.conf.auto, will retry
Sat Jun 22 18:02:06 2019 daemon.notice netifd: Network device 'WGINTERFACE' link is down
Sat Jun 22 18:02:06 2019 daemon.notice netifd: wan (4479): udhcpc: sending discover
If this happens i can simply click reconnect on the WAN connection:
Sat Jun 22 18:48:03 2019 daemon.notice netifd: wan (4479): udhcpc: received SIGTERM
Sat Jun 22 18:48:03 2019 daemon.notice netifd: Interface 'wan' is now down
Sat Jun 22 18:48:03 2019 daemon.notice netifd: Interface 'wan' is disabled
Sat Jun 22 18:48:03 2019 kern.info kernel: [623402.230728] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
Sat Jun 22 18:48:03 2019 kern.info kernel: [623402.232391] dwmac1000: Master AXI performs any burst length
Sat Jun 22 18:48:03 2019 kern.info kernel: [623402.239771] ipq806x-gmac-dwmac 37200000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
Sat Jun 22 18:48:03 2019 kern.info kernel: [623402.245657] ipq806x-gmac-dwmac 37200000.ethernet eth0: registered PTP clock
Sat Jun 22 18:48:03 2019 kern.info kernel: [623402.254521] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Sat Jun 22 18:48:03 2019 daemon.notice netifd: Interface 'wan' is enabled
Sat Jun 22 18:48:03 2019 kern.info kernel: [623402.262870] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
Sat Jun 22 18:48:03 2019 daemon.notice netifd: Interface 'wan' is setting up now
Sat Jun 22 18:48:03 2019 daemon.notice netifd: VLAN 'eth0.2' link is down
Sat Jun 22 18:48:03 2019 daemon.notice netifd: Interface 'wan' has link connectivity loss
Sat Jun 22 18:48:03 2019 daemon.notice netifd: Network device 'eth0' link is down
Sat Jun 22 18:48:03 2019 daemon.notice netifd: wan (19278): Command failed: Permission denied
Sat Jun 22 18:48:04 2019 kern.info kernel: [623403.268626] ipq806x-gmac-dwmac 37200000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
Sat Jun 22 18:48:04 2019 kern.info kernel: [623403.268747] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sat Jun 22 18:48:04 2019 daemon.notice netifd: Network device 'eth0' link is up
Sat Jun 22 18:48:04 2019 daemon.notice netifd: VLAN 'eth0.2' link is up
Sat Jun 22 18:48:04 2019 daemon.notice netifd: Interface 'wan' has link connectivity
Sat Jun 22 18:48:04 2019 daemon.notice netifd: Interface 'wan' is setting up now
Sat Jun 22 18:48:04 2019 kern.info kernel: [623403.278879] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
Sat Jun 22 18:48:04 2019 daemon.notice netifd: wan (19396): udhcpc: started, v1.28.4
Sat Jun 22 18:48:04 2019 daemon.notice netifd: wan (19396): udhcpc: sending discover
Sat Jun 22 18:48:04 2019 daemon.notice netifd: wan (19396): udhcpc: sending select for 178.112.x.x
Sat Jun 22 18:48:04 2019 daemon.notice netifd: wan (19396): udhcpc: lease of 178.112.x.x obtained, lease time 7200
Sat Jun 22 18:48:04 2019 daemon.notice netifd: Interface 'wan' is now up
Sat Jun 22 18:48:04 2019 daemon.info dnsmasq[1375]: reading /tmp/resolv.conf.auto
Please post here the output of the following command, copy and paste the whole block:
uci show network; \
uci show firewall; uci show dhcp; \
head -n -0 /etc/firewall.user; \
ls -l /etc/resolv.* /tmp/resolv.*; head -n -0 /etc/resolv.* /tmp/resolv.*
Please use "Preformatted text </>" for logs, scripts, configs and general console output.
Thanks - if my isp not require the hostname and client id - is there any setting i should change - i tried to remove the clientid but it seams it can not be empty?
As mentioned above if the wan connection drops i simple click reconnect and within seconds wan is up and get the ip so i belive the config in general is working - somehow i only see this behavior if i generate a lot of traffic and the dhcp refresh is triggered... can i somehow use a command to trigger the dhcp client refresh on wan manually to see if i can somehow force this behavior ?
If your isp doesn't require them, better leave them blanc. Otherwise I have noticed unpredicted behavior.
Your situation could be explained though by DHCP packets not reaching the dhcp server of your ISP due to vast traffic. This is difficult to happen however, because as per protocol the client sends DHCP request at half lease time. A qos rule to prioritize DHCP packets could help there.
Also make sure that DHCP packets go out of wan and not wireguard!