LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-29-2002, 05:59 PM   #1
spato
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Rep: Reputation: 0
RH 7.2 - Can't ping other hosts


I've finally got my network card to work in RH 7.2 (Intel EtherExpress) and it seems to be working fine (ie. initialised at boot time, listed in ifconfig, modules.conf, ioports, interrupts).

On this RH7.2 box, I can ping myself(eth0=192.168.0.2) no probs.

On my win2k box (the only other machine in my home network), I can also ping myself (192.168.0.1) but they can't seem to ping each other (host unreachable).

The lights on my hub show that the connections from these machines are up so I suspect it's a rounting problem but not sure how to correct it using Network Configuration in GNOME.

Any help will be welcome (or tell me what other infor to post if that helps)


Thanks
 
Old 04-29-2002, 07:38 PM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
A few things to check:

-Type "route" (no quotes) in a term window and post the output.

-Is the hub a plain hub, or is it a broadband Internet gateway/router? If it's the latter, you need to enter its IP as the default gateway.

-If connected to the Internet, can you surf form either box?

-If you're doing any firewalling, make sure it isn't blocking the ping requests.

-Do both machines have an entry in /etc/hosts?
 
Old 05-02-2002, 03:32 AM   #3
spato
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Ok
1)Here is the output from route:

Kernel IP routing table
Destination--Gatewy--Genmask---------Flgs--Met--Ref--Use--Iface
192.168.0.0--bob------255.255.255.0--UG------0----0---0----eth0
192.168.0.0--*---------255.255.255.0--U--------0----0---0----eth0
127.0.0.0-----*---------255.0.0.0---------U--------0---0----0----lo
default--------bob------0.0.0.0------------UG------0----0---0----eth0

(added dashes to keep the formatting)

Note: Bob is my win2k box, Molly is my Linux72 box.

2)Hub is stock standard hub (not router/switch etc)

3)I have a modem attached to my win2k box and can surf the net but my linux box can't.

4) No firewalling switched on at all

5)Linux hosts:

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.2 molly molly
192.168.0.1 bob bob
127.0.0.1 localhost.localdomain localhost

How do you check this on win2k machine?


Thanks

Last edited by spato; 05-02-2002 at 03:40 AM.
 
Old 05-02-2002, 10:37 AM   #4
Baver
LQ Newbie
 
Registered: May 2002
Location: Ontario
Distribution: RH7.2 but am switching to lfs
Posts: 4

Rep: Reputation: 0
try

route add 192.168.0.1 gw 192.168.0.2

192.168.0.1 being the destination network (your windows box) and 192.168.0.2 being the NIC it's on on your linuxbox.
 
Old 05-02-2002, 10:48 PM   #5
spato
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Didn't work. I now think it's my win 2k box.(Local Area Network says no pakets sent/received and the hub light for this connect doesn't flash when issue a ping command.

Thanks anyway.
 
Old 05-03-2002, 01:08 AM   #6
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by Baver
route add 192.168.0.1 gw 192.168.0.2
192.168.0.1 being the destination network
No. 192.168.0.1 is not the destination network, it is the address of another node on the 192.168.0.0. network (in this case, the Windows box).

Quote:
Originally posted by Baver
and 192.168.0.2 being the NIC it's on on your linuxbox
Well yes, that is the Linux box's NIC's address on the LAN, but it is not the gateway address to the outside world; the gw addr would be the address of the Win box's NIC (192.169.0.1). As spato said though, it sounds like more work had to be done on the Win box's side to pass requests from the LAN (via the NIC in the Win box) to the modem, and then on to the outside world.


Spato:

I don't know if you can reference host names (as opposed to IPs) in your routing table, but my guess is not. Even if it is do-able, I'd stick with pure IP references in the routing table.
Here's the output of route from one of the Linux boxes on my LAN:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref
    Use Iface
192.168.0.0     *               255.255.255.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
[root@penguinbox~]#
-The 192.168.0.0 network entry can be generated by:
route add -net 192.168.0.0
(although this is doesn't usually need to be explicitly specified, as it seems to be derived from your other entries)

-The "default 192.168.0.1" entry is the address of my router, which you can specify by:
route add default gw <LAN-side IP of router>. Since your Linux box seems to be getting it's Net access though the Win box and it s modem, I would think that the gw entry in the Linux box's routing table should point to the IP of the NIC in the Win box.

Last edited by DMR; 05-03-2002 at 01:18 AM.
 
Old 05-03-2002, 03:08 AM   #7
growler
Member
 
Registered: Apr 2002
Posts: 84

Rep: Reputation: 15
I think your win2k box is locking down those ports, but I don't know how to check that for win2k. basically, MS has decided that you shouldn't be pingable.... I know that XP gives my friends weird troubles in that regard. perhaps win2k is similar.

try running an http server on your linux box, and see if your win2k box can bring it up. or, start a telnet server, and try to telnet into your linux box.
 
Old 05-03-2002, 10:22 AM   #8
Baver
LQ Newbie
 
Registered: May 2002
Location: Ontario
Distribution: RH7.2 but am switching to lfs
Posts: 4

Rep: Reputation: 0
DMR

ahh, it seems i have things backwards. anyways, this is how i have things on my server, with ip masquerading on ppp0.


ok... hmm. I have a net set up with 3 win boxes using 10.0.0.5, 10.0.0.6, and 10.0.0.7, and three nics in my linuxbox using 10.0.0.1, 10.0.0.2, and 10.0.0.3 and until i execute

route add 10.0.0.1 gw 10.0.0.5
route add 10.0.0.2 gw 10.0.0.6
route add 10.0.0.3 gw 10.0.0.7

none of the computers can ping any other computer, including the server, or anything on the internet untill i do this.

Last edited by Baver; 05-03-2002 at 10:24 AM.
 
Old 05-04-2002, 05:19 PM   #9
spato
LQ Newbie
 
Registered: Apr 2002
Posts: 8

Original Poster
Rep: Reputation: 0
Growler
U forgot that I can't ping from win box to linux box either.Also, I didn't have this prob on another LAN (with win2k box (same ver) and RH72 box) so I'm fairly sure its my Win2k NIC.

DMR
Thanks.I'll replace NIC in win2k box first tho and then c what happens.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Can't ping localhost (/etc/hosts and DNS are OK) Mr. Gone Linux - Networking 9 10-16-2004 03:05 PM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
Cannot ping internet hosts nikhiljosh Linux - General 3 12-10-2003 09:43 AM
Gateway issues - can't ping certain hosts on attached network drgowans Linux - Networking 1 09-24-2003 02:59 AM

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

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