LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-26-2013, 05:46 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
could not connect internet


My box is RHEL "Linux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 "

And network is,

Quote:
[root@localhost 문서]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:5A:33:F2:92
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::240:5aff:fe33:f292/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5014 (4.8 KiB) TX bytes:5919 (5.7 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:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1920 (1.8 KiB) TX bytes:1920 (1.8 KiB)
I opened firefox but doesn't browser web page.
 
Old 05-26-2013, 06:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Please provide more useful information. What does "route -n" say? Can you ping google.com? can you ping 8.8.8.8? Do you need to use a proxy?
 
1 members found this post helpful.
Old 05-26-2013, 09:13 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
I want to give many infomation as possible, but I am not an expert.


The result is here.

Quote:
[root@localhost _work]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost _work]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=50 time=37.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=50 time=37.5 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=50 time=36.9 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2894ms
rtt min/avg/max/mdev = 36.909/37.147/37.529/0.3
 
Old 05-26-2013, 12:58 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,829

Rep: Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409Reputation: 2409
have you tried turning the network off and restarting it

i find that on a cable connection , from time to time i NEED to press the reset button on the modem

then run
Code:
ifdown eth0 
--- then run ---
ifup eth0
 
Old 05-26-2013, 01:38 PM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
The results is here.

Quote:
[root@localhost _work]# ifdown eth0
Device state: 3 (disconnected)
[root@localhost _work]# ifup eth0
Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1
[root@localhost _work]#
but firefox still counld not browse "google.com".

Quote:
Unable to connect

Firefox can't establish a connection to the server at www.google.com.

* The site could be temporarily unavailable or too busy. Try again in a few
moments.

* If you are unable to load any pages, check your computer's network
connection.

* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
 
Old 05-26-2013, 02:45 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,128
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi

what dose ping www.google.com return

If nothing ping 173.194.78.105
 
Old 05-26-2013, 08:09 PM   #7
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
"ping 173.194.78.105" works, but browsing "173.194.78.105" still doesn't work.
 
Old 05-27-2013, 10:18 AM   #8
devnull1993
LQ Newbie
 
Registered: Jan 2013
Distribution: red hat, ubuntu
Posts: 10

Rep: Reputation: 2
Please,

Could you post /etc/resolv.conf?

do you have any entry with ip address to dns resolvers?

# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver x.x.x.x
search domain.com
 
1 members found this post helpful.
Old 05-27-2013, 10:35 AM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,128
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi

Are you behind a router can your browser acsess that e,g 192.168.0.1?

Can you disable firewall

Last edited by spiky0011; 05-27-2013 at 10:38 AM.
 
1 members found this post helpful.
Old 05-28-2013, 09:00 AM   #10
lhietpas
LQ Newbie
 
Registered: Mar 2013
Location: Wisconsin,USA
Distribution: Mint
Posts: 8

Rep: Reputation: Disabled
This may seem simple, but I also ran into this issue and after restarting the network services after changing the config files it fixed my problems.
 
1 members found this post helpful.
Old 05-29-2013, 01:07 PM   #11
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
devnull1993/

My "/etc/resolv.conf" is this.

Quote:
# Generated by NetworkManager
nameserver 168.126.63.1
spiky0011/

I tried this, but no luck.
Quote:
# service iptables save
# service iptables stop
# chkconfig iptables off
lhietpas/

Please let me know "how to change the config files".
 
Old 05-29-2013, 01:18 PM   #12
lhietpas
LQ Newbie
 
Registered: Mar 2013
Location: Wisconsin,USA
Distribution: Mint
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by windstory View Post
devnull1993/

My "/etc/resolv.conf" is this.



spiky0011/

I tried this, but no luck.


lhietpas/

Please let me know "how to change the config files".
Check the configurations...

vi /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/sysconfig/network

And restart the interfaces...

/etc/init.d/network restart
 
1 members found this post helpful.
Old 05-29-2013, 03:27 PM   #13
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
These are the files you asked.

/etc/sysconfig/network-scripts/ifcfg-eth0

Quote:
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
HWADDR=00:40:5A:33:F2:92
IPADDR=192.168.0.3
PREFIX=24
GATEWAY=192.168.0.1
DNS1=168.126.63.1
/etc/sysconfig/network
Quote:
NETWORKING=yes
HOSTNAME=localhost.localdomain
And "/etc/init.d/network restart", but no luck.
 
Old 05-29-2013, 03:32 PM   #14
lhietpas
LQ Newbie
 
Registered: Mar 2013
Location: Wisconsin,USA
Distribution: Mint
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by windstory View Post
These are the files you asked.

/etc/sysconfig/network-scripts/ifcfg-eth0



/etc/sysconfig/network


And "/etc/init.d/network restart", but no luck.
Try service network restart and then reboot and see what happens. Everything is looking good.
 
1 members found this post helpful.
Old 05-29-2013, 03:35 PM   #15
devnull1993
LQ Newbie
 
Registered: Jan 2013
Distribution: red hat, ubuntu
Posts: 10

Rep: Reputation: 2
- Check your proxy connection on firefox : Edit -> Preferences -> Advanced -> Network -> Connection Settings -> No proxy

- Check this on a shell: $ wget google.com

--2013-05-29 21:32:56-- http://google.com/
Resolviendo google.com (google.com)... 173.194.34.193, 173.194.34.206, 173.194.34.195, ...
Conectando con google.com (google.com)[173.194.34.193]:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://www.google.com/ [siguiente]
--2013-05-29 21:32:56-- http://www.google.com/
Resolviendo www.google.com (www.google.com)... 173.194.41.212, 173.194.41.208, 173.194.41.210, ...
Conectando con www.google.com (www.google.com)[173.194.41.212]:80... conectado.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://www.google.es/ [siguiente]
--2013-05-29 21:32:57-- http://www.google.es/
Resolviendo www.google.es (www.google.es)... 173.194.41.215, 173.194.41.223, 173.194.41.216, ...
Conectando con www.google.es (www.google.es)[173.194.41.215]:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: no especificado [text/html]
Grabando a: “index.html.1”

[ <=> ] 11.532 --.-K/s en 0,01s

2013-05-29 21:32:57 (1,10 MB/s) - “index.html.1” guardado [11532]


If you have an index.html file saved then the problem is in firefox.
 
  


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
[SOLVED] can't connect to tightvncserver over internet..but can connect in LAN BHABANIPRASADPATI Linux Mint 5 06-14-2011 11:00 AM
Connect my netbook to wireless but it wont connect to the internet but it did . Haydn456MJW Linux - Newbie 7 01-26-2011 06:56 PM
Kubuntu - Can't connect to the internet, but can connect to the LAN KellyT Linux - Networking 1 11-12-2009 05:17 AM
Able to connect to default Gateway, Unable to connect to internet Dumb.Coder Linux - Newbie 11 04-14-2009 05:22 AM
connect to internet trough wireless others connect to me with lan Amir Menesy Linux - Wireless Networking 1 11-13-2007 09:28 PM


All times are GMT -5. The time now is 12:19 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