Using DHCP ? You could try with a static IP address.
You could compare the output of "ip addr" before and after the router reboot. Also can you ping the router from the Pi after reboot ?
I lose connection to the pi
You loose connection from another computer to the Pi ? On the same LAN ?