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

16th July 2005, 10:44 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 26

|
|
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.
|

16th July 2005, 10:58 PM
|
|
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!
|

16th July 2005, 11:14 PM
|
|
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.
|

16th July 2005, 11:28 PM
|
|
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
|

16th July 2005, 11:35 PM
|
|
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.
Last edited by eric_x; 16th July 2005 at 11:39 PM.
|

16th July 2005, 11:45 PM
|
|
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.
|

16th July 2005, 11:51 PM
|
|
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
|

16th July 2005, 11:54 PM
|
|
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.
|

17th July 2005, 12:02 AM
|
|
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.
|

23rd July 2005, 11:18 AM
|
 |
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.
|

11th April 2006, 11:47 PM
|
|
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.
|

12th April 2006, 03:11 PM
|
|
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
|

12th April 2006, 03:17 PM
|
|
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>
|

12th April 2006, 08:22 PM
|
|
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
|

13th April 2006, 01:13 AM
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 15:37 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|