Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > Can't browse the internet

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-15-2009   #1 (permalink)
Linux Engineer
 
valemon's Avatar
 
Join Date: Oct 2006
Location: Volos
Posts: 914
Send a message via MSN to valemon Send a message via Skype™ to valemon
Can't browse the internet

Hello friends

I am having an issue with wireless connection, using arch linux. I can get connected to the router, I get an internal ip but I cannot access the internet. Ping google outputs "connect : network unreachable" .
Code:
dmesg | grep ra0
outputs
Quote:
ra0: no IPv6 routers present
Using windows I can get connected without problem. Any suggestion??
__________________
Linux is like a Teepee, No Windows, No Gates, Only Apache Inside!
Arch/Moblin
Linux user #442041
valemon is offline  


Reply With Quote
Old 07-15-2009   #2 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 294
Have you disabled IPv6 and tried? In Arch I guess its under /etc/rc.conf?
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Old 07-15-2009   #3 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,199
I don't know of instances where loading the ipv6 module blocks internet access...usually it just slows it down, since it tries to get a ipv6 address first.

To prevent ipv6, I add to /etc/modprobe.d/modprobe.conf
Code:
install ipv6 /bin/true
Just to make sure that the module absolutely will not load.

Can you tell us more about your configuration? What program are you using to connect to the network? Are you using WEP or WPA encryption?

ra0 I think indicates you have a ralink card, right? Which driver are you using? Some ralinks require an extra firmware package, did you install that? What is the output of
Code:
dmesg | grep firmware
Wireless Setup - ArchWiki
reed9 is online now   Reply With Quote
Old 07-15-2009   #4 (permalink)
Just Joined!
 
Join Date: Jul 2009
Location: Michigan
Posts: 9
Send a message via AIM to Brain_Dead
Are you sure it is actually a problem with your wireless card. When you say that you can get an inside address i assume you mean that you recieve a local address. This means that you should be able to ping the router correct? If you can do this then it seems like it might be more of a dns problem then an actual wireless problem. What does your ifconfig / route / resolv.conf stuff look like.
Brain_Dead is offline   Reply With Quote
Old 07-17-2009   #5 (permalink)
Linux Engineer
 
valemon's Avatar
 
Join Date: Oct 2006
Location: Volos
Posts: 914
Send a message via MSN to valemon Send a message via Skype™ to valemon
So, some more information. I can generally connect and browse the internet with any router, my home router for example.
The problem is that now I am in vacations and I cant get connected. The router has no encryption, I get a local ip, I can ping the router, but I cant ping anything else.
Route seems like
Quote:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 2 0 0 ra0
Routers ip is 129.168.1
Thanks for your help so far
__________________
Linux is like a Teepee, No Windows, No Gates, Only Apache Inside!
Arch/Moblin
Linux user #442041
valemon is offline   Reply With Quote
Old 07-17-2009   #6 (permalink)
Just Joined!
 
Join Date: Jul 2009
Location: Michigan
Posts: 9
Send a message via AIM to Brain_Dead
First off the ip that you told me is not long enough. So you should repost that. But looking at your route command it looks like you have a static address probably for your wireless card in the 192.168.1.0 /24 network. This would work if you were on someones home network. But the routers ip is not in that network. So you need to do one of two things. Change your static IP to something in the range. This depends on what the subnet mask is for that router. Or you need to set your ra0 interface to get dhcp. That is what I believe but I would also like to see what your ifconfig and the routers actual ip is and its subnet mask before making to many assumptions.
Brain_Dead is offline   Reply With Quote
Old 07-17-2009   #7 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,199
Agreed, DHCP is probably the way to go for connecting to public networks.

Depending what method you're using to connect to the internet, there are a couple of ways to achieve this in Arch.

If you're using netcfg, you need to set up a network profile, and either run netcfg (as root) manually, or add it to your daemons array in /etc/rc.conf. Also remove or comment out the network daemon from your array.

For WICD or networkmanager, comment out the network daemon from your array and add wicd or networkmanager as appropriate.

In all cases, unless you are manually connecting to the network using iwconfig and dhcpcd, you should not initialize your network interfaces in /etc/rc.conf. You can do this by adding an exclamation point (!) in front of the interfaces and gateway.

Code:
# -----------------------------------------------------------------------

# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(!eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng !network wicd netfs crond)
reed9 is online now   Reply With Quote
Old 07-20-2009   #8 (permalink)
Linux Engineer
 
valemon's Avatar
 
Join Date: Oct 2006
Location: Volos
Posts: 914
Send a message via MSN to valemon Send a message via Skype™ to valemon
dhcp was enabled for ra0. I just had to change the default gateway. Thanks you all for your help.
__________________
Linux is like a Teepee, No Windows, No Gates, Only Apache Inside!
Arch/Moblin
Linux user #442041
valemon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



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






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2