hello, i flashed openwrt 18.06.04 on my gl.inet gl-mt300n-v2 and i have a strange problem with one device, a POS, plugged via lan cable.
What happens:
If i reboot the router, the device lose the ip address and remain 0.0.0.0 until i reboot the POS
What i have tried:
The POS is set in DHCP. I have tried to set a static address on the POS but it cannot connect to the internet
The router is resetted, no changes made
If i try to connect via wifi with my notebook to the router, it assigns again an IP address to both my computer and POS and the internet connection its working
I tried the same with my notebook (plug via lan and reboot the router) and the router reassign again the IP address on reboot
If i unplug and replug tha cable the IP remains 0.0.0.0
I have no ideas, how can force to reasign the ip address to the POS when the router reboots?
If the cable are good and ports are not damaged, then this could also be a sign of dnsmasq not running. Can you run ps -w | grep dnsmasq on the router when one device cannot an IP while another one is still connected.
I can't do this
as soon as i connect from another device, with my computer via wifi, all start working again and bot the POS and my pc has an ip address
You already have verbose logging, so you can connect with SSH and check if there is proper communication with dnsmasq. logread -f | grep -i dnsmasq
Then try to reproduce the problem.
I would also add a static dhcp lease for the POS or any other device that connects regularly with a higher lease time.
For example
i can't do this (or i don't know how do that)
because as soon as i try to connect from pc for the ssh connection both the POS and the pc get an IP address
Set a static IP for the PC, so that it won't trigger any dhcp event. Then keep it connected and running until the issue appears. With Ctrl-c you can exit the logreading.
what i have tried
dhcp lease and - not working
static ip for the PC - not working because, again, as soon as the pc is connected, the POS get an IP address. In any case i cannot do this test because to reproduce the issue i have to turn off/reset the router and i lose the SSH connection
it's very strange, i have tried with the original gl.inet firmware and is working as expected