LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-wlan-cannot-access-internet-but-can-access-the-router-configuration-page-suse-389869/)

thomas939 12-06-2005 12:10 PM

WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE
 
Hello,

I have a Netgear WLAN router at home. I am using suse 9.0. I recently installed a 3Com Airconnect Wlan card in my old IBM 770. It worked perfect. Now i went to a friend and tried to access his network, so i changed my settings etc.
When i came home, i changed network name back to my home network and entered encryption key. I can not go to the www anymore but when i enter the ip of the router, in the web browser, i can access the router itself. Please let me know how i can make connection to the internet and please tell me why i can configure and access my router but not connect to the internet.
Thank You very much.
Thomas

fouldsy 12-07-2005 04:51 AM

Have you checked whether the default gateway has changed in your routing table? It may when connecting to your friend's network, it uses that device for connecting to the Internet which is no longer there. Type "router" to show the routing table, and look for the entry detailing default gateway. If you need to change it:
Code:

route add default gw 192.168.1.1
substituting the ip address for that of your router.

thomas939 12-07-2005 09:00 PM

I can access the router setup
 
Thanks a lot for your reply.
Did you realize that i was able to access my router? I can by typing the address of my router into my browser actually connect to the router and change settings etc. but when i try to connect to the internet it does not go through. why can i connect to the router setup but not to the internet? the gateway seems to be correct.
And, the router actually shows my laptop to be connected and gives it an ip, namely:192.168.0.4 , still internet access is not possible.
Please help me...
Thank you in advance

Poetics 12-07-2005 11:59 PM

Are you able to ping a location via IP (ie linuxquestions.org has an IP of 64.179.4.149)?

If so, it sounds like your DNS is not properly set up.

thomas939 12-08-2005 11:04 AM

Yes, i can actually ping linuxquestions.org using the ip address. very cool. Thank you. I now need to know how to set-up my DNS correctly...
When i try to configure DNS server, i was asked toinsert a cd with the bind package called: bind-9.2.2-25.i586 I do not have the suse cd anymore. what can i do?

Hangdog42 12-08-2005 12:42 PM

You don't need to set up your own DNS server. All you need to do is list your ISPs servers in your /etc/resolv.conf file. Alternatively, you could list your router as a nameserver. Each nameserver goes on its own line:

namserver xxx.xxx.xxx.xxx

And just replace the xxx with the IP addresses.

thomas939 12-08-2005 01:31 PM

resolve.conf did not solve the problem
 
Thank you for the reply but to change the resolve.conf and add namserver 192.168.0.1 did not help. my resolve conf looks like this now.

domain name
namserver 192.168.0.1

I do not understand how to do the other suggestion. please let me know if you have an idea how to solve this problem...

Cogar 12-08-2005 02:28 PM

Quote:

Originally Posted by thomas939
Thank you for the reply but to change the resolve.conf and add namserver 192.168.0.1 did not help. my resolve conf looks like this now.

domain name
namserver 192.168.0.1

I do not understand how to do the other suggestion. please let me know if you have an idea how to solve this problem...

192.168.0.1 looks like a gateway address. That is, the address of your modem. You need to add in the DNS server addresses. If you do not know what they are (there should be at least two), you can get them from your ISP.

thomas939 12-08-2005 07:03 PM

thank you but i dont understand what that means. please be aware that i am new to linux. i need more precise information to tackle my problem....
And, i am using a wireless router, what has the modem to do with this problem?
please let me know if you have an idea how to solve this problem...
Where can i find the addresses and where do i need to put them???

Hangdog42 12-09-2005 07:07 AM

I agree with Cogar, that IP address looks a touch suspicious. When you connect to your router's configuration pages, what IP address do you use? That should be the one in your resolv.conf file. Also, if you look through your router's configuration pages, you'll probably find a listing for your ISP's DNS servers. Those IP addresses could also be the ones you would list.

Also, that "domain name" line doesn't look right. In my resolv.conf file, there is just the line nameserver 192.168.1.1 and nothing else. I would either remove that line, or comment it out with a # in front of it.

Cogar 12-09-2005 10:55 AM

Quote:

Originally Posted by thomas939
thank you but i dont understand what that means. please be aware that i am new to linux. i need more precise information to tackle my problem....
And, i am using a wireless router, what has the modem to do with this problem?
please let me know if you have an idea how to solve this problem...
Where can i find the addresses and where do i need to put them???

OK, here is a quick, non-technical (and therefore not perfectly accurate) description. For the purpose of this explanation, I will assume you have a DSL connection.

When you start your computer up, chances are it will talk to your router in a process called DHCP (Dynamic Host Configuration Protocol). This will assign an IP number to the computer. The router will give itself 192.168.0.1 and if your computer is the only one logged into the network, it will assign 192.168.0.2 to your computer. Now each of them can "talk" to each other.

Now, you want to connect to the internet and type in www.linuxquestions.org. Still, what you are really looking for is the IP address 64.179.4.146. Therefore, you need a "translation" from the name you typed into your browser (called a hostname) to the actual IP address. This is done by DNS (Domain Name System) servers. There are normally at least two--the primary and a backup. Your computer will ask the router, which in turn inquires through the modem to one of your DNS servers, asking what the IP address for www.linuxquestions.org is. The DNS server replies back the correct IP is 64.179.4.146. The connection is made and you are good to go.

So, the question is "how do I determine the IP address of my DNS servers?" Well, the best bet is to contact your ISP. They may also have that information on one of their web pages. For example, Qwest, a DSL provider in my area, has this information:

Quote:

Use the following DNS server addresses, set the preferred address to 205.171.3.65 and the alternate address to 205.171.2.65. Any entries that refer to other Qwest DNS server addresses must be removed.
http://my.qwest.net/nav4/help/your_a...s_service.html

Therefore, in my case, I would add the following lines in the resolv.conf file for my DNS servers:

nameserver 205.171.3.65
nameserver 205.171.2.65

I hope that helps. :)

PS: I noticed that there is a misspelling of "nameserver" as "namserver" in some posts. If that occurs, the system may not operate properly.

thomas939 12-13-2005 01:23 AM

Thank You
 
Internet is up and running. Thanks to everyone. Appreciate.
resolv.conf now nameserver DNSip.
Great.!!!!
:) :) :) :D :D :D :) :) :)

Cogar 12-13-2005 10:28 AM

I am glad to learn that you got things running. Enjoy! :)


All times are GMT -5. The time now is 11:11 AM.