LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2005, 11:32 AM   #1
overclock
LQ Newbie
 
Registered: Dec 2005
Distribution: suse 10.0
Posts: 5

Rep: Reputation: 0
I can access router settings but no internet access


I can access my wireless router settings (192.168.1.1) but I can't access the internet. The router itself can ping sites. linux dist is suse 10.0. I'm new to the world of linux, so if you can walk me through some steps, that'll be great. thanks
 
Old 12-09-2005, 01:20 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
How have you configured you wireless connection to your router, and also what wireless card do you actually have in your Linux machine? Can you ping the router itself?

At a guess, if you type "route" from the command line, you'll be missing an entry for default gateway which defines where you system will look for it's Internet connection. To fix this, type:
Code:
route add default gw 192.168.1.1 dev wlan0
assuming wlan0 is what your wireless card is configured as. Otherwise, if you have a look within /etc/resolv.conf you might not have correct DNS servers set which should be available from your ISP.
 
Old 12-09-2005, 01:29 PM   #3
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
Check out my post from another forum. It may help.

Quote:
I had a similar problem with SUSE Linux 10.0 on my machine as well. In my case, the problem arose from the DHCP function overwriting one of the two DNS servers with the gateway IP address. I believe this is common, as it is the same in Linux and Windows. Apparently, Windows can handle this behavior and Linux cannot (or not as well, anyway).

Here is the solution I used.

1. Log in as root. (K-menu --> System --> File Manager --> File Manager - Super User Mode). Open up the resolve.conf file (located at /etc/resolv.conf) with Kwrite and edit the resolve.conf file so that it contains both DNS server numbers. (I overwrote the gateway IP address with the DNS #1 address. It was the one that was overwritten.) Save the modified file as resolve2.conf. You will need this backup file.
2. Open up the config file (located at /etc/sysconfig/network/config). Make a backup of that as well. Next, change MODIFY_RESOLV_CONF_DYNAMICALLY = “yes” to MODIFY_RESOLV_CONF_DYNAMICALLY = “no”.
3. Restart. (I think you can also do this by logging off and logging back in.) Log in as root. You will find the resolve.conf file messed up. (We switched off "MODIFY_RESOLV_CONF_DYNAMICALLY," so the file was not "created" this time around.) Open the backup copy (resolv2.conf) and save it as resolv.conf. This file will remain untouched. (As far as I can tell, anyway.)
4. Restart and log in normally. It should work.

I hope that helps.

Last edited by Cogar; 12-09-2005 at 01:32 PM.
 
Old 12-09-2005, 03:51 PM   #4
overclock
LQ Newbie
 
Registered: Dec 2005
Distribution: suse 10.0
Posts: 5

Original Poster
Rep: Reputation: 0
I believe i'm doing something wrong while using your walkthrough. I still can't access the internet through wifi and now my ethernet is performing extremely terrible even when I restored everything back to my previous setup.

here's my resolv.conf:

nameserver 178.16.1.1
nameserver 139.78.200.1
search suites.rl suites.rl

The "MODIFY_RESOLV_CONF_DYNAMICALLY" was already "="no""

In wifi connectivity only, I get the error "The connection was refused when attempting to contact X." X = any ip (excluding my router's ip) and url.

Last edited by overclock; 12-09-2005 at 03:57 PM.
 
Old 12-09-2005, 04:47 PM   #5
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
OK, that makes me wonder if you set up your wireless card correctly. You might recheck and make sure your network name (ESSID), operating mode (Ad-hoc/Managed/Master), authentication mode (Open/Shared Key/WPA-PSK/WPA-EAP), passkey, and passkey type (passphrase/ascii/hexadecimal) are entered correctly.
 
Old 12-09-2005, 05:09 PM   #6
overclock
LQ Newbie
 
Registered: Dec 2005
Distribution: suse 10.0
Posts: 5

Original Poster
Rep: Reputation: 0
I rechecked my setup and everything seems to be correct.
 
Old 12-10-2005, 08:50 PM   #7
overclock
LQ Newbie
 
Registered: Dec 2005
Distribution: suse 10.0
Posts: 5

Original Poster
Rep: Reputation: 0
it says that the connection is refused even when i'm not connected through eth0 or wlan0
 
Old 12-13-2005, 08:59 PM   #8
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Distribution: Slackware
Posts: 251

Rep: Reputation: Disabled
Do you use dhcpcd or do you have it set for a manual IP? Use the same IP for your previously working eth0 connection as wlan0? It sounds to me more like you maybe have the wrong dns address. If you can connect to your router but not to a url, that would lead me to believe its the dns (as fouldsy has stated already).
I doubt its any security settings in your router since you are able to log into it. (From what I gather.)

Whats the output of ifconfig and iwconfig?
 
  


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
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 11:28 AM
Can't access internet thru router fpperryaz Linux - Wireless Networking 7 07-17-2005 10:38 AM
Can't access internet through router!!! aXoneX Linux - Networking 21 12-22-2004 04:47 AM
can't access internet via router stormadvisor Linux - Networking 5 11-05-2004 07:36 PM
How to access router settings without M$ software? Vincent_Vega Linux - Hardware 2 01-30-2004 08:42 PM


All times are GMT -5. The time now is 10:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration