iMac won't connect to internet via ethernet or Wi-Fi after power outage
After a power outage, my buddy's newer (bought July 2023; M1 or M3 I'm not sure which) iMac (with Ethernet jack in Power Adapter) can't connect to the Internet. The Ethernet and WiFi adapters both successfully log in to the same router / network they've been using for years. Both adapters in System Settings > Network have the expected and valid IPs, subnets, and DNS servers. Multiple iPads, iPhones and laptops log in to this same WiFi router/network and find the Internet just fine - working great! Both the iMac's WiFi & Ethernet connections show green "Connected" indicators. But I cannot ping between the seemingly valid IP Addresses in Terminal.
Opening Safari shows: no Internet connection is available. (Need to try a different browser; my buddy went to go buy a USB-C to Ethernet adapter for troubleshooting and a new Ethernet cable too.) Yes, we powered down everything multiple times. "Forgot" the network a couple times too. Need to try the WiFi network as a higher priority than the Ethernet one in System Settings (can I just drag them up & down?). Maybe try a PRAM reset - but that seems unlikely to fix it.
Troubleshooting ideas anyone?
[Re-Titled by Moderator]
iMac (M1, 2021)