LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2005, 07:36 PM   #1
tnine9
Member
 
Registered: Jan 2003
Posts: 39

Rep: Reputation: 15
Wireless DNS issues


Hi all,
Here is my problem. I am running suse 9.2 on an hp ze4650 laptop. I have installed ndiswrapper 1rc4 and the latest souce from the stable branch of the wpa_supplicant CVS tree. I can negotiate my WPA-PSK key with my access point, aquire an IP from my DHCP server, and ping every machine on my LAN. Now comes the tricky part. I cannot "see" anything outside of the 192.168.x.x address range. For instance, when I try to ping www.google.com or even 128.10.3.61 I recieve the message "Network is unreachable". I have a gateway at 192.168.0.1. All of the other linux and windows clients have no problems "seeing" the outside world. I even disabled the firewall in suse on my laptop. Here are some contents of my files

/etc/resolve.conf -> 192.168.0.1

Output of "route"

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
link-local * 255.255.0.0 U 0 0 0 wlan0
loopback * 255.255.0.0 U 0 0 0 lo

Any thoughts?

Thanks,
Todd

Last edited by tnine9; 01-28-2005 at 07:43 PM.
 
Old 01-29-2005, 02:33 AM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
You have no default gate way set.
Fire up YaST and go to "Network Devices" open up "Network Card"
In the lower part you will be presented with the cards configured for your computer. Click "change..."
and then "edit" -> "Routing". Enter a default gateway at the top (should be 192.168.0.1)
 
Old 01-29-2005, 12:35 PM   #3
tnine9
Member
 
Registered: Jan 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Why a static default router, should that be assigned from DHCP?

OK, that got it. Thanks for the help, but now I have a related question. Shouldn't the DHCP client get the default router from the DHCP server? All of my other distros and windows clients seem to. What will happen when I move locations? For instance, when I'm on campus at Purdue, their default router is not 192.168.0.1. How will the client pick up the default router from the server?

Thanks,
Todd
 
Old 01-31-2005, 10:19 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
The DHCP server should be sending the default gateway setting with it's response.
There can be 2 problems, either the server doesn't send the default GW, or your client doesn't use it.
How this is configured I don't know for sure.

It probly involves editing the files in /etc/sysconfig/network, either directly or via the YaST utility.
 
Old 01-31-2005, 12:20 PM   #5
tnine9
Member
 
Registered: Jan 2003
Posts: 39

Original Poster
Rep: Reputation: 15
I know that my DHCP server is sending the gateway IP since all my other linux distros and my wireless card in windows get the gateway's IP. Does anyone know how to check that the gateway being automatically assigned on the client side?

Thanks,
Todd

Last edited by tnine9; 01-31-2005 at 12:30 PM.
 
Old 01-31-2005, 07:19 PM   #6
tnine9
Member
 
Registered: Jan 2003
Posts: 39

Original Poster
Rep: Reputation: 15
Default Gateway with wireless from DHCP Suse 9.2

OK, I figured out the problem (I think).

In Suse 9.2 there is the file ifcg.template in /etc/sysconfig/network. If you open up the file you will see the setting "DHCLIENT_PRIMARY_DEVICE". If you read the documentation above it, it states that only the first dhcp client can modify routes. On my laptop eth0 starts before wlan0. Therefore, I set this option to yes, allowing both eth0 and wlan0 to modify the routes and DNS information. With this setting you must be careful to not use more than one network device at a time since this could cause unpredictable behavior. I then brought down eth0, and brought up wlan0 and voila! Now my default gateway is being set from the DHCP server. I also disabled eth0 starting on boot in YAST since I very rarely use it. Hopefully this post will benefit someone else in the future.
 
Old 02-01-2005, 09:31 AM   #7
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Nice to know.
 
  


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
DNS issues DigiCrime Linux - Software 0 11-06-2005 02:05 PM
DNS issues juanb Linux - Networking 1 09-14-2005 07:46 AM
Possible DNS issues w/ FC 4 blackdragonblood Linux - Networking 4 08-23-2005 09:49 PM
DNS Issues ... c2lancas Linux - Networking 10 11-08-2004 01:19 PM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM

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

All times are GMT -5. The time now is 10:49 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