- ping or mtr your router and verify there are no dropped packets (ex: ping 192.168.0.1 or mtr 192.168.0.1 where 192.168.0.1 is your router's IP)
- ping or mtr a public IP (ex: Cloudflare's DNS server: ping 1.1.1.1)
- ping or mtr a fqdn (ping www.google.com)
If you can ping your local router with no dropped packets, your local network is probably fine
If you can't ping 1.1.1.1, then there is an issue between your router and the Internet. Look at the output of mtr to see if/where there is packet loss
If you can ping 1.1.1.1, but not www.google.com then your issue may be DNS. Verify your DNS server IPs
*If you don't know your router's IP, try 'route -n' and the default gateway should be the non 0.0.0.0 entry under the Gateway column, usually it's in the first line