LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-30-2008, 10:00 AM   #1
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Rep: Reputation: 30
Can't get Internet Access


I've installed Fedora 9 on my previously Fedora 7 machine and I can't seem to get internet access through the browser.

When I open up FireFox, I get the message:
"Failed to Connect" Firefox can't establiash a connection to the server...."

I've tried going to multiple sites, and I get the same message.

The machine is configured with a static IP address on an internal, private network. I am accessing LinuxQuestions from a laptop that is on this same private network (10.3.0.X).

The gateway address is 10.3.0.254 and the DNS Servers are 10.3.0.143 and 10.3.0.145.

I've set these IP addresses for the Fedora machine with a static IP of 10.3.0.99.

I can ping the loopback address 127.0.0.1 without a problem as well as the DNS servers and the gateway address. I tried to ping an address "www.hotmail.com" but I receive the message "Network is unreachable"

Just to eliminate the variable, I've put SELinux into permissive mode and turned off the Firewall, but I still receive the same "Failure" browser message.

Can anyone direct me as to what I should troubleshoot next?
 
Old 12-30-2008, 10:48 AM   #2
quangtin3
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
By the information you provided, it's seem that physic link between your computer and Gateway OK as well as DNS Server, and Internet access of your network. I'm thinking about some routing miss configured. Could you post the result of route and ifconfig command?

Quote:
$route

$ifconfig

Last edited by quangtin3; 12-30-2008 at 10:50 AM.
 
Old 12-30-2008, 11:03 AM   #3
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Here are the results:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.3.0.0        *               255.255.255.0   U     0      0        0 eth0
eth0      Link encap:Ethernet  HWaddr 00:08:74:14:3D:DA  
          inet addr:10.3.0.99  Bcast:10.3.0.255  Mask:255.255.255.0
          inet6 addr: fe80::208:74ff:fe14:3dda/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9537 errors:0 dropped:0 overruns:0 frame:0
          TX packets:269 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:784044 (765.6 KiB)  TX bytes:18454 (18.0 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:121860 (119.0 KiB)  TX bytes:121860 (119.0 KiB)
 
Old 12-30-2008, 12:43 PM   #4
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Strange.

All seems to be right with the world now. I deactivated and reactivated the NIC card through the Network Configuration GUI and it seems to be working now.

Go figure.
 
Old 12-30-2008, 01:07 PM   #5
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Now do the route command again

Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.2.1     0.0.0.0         UG    0      0        0 eth0
If default route isn't set then you'll find it doesn't work If you ever need to (although dhclient takes care of this) just do:

sudo route add default gw $GW-IP-ADDRESS

where $GW-IP-ADDRESS is your routers IP.
 
Old 12-30-2008, 01:14 PM   #6
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Lost my connection again.

This could be a hardware issue.

Or, I notice that the Network Connection icon (the two computers in the upper right hand corner) has a red x on it.

I right click it and I see that "Enable Networking" is checked, but when I click "Edit Connections", and then under the "Wired" tab, I do not see any of my IP address information.

When I run the ifconfig and route command, my correct IP information is there.

Code:
eth0      Link encap:Ethernet  HWaddr 00:08:74:14:3D:DA  
          inet addr:10.3.0.99  Bcast:10.3.0.255  Mask:255.255.255.0
          inet6 addr: fe80::208:74ff:fe14:3dda/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1054 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:85455 (83.4 KiB)  TX bytes:8890 (8.6 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3706 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3706 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:185460 (181.1 KiB)  TX bytes:185460 (181.1 KiB)

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.3.0.0        *               255.255.255.0   U     0      0        0 eth0
link-local      *               255.255.0.0     U     0      0        0 eth0
default         10.3.0.254      0.0.0.0         UG    0      0        0 eth0
Also, Firefox is displaying the "Offline" message now.

Last edited by tekmann33; 12-30-2008 at 01:15 PM.
 
Old 12-30-2008, 01:29 PM   #7
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Does it all come back if you do:

Code:
sudo dhclient eth0
?
 
Old 12-31-2008, 02:06 AM   #8
quangtin3
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
Hi tekmann33,

In your post number #3 in this thread, your routing table miss default routing line so your computer cannot connect to other network (network that difference with 10.3.0.0) as arckane's post no#5

By the time of your post number #6 in this thread, Did you can ping DNS and Gateway? If you not did, just forget about it.

If you still cannot access internet, follow me:

- In fedora 9, Your connection is managed by two difference services: "network" and "Network Manager", you can stop one of them. Here we will disable "Network Manager" in all Run Level and start "Network". To do so, go "System/Administration/Services"

- Reconfigure network in root:
Quote:
ifconfig eth0 down
ifconfig eth0 up

ifconfig eth0 10.3.0.99 netmask 255.255.255.0 broadcast 10.3.0.255

route add default gw 10.3.0.254

echo 10.3.0.143 > /etc/resolv.conf
echo 10.3.0.145 >> /etc/resolv.conf
and post the result of
Quote:
ifconfig
route
traceroute google.com
Even after that, you still cannot access internet, run "setup" in root to reconfigure all your network configuration
Quote:
#setup

Last edited by quangtin3; 12-31-2008 at 02:17 AM.
 
Old 12-31-2008, 10:47 PM   #9
tekmann33
Member
 
Registered: Nov 2006
Posts: 188

Original Poster
Rep: Reputation: 30
Yes, the problem did seem to be the Network Manager. Disabling it removed the problem.

Thanks a bunch

Last edited by tekmann33; 12-31-2008 at 10:48 PM.
 
  


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
vsftp - Can access FTP within office network BUT cant access via Internet! kokfei77 Red Hat 2 03-07-2012 08:24 PM
internet server that use a prepaid account to access the internet elgieb1 Linux - General 0 02-20-2007 12:59 AM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 01:33 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 11:28 AM
Connection to access point OK, but cannot access the network/internet Nymphetamine Linux - Wireless Networking 29 01-13-2005 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration