I solved the problem by accident. I copied the DHCP settings and pasted them into the Static settings and hurray the router started working.
If anyone else has the same problem that I had, then I recommend this solution.