LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2003, 09:06 AM   #1
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
SuSE 8.2/Linksys WPC11 DNS Problem


Basic Problem: Using my wireless card, I can't get to the Internet.

Set-up: Cable modem hooked to Linksys router/gateway that supports both 802.11b and wired 10/100 connections

Laptop: Dell Inspiron 8200 with P-4 2.2 Ghz, 512 Mb RAM, Internal 10/100 NIC, PCMCIA Linksys 802.11b (WPC11) card.

The story: During installation of SuSE 8.2, it detected and correctly set up my internal 10/100 NIC (eth0). I accepted all default settings (host = linux, domain = local, etc.), all nameserver information was handled through DHCP. Using this device, I can surf to my heart's content.

Then I decided to make my life difficult and try and set up the wireless card (eth1). Last night I finally managed to get SuSE to recognize the card by binding the card to the orinoco_cs driver instead of the wlan-ng software (a suggestion made on the SuSE KB). And, in fact, I can get to my router's setup webpage without any problems.

The problem lies when I try to get to an outside web address -- if I try going to Google (I've tried many different addresses just to be fair), I get a "Name cannot be resolved" error. I also tried pinging google.com, same result, "Name cannot be resolved". However, if I ping the IP address directly, I get the expected output.

So, I tried altering the default nameserver settings for eth1, to no avail. But upon messing with the nameserver settings for eth1 I realized that it also changed these values for eth0. Of course, now eth0 would not work. I managed to return the nameserver settings back to pre-wireless tinkerings and now eth0 can get to the Internet. But that still leaves me in the dark about why my wireless NIC can get to the router, but not beyond (for DNS resolution).

Any suggestions?
 
Old 08-26-2003, 11:37 AM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Original Poster
Rep: Reputation: 30
I finally did figure it out and I wanted to post a reply so that if anyone else was having the same problem, this might be of some use.

I first managed to get DNS resolution when I hard coded the DNS servers into my /etc/resolv.conf file. However, everytime I booted up, I still had to start a shell, log in as root and run the following command:

route add default gw 192.168.1.1 (where 192.168.1.1 was the gateway of my router at home)

After that, everything worked like a champ. Unfortunately, when I would go to a local coffee shop to hook up to their wireless hotspot, I would have the same problem I had before, I could ping or go to a website if I knew the IP address, but I couldn't get name resolution.

Through a bit of research, I discovered that the problem I was having was that my eth0 device was still active (even though there was no LAN cable actually plugged into it). So, instead of the above command, I used the following instead and configured my network cards to get DNS information from DHCP. Again, start a shell and log in as root, then issue the following commands:

ifdown eth0
ifdown eth1
ifup eth1

If all goes well, you will be assigned an IP address and the correct gateway entry will automatically be added to the IP routing table.

I imagine this could be automated in a script if you knew you were always going to be connecting via eth1, but since I connect to both eth0 and eth1, I can simply type it in when I need it. Also note that these settings will survive a log out and log in. However, if you reboot the laptop, you will need to reapply the settings.

Hope that helped.

Now if I could just get my palm pilot to work...
 
  


Reply



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
Linksys wpc11 v4 and SuSE 9.1 Pro theSandMan Linux - Wireless Networking 1 12-07-2004 02:00 AM
Suse 9.0 Linksys WPC11 dmk Linux - Wireless Networking 18 04-13-2004 01:22 AM
Linksys WPC11 on SuSE 8.2 Lee_B_H Linux - Networking 4 07-21-2003 05:19 PM
Linksys WPC11 on SuSE 8.1 Pro oingram Linux - Networking 2 12-19-2002 06:55 PM
SuSe 8.0 and Linksys Wireless WPC11 diablo17 Linux - Newbie 2 08-05-2002 09:00 AM

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

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

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