wireless wlan0 has ip but no internet access on suse 9.1
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.