Home Assistant is not connecting to the network

I have a home assistant installed on raspberry pi 4, connected using an Ethernet cable to Xiaomi Router AX6000.

When I restart Home Assistant it takes me hours to be able to connect it to the network again, I need to restart home assistance and the router multiple times to be able to connect it to the network.

I tried to make the local IP address dynamic instead of static and it connected successfully without issues, I’m using router DHCP to make the home assistant IP address static.

Is there anyone faced this issue before?

Having the HA server use DHCP and configuring the DHCP-server (most of the times on the Router) to assign a static IP for that client is the best practise.