Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th July 2005, 10:44 PM
eric_x Offline
Registered User
 
Join Date: Jul 2005
Posts: 26
Post Wireless fedora computer cannot access internet (but can access network) - SOLVED

Recently, I installed FC4 on an old Compaq Presairo 1200z. Everything setup fine, except internet. First of all, it didn't recognise the built-in lan card, so I could not get internet through hard-wiring. But that is not my problem, because it is a laptop, and I wanted wireless internet anyways. So I used the linksys WPC11 v.3 wireless network card to try to access the internet (which had worked with windows installed). The card was recognised by fedora, and I configured it with my wireless network (encription/wep off), but still, no internet. I did ifconfig or iwconfig, and I had an assigned IP address (as the routers use DHCP). In fact, I could access the routers and computers on my network fine, that is, anything 192.168.1.x. I successfuly setup two windows computers on the same wireless network, with no problems. So, I don't think that the problem is with the router, I think it has something to do with the network card. Any help would be appreciated. If you need any more information, ask, and I will answer ASAP.

Last edited by eric_x; 17th July 2005 at 12:10 AM.
Reply With Quote
  #2  
Old 16th July 2005, 10:58 PM
pieter Offline
Registered User
 
Join Date: Jul 2005
Posts: 12
You say you have connection to devices in your own subnet but not to the internet (e.g. you can ping your internetrouter from your laptop).

It probably means that your card is ok but that your default gateway is not correctly configured. If you use static address (ifconfig) instead of dhcp (dhclient) then this is very likely.

Check your default gateway settings on your laptop: #route
If not correctly then add one with: #route add default gw x.x.x.x with x.x.x.x pointing to your internet-router.

If that is all ok then you could also check your subnetmask on your notebook
good luck!
Reply With Quote
  #3  
Old 16th July 2005, 11:14 PM
eric_x Offline
Registered User
 
Join Date: Jul 2005
Posts: 26
This is what I get for the #route command:

[eric@localhost ~]$ /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

The default gateway looks right, but the subnet mask ( subnet mask = genmask ?) should be 255.255.255.0, I think. I don't know how to change that though.
Reply With Quote
  #4  
Old 16th July 2005, 11:28 PM
pieter Offline
Registered User
 
Join Date: Jul 2005
Posts: 12
Eric,

Your routing table looks ok. The mask is 0.0.0.0 is because 192.168.1.1 it is a host-address (thats normal). (And I suppose 192.168.1.1 is your router to the internet. )

You can still check your subnetmask from your laptop (ifconfig eth0). It should be 255.255.255.0.

What is the ping reply if you ping to an outside host?
Or try a traceroute
Reply With Quote
  #5  
Old 16th July 2005, 11:35 PM
eric_x Offline
Registered User
 
Join Date: Jul 2005
Posts: 26
The subnet mask checks out to be ok with ifconfig, but when I try to ping or traceroute www.google.com, it says "unknown host"

edit: I have a slightly abnormal network, so I have included a crude scetch of the network. I dont think that the network is the problem, but anything is possible. Also, I am accessing the internet through two routers (or a router and a gateway), but once I set the second router up, I had no problem accessing the internet with windows, wirelessly or not.
Attached Thumbnails
Click image for larger version

Name:	network.PNG
Views:	386
Size:	19.8 KB
ID:	5405  

Last edited by eric_x; 16th July 2005 at 11:39 PM.
Reply With Quote
  #6  
Old 16th July 2005, 11:45 PM
pieter Offline
Registered User
 
Join Date: Jul 2005
Posts: 12
Unknown host means probably a DNS problem.
You can ping succesfully by ip address (ping 216.239.59.104) ?

Check /etc/resolv.conf It should have "nameserver 192.168.1.1" (without # )or some other address pointing to your nameserver.
Reply With Quote
  #7  
Old 16th July 2005, 11:51 PM
eric_x Offline
Registered User
 
Join Date: Jul 2005
Posts: 26
Pinging 216.239.59.104 works. By the way, how do you ping, like, 3 times, instead of pinging forever?

Also, the only thing in resolv.conf is "search localdomain". Should I replace that with nameserver 192.168.1.1?

Last edited by eric_x; 16th July 2005 at 11:51 PM. Reason: spelling
Reply With Quote
  #8  
Old 16th July 2005, 11:54 PM
pieter Offline
Registered User
 
Join Date: Jul 2005
Posts: 12
ping -c 3 x.x.x.x
yes you should replace that line, it is probably the cause.
Reply With Quote
  #9  
Old 17th July 2005, 12:02 AM
eric_x Offline
Registered User
 
Join Date: Jul 2005
Posts: 26
That fixed it! I can now ping, access the internet, and update the computer! Thanks for your help, I would have never been able to fix the computer otherwise.
Reply With Quote
  #10  
Old 23rd July 2005, 11:18 AM
AlmereLinux's Avatar
AlmereLinux Offline
Registered User
 
Join Date: Jul 2005
Location: Almere, the Netherlands
Age: 37
Posts: 11
Pieter,

I had similar problems, your step by step answers helped to solve my networkproblems as well. Thank you very much.
Reply With Quote
  #11  
Old 11th April 2006, 11:47 PM
gking2224 Offline
Registered User
 
Join Date: Apr 2006
Location: Tunbridge Wells, UK
Posts: 6
Ditto - I had exactly the same situation and this thread helped enormously. Thanks!!

One extra thing I found was that editing /etc/resolv.conf to include 'nameserver <ip.of.router>' didn't solve the nslookup problem. Consequently, I could only get it to work by enabling DHCP, rather than static IP address.

The solution for me was to add the following to the Route tab of the configuration of my wireless device in Network Configuration:
Destination Network Prefix(Netmask) Gateway
0.0.0.0 0.0.0.0 <ip.of.router>

Oh, and I have to disable my wired lan from activating on bootup, as even though it's not connected it still tries to use that in preference to my wireless adapter.
Reply With Quote
  #12  
Old 12th April 2006, 03:11 PM
gummybearx Offline
Registered User
 
Join Date: Apr 2006
Posts: 16
i have a problem similar to this, but i have wlan0 and eth0 and the comp keeps trying to look for the internet through eth0, but wlan0 is where it should be looking. when i ping 192.168.1.1, it tries to ping MY router, which is hooked up to the eth0, and not the remote router(diff router connected to wlan0)
when eth0 is disabled i can see the router that i want(the wirreless)

and i cant disable eth0 because it is a headless server and i have to ssh into through hy local router on eth0

but my ne3twork looks very similar to the pic above

any suggestions would be fantabulous
Reply With Quote
  #13  
Old 12th April 2006, 03:17 PM
gking2224 Offline
Registered User
 
Join Date: Apr 2006
Location: Tunbridge Wells, UK
Posts: 6
You should be able to stop eth0 from activating at boot-time by editing
/etc/sysconfig/network-scripts/ifcfg-eth0
and setting ONBOOT=no

and deactivate eth0 now by typing: ifdown eth0

from <a href="http://www.linuxheadquarters.com/howto/networking/networkconfig.shtml">here</a> and <a href="http://www.siliconvalleyccie.com/linux-hn/network-linux.htm">here</a>
Reply With Quote
  #14  
Old 12th April 2006, 08:22 PM
gummybearx Offline
Registered User
 
Join Date: Apr 2006
Posts: 16
yeah but i need both up so i can ssh into it and route the signal from wlan0 to eth0 and out
Reply With Quote
  #15  
Old 13th April 2006, 01:13 AM
dshaw256 Offline
Registered User
 
Join Date: Mar 2006
Location: Virginia
Age: 59
Posts: 246
Quote:
Originally Posted by gking2224
One extra thing I found was that editing /etc/resolv.conf to include 'nameserver <ip.of.router>' didn't solve the nslookup problem. Consequently, I could only get it to work by enabling DHCP, rather than static IP address.

The solution for me was to add the following to the Route tab of the configuration of my wireless device in Network Configuration:
Destination Network Prefix(Netmask) Gateway
0.0.0.0 0.0.0.0 <ip.of.router>
It looks to me like you had two problems going. Once you got your name server right, you ran into the lack of a default route to the internet. You need both.

Dave
__________________
Dave Shaw
Registered Linux user #412525
Dell Latitude D610 / FC13
dshaw256@centurylink.net

no problem is so bad that a moron with root can't make it much worse
Reply With Quote
Reply

Tags
access, fedora, internet, network, wireless

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 10 cannot access the internet with wireless(intel pro wireless 2200bg) Squires Servers & Networking 0 3rd March 2009 05:49 AM
Disable Internet access to a user and enable remote access to the machine for the use santhoshsd Security and Privacy 0 11th October 2008 04:08 PM
Can access the network but not the internet HailandKill Servers & Networking 5 19th December 2005 04:15 AM
Can access network but not internet lowriderdog37 Servers & Networking 6 22nd September 2005 02:54 AM


Current GMT-time: 15:37 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat