LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2004, 02:01 PM   #1
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Rep: Reputation: 15
can ping to/from pcs on home network but not connect to internet


I had Redhat 9 working fine but had to remove it temporarily - I've reinstalled it and now can't connect to the internet. I can ping to/from the other pcs on my home network but not get onto the internet.

Nothing has changed in the rest of my network configuration - I've tried turning off the redhat firewall but still can't connect.

I'm new to linux so this must be something simple that I can't see?

stumblefingers
 
Old 04-08-2004, 02:08 PM   #2
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
How is your network setup. Is your Linux box acting as a router or do you have say a Linksys router. What are the outputs of these commands:

route -n
ifconfig -a


--tarballedtux
 
Old 04-08-2004, 02:12 PM   #3
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
Please detail the way you connect to the internet.
 
Old 04-08-2004, 02:45 PM   #4
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
I'm connected to the internet via a cable connection to a D-Link router - the laptop which I have redhat 9 on is now running a Knoppix boot CD and connecting to the internet fine - so I know it's not a hardware problem, but must be something wrong with my redhat 9 setup
 
Old 04-08-2004, 02:56 PM   #5
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
Can you ping both sides of your D-Link router?
 
Old 04-08-2004, 02:58 PM   #6
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tarballedtux
How is your network setup. Is your Linux box acting as a router or do you have say a Linksys router. What are the outputs of these commands:

route -n
ifconfig -a


--tarballedtux
Bear with me here - I'm new to linux

I opened gnome terminal and tried theaboe commands in both user and root - I get:

bash: route -n: command not found
bash: ifconfig -a: command not found

Where should I be trying these commands?

I've got a D-Link DI614+ router
 
Old 04-08-2004, 03:05 PM   #7
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by zymurgist
Can you ping both sides of your D-Link router?
I can ping my local network e.g. 192.168.0.100 and ping www.google.com at 66.102.9.99


So, yeah, both sides

Oh - and i'm using the default mozilla browser - but when i type www.google.com into it I get www.google.com could not be found. Please check the name and try again. And that's the response I get with any web address

Last edited by stumblefingers; 04-08-2004 at 03:08 PM.
 
Old 04-08-2004, 03:19 PM   #8
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
Make sure you have port 80 open on the router. Your router will have two IP addresses. One assigned by your ISP and the internal address (usually 192.168.0.1 or .1.1). The internal address is your default gateway for your network. If you can ping both of these addresses from inside of your network, you are routing packets.

netstat -r will give your routing table.
 
Old 04-08-2004, 03:42 PM   #9
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by zymurgist
Make sure you have port 80 open on the router. Your router will have two IP addresses. One assigned by your ISP and the internal address (usually 192.168.0.1 or .1.1). The internal address is your default gateway for your network. If you can ping both of these addresses from inside of your network, you are routing packets.

netstat -r will give your routing table.
I've not changed anything in the router and the problem laptop works fine with Knoppix

I can ping my IP address and 192.168.0.1

netstat gives me:


Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

Can't say that means anything to me - but hope it does to you
 
Old 04-08-2004, 03:56 PM   #10
zymurgist
Member
 
Registered: Jan 2003
Location: Long Island
Distribution: Redhat 8.0
Posts: 109

Rep: Reputation: 15
what is the IP/Network given to your router via your ISP? The second line in your routing table may be a problem. You can drop it using 'route del...'. You'll need to run that as su. (man route)
 
Old 04-08-2004, 04:36 PM   #11
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by zymurgist
what is the IP/Network given to your router via your ISP? The second line in your routing table may be a problem. You can drop it using 'route del...'. You'll need to run that as su. (man route)
I don't know linux or much about networking - but if the laptop connects to the web using a knoppix boot disk and I am using the default settings on Redhat 9, then doesn't this localise the problem to a config setting in rh 9? It was working fine until I removed and reinstalled it.
 
Old 04-08-2004, 09:55 PM   #12
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
There are many things that may have change. One being that when you load up RH9 the DHCP client doesn't run. Or the your NIC driver is not loaded at all. Or the software to handle the routing tables and interface configuration was not installed. Which is a strong possibility since route and ifconfig are "commands not found"

--tarballedtux
 
Old 04-09-2004, 11:35 AM   #13
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tarballedtux
There are many things that may have change. One being that when you load up RH9 the DHCP client doesn't run. Or the your NIC driver is not loaded at all. Or the software to handle the routing tables and interface configuration was not installed. Which is a strong possibility since route and ifconfig are "commands not found"

--tarballedtux
Thanks tarballedtux

That makes sense as to why it doesn't work -- at least this gives me a new area to investigate
 
Old 04-12-2004, 09:34 AM   #14
stumblefingers
LQ Newbie
 
Registered: Apr 2004
Posts: 21

Original Poster
Rep: Reputation: 15
one way to fix it

In the end I gave up - reformatted the drive and installed Mandrake 10 - this works fine
 
  


Reply



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
Can connect to Internet but can't PING any address 1kyle Linux - Wireless Networking 2 09-06-2005 06:41 PM
i can connect to the internet but i cant ping ?? linux juggler Fedora 16 12-11-2004 09:18 AM
Building a home network with 2 Linux PCs and a D-Link smokylux Linux - Networking 4 06-26-2004 09:09 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 09:18 AM
added second nic to network at home now cannot connect to internet gonus Linux - Networking 12 08-23-2002 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:31 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
Open Source Consulting | Domain Registration