Can't connect to internet

SSSnail

Lifer
Nov 29, 2006
17,458
83
86
Even though I have IP (DHCP assigned) so I can see the gateway and everything. Don't know what's wrong. I even tried static IP, but that won't work either. Any ideas?
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
In order to connect to the internet you need to have several things going for you.


You need to have a working network connection from your computer to your gateway.
Your gateway needs to be working properly.
You need to have proper IP addresses and to be able to connect effectively using TCP/IP.
You need to have DNS server addresses configured correctly.
Your DNS service needs to be working.
You need to be able to contact your DNS service.



So if any of those things are not working correctly then you won't be able to surf ye old interweb tubes.

So to figure out what part is broken you need to troubleshoot. To effectively troubleshoot you start at the bottom and work your way up testing each possibility until you find out what is not working. This is how you isolate the problem. Once you isolate the problem then you need to fix the problem.


Lets assume that this is your network configurations:
ip address: 192.168.0.10
gateway: 192.168.0.1
DNS address: 192.168.0.1
(if your using a firewall/router then dns address is often the same as your gateway, but that doesn't have to be true)


So this is how you do it in Linux.. Go step by step. It only works if you go in order.

If your using wireless then there are more steps to do if pinging your gateway fails...

1. Open up a terminal.
2. Run the 'ifconfig' command to determine if your ip address seems correct:
> ifconfig

If that is incorrect then dhcp is not working or you have a misconfiguration.

3. Ping your own address:
> ping 192.168.0.10
(hit ctrl-c to stop pinging)

If this is not working then you have serious issues.

4. Ping your gateway:
> ping 192.168.0.1

If tihs is not working then check the physical connections between your computer and the router/modem or whatnot. Use special wireless commands if your using wifi. Check the indicator lights on your nic card and router/modem to make sure that your connected correctly.

Could be driver issues or a misconfiguration. Come back here and give more information. Stuff like... the networking card or modem. The type and general configuration of the network. More details like that.

You can see the kernel output by using the 'dmesg' command. See if you can find something in there that looks like it may have to do with your networking device.
> dmesg | less

Also checking out your /var/log/messages file will be about the same thing.



5a. Ping your DNS server:
> ping 192.168.0.1

If this fails then the DNS server could be down or you have a incorrect IP address. If it's not the same as your gateway and you can't reach it then your router/firewall/modem is probably itself not connected to the internet. Check your indicator lights and configuration in your router.


5b. Ping a IP address on the internet:
> ping 64.233.167.104

If this fails then your modem or gateway is probably not connected correctly to the internet.

6. Ping a host on the internet:
> ping www.google.com

If this fails then your DNS server is incorrectly configured. Either the server itself or in your /etc/resolv.conf configuration file.
You should have a entry that goes something like:

nameserver 192.168.0.1

7. Type www.google.com into your browser.

If this fails and everything else works then probably your browser is broken for some reason.
 

SSSnail

Lifer
Nov 29, 2006
17,458
83
86
Bah, luser errors. I forgot I had dual NICs and had plugged up to only one of them, the one that goes to my internal so I could ping machines inside my network, but nothing else.

PEBCAK.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |