If your PS5 will not connect over Ethernet, start with the wired connection itself and the exact error shown. A failed network test can help choose the next check, but it cannot uniquely identify a damaged cable, a DNS fault or an outage.
Set up wired LAN explicitly
Connect the cable to the PS5's LAN port and a LAN port on your router. In Settings > Network > Settings > Set Up Internet Connection, select Set Up Wired LAN > Connect. These are Sony's PS5 wired setup steps; the PS4 setup menu is different.
Use the on-screen result to record what failed. If the console cannot obtain an address, investigate the cable, router port and the router's address-allocation settings. If it obtains an address but cannot reach the internet, consider the router's internet connection and its access rules. These are troubleshooting possibilities, not a code-to-component diagnosis.
If internet access works but PlayStation sign-in fails, check service availability and the account message before changing the physical connection. A successful test at one stage does not guarantee that every later service is reachable.
Compare one physical change at a time
Reseat the Ethernet plug at both ends. Try another router LAN port, then a known-working cable. If wall sockets, a switch or a powerline adapter sits between the console and router, temporarily connect the PS5 directly to the router. Write down which arrangement works.
Another device on the same cable can provide a useful comparison. It does not conclusively clear the cable or router because devices can behave differently. Similarly, Wi-Fi working on the PS5 makes a wired-path issue worth investigating, but does not prove the console's LAN hardware has failed.
Restart the console and, if other devices also have problems, follow the router manufacturer's restart instructions. A router restart interrupts other users, so choose a suitable time. Do not use its factory-reset button as a routine connectivity test.
Leave advanced settings alone initially
Sony lists IP address, DHCP host name, DNS, MTU and proxy under Advanced Settings, and advises asking the ISP or network administrator if you are unfamiliar with them. Follow that advanced-settings guidance rather than entering an arbitrary MTU or copying an unrelated static address.
PS5 supports IPv6 connections but not an IPv6-only network. If your router uses IPv6-only, Sony says to contact its manufacturer for help enabling IPv4. This applies to the network configuration; it is not a reason to disable unrelated security protections.
Check PlayStation's status link in the same official guide when an online service fails. If services are disrupted, changing DNS or resetting the console may add work without solving that disruption.
Connected but slower than expected?
Do not interpret a slow download result as proof of damaged wire pairs. An internet download measurement also reflects the service, router and traffic conditions. Compare a different cable and direct router connection before buying anything.
A Cat 6 Ethernet cable is an optional replacement when testing points to the existing cable. It is not a guaranteed speed upgrade. If the wired connection still fails, send support the exact message, connection arrangement and comparison results. That gives them evidence to distinguish network configuration from a potential console fault.