After hours testing, I  think I found the problem.  My router has DHCP lease time  set as 120 mins, if I changes it to 2 mins, My Ethernet lost internet in few mins. It is the problem of  Openwrt DHCP Client problem.

The fix is:

nano  /lib/netifd/dhcp.script
setup_interface () {
        proto_init_update "*" 1
        proto_add_ipv4_address "$ip" "${subnet:-}"
        # TODO: apply $broadcast

        for i in $router; do
                proto_add_ipv4_route 0 "$i"
                route add -net gw "$i"






Comments powered by CComment