I can get to other PCs in my house on the 192 network, but trying to go outside gives me the "network is unreachable" message. p3p1 is up with a good IP Address. Running Fedora 16. What should I do next to troubleshoot?
All other PCs in the house are working (Windows, Mac).
93 Answers
You say all other pcs in your house have a connection. Then the problem lies only with your linux machine. There are several possibilities:
You do have a connection, but you cannot reach your DNS; you can diagnose this by
ping -c1 8.8.4.4if you can reach Google, then you have a connection, and you only need to update your DNS servers. Edit (as sudo) your /etc/resolv.conf file and add these two lines:
nameserver 8.8.8.8 nameserver 8.8.4.4and now you are good to go.
You cannot ping Google, but you can ping your router, or any other pc in your LAN. In this case case, it is possible that you also have problem 1, so you will have to check for that, but first, you need to check your routing table. Print it with
ip route show defaultand check that there is a reply, like this one:
default via 192.168.11.1 dev wlan0 proto dhcp metric 600(this is for my laptop). What is important is that the correct IP address of your router is shown exactly where mine (192.168.11.1) is shown. If an incorrect IP address is shown, or, worse, if the ip route show default command receives no reply, then your routing table has been corrupted. You may simply restore it by means of:
sudo ip route del default (only if the wrong IP address appears) sudo ip route add default via IP.address.OfYour.Routerand now we may go step 1.
If you cannot ping any pc on your LAN, then there is another kind of problem, and more questions will need to be asked. But we'll cross that bridge when we get there.
I had a similar issue in my home network. I had decided to run my Mac Pro headless for a while - it runs my media server, a wiki server and an ownCloud instance. All of those services were available to machines on the LAN, but from an ssh shell on that machine, I wasn't able to ping or otherwise reach any hosts outside of our LAN, so I couldn't (for example) do my "brew update" or other maintenance chores.
I finally gave up network troubleshooting and reattached the monitor, and found that my firewall (in this case, Little Snitch) was prompting me to allow those outgoing connections. Both options of loosening the rules, or disabling the firewall restored that machine's ability to reach the Internet.
The simple procedure that works is to modify the c:\users%USERPROFILE%.wslconfig file to be:
[wsl2]
memory=8GB
**swapFile=0**
swap=0For some reason someone at microsoft changed the name of the swap config parameter. Stragely, when swapfile is defined. network works like a whistle.
Microsoft: Please decouple swalfile from network. And consider supporting both names for the swap.