LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't get Internet Access (https://www.linuxquestions.org/questions/linux-newbie-8/cant-get-internet-access-693862/)

tekmann33 12-30-2008 09:00 AM

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?

quangtin3 12-30-2008 09:48 AM

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

tekmann33 12-30-2008 10:03 AM

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)


tekmann33 12-30-2008 11:43 AM

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.

arckane 12-30-2008 12:07 PM

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.

tekmann33 12-30-2008 12:14 PM

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.

arckane 12-30-2008 12:29 PM

Does it all come back if you do:

Code:

sudo dhclient eth0
?

quangtin3 12-31-2008 01:06 AM

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

tekmann33 12-31-2008 09:47 PM

Yes, the problem did seem to be the Network Manager. Disabling it removed the problem.

Thanks a bunch


All times are GMT -5. The time now is 10:58 AM.