LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-10-2011, 01:39 AM   #1
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Rep: Reputation: 0
Unhappy Wireless connects to router and gateway, but I can't get on the internet.


I can log on to my gateway, but can't get to any web sites. I am new to Linux and don't have much experience with wifi. I can ping addresses from Konsole and get a return, but can't get to a site.

Last edited by brmccarty; 01-10-2011 at 02:11 AM. Reason: typo
 
Old 01-10-2011, 02:55 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Please provide output from the following commands :-

- ifconfig -a
- netstat -nr
- cat /etc/resolv.conf
 
1 members found this post helpful.
Old 01-10-2011, 09:28 AM   #3
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
more info

Thank you, I am determined that I am going to learn this and make it work.

Quote:
Originally Posted by kbp View Post
Please provide output from the following commands :-

- ifconfig -a
- netstat -nr
- cat /etc/resolv.conf
ifconfig -a
bash: ififconfig: command not found

netstat -nr
Kernel IP routing table
Destination ~ Gateway ~ Genmask ~ Flags ~ MSS Window ~ irtt Iface
192.168.1.0 ~ 0.0.0.0 ~ 255.255.255.0 ~ U ~ 0 0 ~ 0 wlan0
127.0.0.0 ~ 0.0.0.0 ~ 255.0.0.0 ~ U ~ 0 0 ~ 0 lo
0.0.0.0 ~ 192.168.1.254 ~ 0.0.0.0 ~ UG ~ 0 0 ~ 0 wlan0

cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory

ping google.com
64 bytes from ida04s01-in-f99. 1e100.net (72.14.204.99): icmp_req=2
ttl=47 time=71.7 ms
64 bytes from ida04s01-in-f99. 1e100.net (72.14.204.99): icmp_req=3
ttl=47 time=69.7 ms
64 bytes from ida04s01-in-f99. 1e100.net (72.14.204.99): icmp_req=4
ttl=47 time=73.5 ms
64 bytes from ida04s01-in-f99. 1e100.net (72.14.204.99): icmp_req=5
ttl=47 time=69.9 ms

BTW
Is there an option or switch to make it stop pinging? It just keeps going until I close Konsole.

Last edited by brmccarty; 01-10-2011 at 09:36 AM. Reason: put ~ to separate info
 
Old 01-10-2011, 09:53 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
The -c argument to the ping command specifies the number of pings. (e.g., ping -c 1 www.google.com for one ping.)

If you can resolve Google, your WiFi is (probably) correctly set up. Which browser are you using to try to connect to the Internet? Why do you believe it's not working properly?

<edit> Oh, a control-c entered in a terminal window will (usually) terminate a running command.</edit>

Last edited by PTrenholme; 01-10-2011 at 09:58 AM.
 
1 members found this post helpful.
Old 01-10-2011, 10:50 AM   #5
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
The -c argument to the ping command specifies the number of pings. (e.g., ping -c 1 www.google.com for one ping.)
Thank you, dos was a long time ago and windows has made me lazy.

Quote:
Originally Posted by PTrenholme View Post
If you can resolve Google, your WiFi is (probably) correctly set up. Which browser are you using to try to connect to the Internet? Why do you believe it's not working properly?
Okay this is driving me bat$#1+. I just opened Firefox to get the exact message and now it works. The message was basically not found for any website I tried to go to. I got the same message using Konqueror.

I have this same problem from time to time with my Windows 7 laptop. I never have this problem with any of my five XP systems. My daughters laptop running Vista was a pain to get connected, but after I got it there was no more problems. One of the five XP systems is the same system that Slackware is on duel boot. It never has a problem while running XP. One of the reasons I have decided to learn Linux is because I can no longer get XP and I was thinking of changing to Linux to get rid of this problem in Windows 7. This is not a problem when I am hardwired, but I want wireless. I like to take my laptop out on the deck and enjoy a cigar or just get some fresh air and watch the birds.

Thank you for any help you may be able to render.
 
Old 01-10-2011, 10:58 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to disable ipv6 globally and/or in firefox.
If the problem arrives, first try to ping the gateway (router), then try to ping outside, then try to ping on name.



Kind regards
 
Old 01-10-2011, 12:29 PM   #7
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
Red face Maybe an answer!

Quote:
Originally Posted by repo View Post
Try to disable ipv6 globally and/or in firefox.
Okay I know how to do this in Windows. I don't find anywhere to do it in Firefox and have no clue how to in Linux. I have it disabled in Windows 7.

Quote:
Originally Posted by repo View Post
If the problem arrives, first try to ping the gateway (router), then try to ping outside, then try to ping on name.
I can always ping anywhere I want. I have a wireless router with a DSL modem connected to it. I can connect to both of them.

While looking for a way to disable ipv6 in Firefox I may have found something. In the configure proxies area of Firefox preferences "Use system proxy setting" is selected on the Windows 7 and Linux systems. On my deck top running XP "No proxy" is selected. Could this be causing the problem? The desk top has never had a connection problem.

Thank you.
 
Old 01-10-2011, 04:11 PM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I don't find anywhere to do it in Firefox and have no clue how to in Linux.
http://thedaneshproject.com/posts/di...-in-firefox-3/
Quote:
In the configure proxies area of Firefox preferences "Use system proxy setting" is selected
Could this be causing the problem?
Change it to "no proxy" and see ?

Kind regards
 
Old 01-10-2011, 05:46 PM   #9
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
Thank you

Quote:
Originally Posted by repo View Post
http://thedaneshproject.com/posts/di...-in-firefox-3/

Change it to "no proxy" and see ?

Kind regards
Thank you,
I have IPv6 disabled Firefox on both systems. It may be a while until I know if it's fixed, it sometimes goes days without happening on the Windows 7 machine and I just got the Linux connected today.

Also set both to No proxy.

Last edited by brmccarty; 01-10-2011 at 05:49 PM. Reason: added
 
Old 01-11-2011, 01:57 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Did you consider the problem could be the connection itself?

Kind regards
 
1 members found this post helpful.
Old 01-11-2011, 02:07 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you certain you typed "cat /etc/resolv.conf" correctly? You should have this file. This file will contain the nameservers to use. You need those to resolve the IP addresses of URLs. Also post the results of "cat /etc/nsswitch.conf".

The command "getent hosts www.google.com" will test if name resolution is working.
 
1 members found this post helpful.
Old 01-11-2011, 05:38 PM   #12
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
Red face more info

Quote:
Originally Posted by jschiwal View Post
Are you certain you typed "cat /etc/resolv.conf" correctly? You should have this file. This file will contain the nameservers to use. You need those to resolve the IP addresses of URLs. Also post the results of "cat /etc/nsswitch.conf".

The command "getent hosts www.google.com" will test if name resolution is working.
Sorry I just figured out that I needed to be root to run some of those commands.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root@b-bhome:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:00:86:40:5e:af
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:9 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:46 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2300 (2.2 KiB) TX bytes:2300 (2.2 KiB)

wlan0 Link encap:Ethernet HWaddr 00:08:ab:21:50:46
inet addr:192.168.1.10 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::208:abff:fe21:5046/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34692 errors:0 dropped:0 overruns:0 frame:0
TX packets:12134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13888002 (13.2 MiB) TX bytes:1925011 (1.8 MiB)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root@b-bhome:~# cat /etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# nisplus or nis+ Use NIS+ (NIS version 3)
# nis or yp Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# [NOTFOUND=return] Stop searching if not found so far
#

# passwd: files nis
# shadow: files nis
# group: files nis

passwd: compat
group: compat

hosts: files dns
networks: files

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
bootparams: files

automount: files
aliases: files

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root@b-bhome:~# cat /etc/resolv.conf
# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.254
# /etc/resolv.conf.tail can replace this line

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

root@b-bhome:~# getent hosts www.google.com
72.14.204.147 www.l.google.com www.google.com
72.14.204.99 www.l.google.com www.google.com
72.14.204.103 www.l.google.com www.google.com
72.14.204.104 www.l.google.com www.google.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Also went back and check everything in my router setting. I found the the Primary DNS was entered in Secondary DNS. The numbers entered in Primary I have no idea what they are.
 
Old 01-12-2011, 01:20 AM   #13
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
@%$%

Still doesn't it.

Last edited by brmccarty; 01-12-2011 at 12:17 PM. Reason: typo
 
Old 01-12-2011, 01:55 AM   #14
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Your DNS address is for the router I presume (local address). Some routers don't do a good job at this. Try using your ISPs DNS address, or use an OpenDNS server.

Your ping time was about twice as long as mine.

Could you provide more information on what fails. You can ping internet sites and DNS is resolving URLs.

From the ifconfig results, it looks like you are using wireless. You might try a different wireless channel or setting.

Last edited by jschiwal; 01-12-2011 at 01:58 AM.
 
Old 01-12-2011, 11:14 AM   #15
brmccarty
Member
 
Registered: Jan 2011
Location: Cayce, SC
Distribution: Mint 13 Xfce
Posts: 65

Original Poster
Rep: Reputation: 0
more

I have a separate router and dsl modem. The dsl modem is connected to my router via cat5. The DNS numbers I now have entered in the router are the ones I got from logging into the modem. See screen capture.
Click image for larger version

Name:	internet settings.jpg
Views:	14
Size:	89.4 KB
ID:	5834
It just did it again this is some ping results, but it started working again before I could boot the Linux system up to check on it.
Click image for larger version

Name:	pingfailed.jpg
Views:	11
Size:	130.8 KB
ID:	5835

The screen captures are from Windows 7 but are pretty much the same thing that happens in Linux. I will try to get some screen captures from Linux next time it happens. I am using wireless and have tried different channels. I am currently using the quietest channel. The software from one of my wireless card has a noise meter that goes from 0-100. Channel 4 is around 30-35 and channel 5 is around 35-40, both are green. The rest of the channels are yellow and one of them (6) is red. There are 6 wireless networks in range (most a very weak signal) one is using channel 11 four of them are using channel 6. I think 6 must be a default channel because that is the one I was on until I started trying to fix this.

Could my ping times have anything to do with how many computers I have running? I have anywhere from 1 to 5 running and occasionally if someone visits and brings their computer I could have more. Normally I have three computers connected, the desktop, my laptop, and my wife's laptop. The last week or so I have also had the laptop with Linux connected.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xubuntu connects to Router but not to the Internet? IanVC Linux - Newbie 2 12-28-2009 08:34 AM
Wifi card connects to router, but not internet Mbaum Linux - Hardware 7 01-19-2006 03:39 PM
DWL-122 only connects to router not to internet Telluris Linux - Wireless Networking 2 01-11-2006 04:05 PM
Connects to router, but no internet Lee_B_H Linux - Wireless Networking 4 01-08-2005 08:54 PM
weird...wireless connects to router but not internet apu95 Linux - Wireless Networking 4 04-24-2004 10:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration