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 08-04-2004, 05:37 PM   #1
sichen
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
wireless wlan0 has ip but no internet access on suse 9.1


I have suse 9.1 professional on a laptop (dell inspiron 600m) with a proxim rangelan-ds pcmcia wireless card. I am able to get an IP address from my router (192.168.1.105) and can ping, http, ssh my other computers on the local network (say, 192.168.1.1 my router or 192.168.1.100 my other computer). But I cannot reach outside of the network. When I use just my regular eth0 adapter, everything works fine (even though dmesg says that it cannot find ipv6 router for wlan0 and eth0.)

I have tried editing /etc/resolv.conf and putting the IP addresses of my ISP's servers manually but that did not fix things.

Can anyone point me to a guide or something on how to set it up? Do I need to install the dhcp server? If so, why does it work for my eth0 without installing anything else?

Thanks,

Si Chen
 
Old 08-04-2004, 05:50 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Has your gateway been set?

Can you post the output from:
route -n
 
Old 08-04-2004, 06:00 PM   #3
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
mine did that, untill i did an ifup wlan0 (eth0 in my case) only had to do it once, haven't since, and i reboot constantly (laptop in a semi environment), worth a try anyway
 
Old 08-05-2004, 11:48 AM   #4
sichen
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Ok. Tried both suggestions:
$ ifup wlan0
says
DHCP client is already running on wlan0
But still wlan0 cannot connect to the internet

The results of route are promising. When running with the eth0 cable plugged in, we got:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.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.1 0.0.0.0 UG 0 0 0 eth0

When running just with the wlan0, route -n gave:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

So it seems that the wlan0 is not set up to route through the 192.168.1.1 router. How do I fix this?

I tried:
$ route add -net 192.168.1.1 netmask 0.0.0.0 dev wlan0
and got:
SIOCADDRT: Invalid argument

$ route add -net 192.168.1.1 netmask 255.255.255.0 dev wlan0
and got:
route: netmask doesn't match route address

Then:
$ route add default gw 192.168.1.1

And it worked!

But when I tried to restart the computer or do a
$ /etc/init.d/network restart
I have to enter the route add again. Is there a network script where it should go, or is there a place to configure it?

Thanks!

Si
 
Old 08-05-2004, 07:28 PM   #5
Ghost_runner
Member
 
Registered: Jun 2004
Location: Kansas City, MO
Distribution: openSUSE 10.2/64bit
Posts: 276

Rep: Reputation: 30
add it to the bottom of /etc/rc.d/rc.local or at the end of /etc/init.d/network, if you are confortable with scripting, put it at the end of the start) section
 
  


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
wlan0 not listed. Can't access the internet doobers Linux - Wireless Networking 8 10-29-2004 06:24 AM
wlan0 not listed. Can't access the internet doobers Linux - Hardware 0 10-26-2004 06:03 PM
Wireless card working, but can't access internet fizgigtiznalkie Linux - Wireless Networking 13 09-10-2004 04:17 AM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM
Suse 9.0 wireless network card,cannot access internet masaood Linux - Wireless Networking 7 12-04-2003 08:51 PM


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

Main Menu
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