A "timed out" error during IP address acquisition means the PS3 isn't getting a response from your router's DHCP server. Follow these steps:
Settings → Network Settings → Internet Connection Settings → Custom → Wired Connection →
If unresolved, contact your ISP (possible upstream issue) or PlayStation Support with your PS3 model, router model, and error code (e.g., 80710102).