LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-07-2004, 05:06 AM   #1
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Rep: Reputation: 15
Can't ping any PC outside subnet


I have 3 desktops A, B, and C.
Desktop A:
- OS: windows XP pro
- IP: 192.168.0.18 (Class C)

Desktop B:
- OS: Redhat Linux 9.0 ( 2 network cards)
- IP: 192.168.0.72 (Class C)
- IP: 192.168.1.1 (Class C)

Desktop C:
- OS: Windows XP pro
- IP: 192.168.1.73 (Class C)

These 3 desktops are connected to each other. A connect to B with one hub. B connect to C with another hub. B acts as a router with 2 network cads. Below is the routing table printed from B' s "route -n" command:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0

From A, I can ping B.
From C, i can ping B.
But from A, i can't ping C and vice versa.

I have enabled ip4 forwarding in /etc/sysctl.conf and added aliases to my 2 network cards.
I don't have any firewall rules set on my linux box.

So why i can't ping from A to C and vice versa?

Thanks,
 
Old 10-07-2004, 05:55 AM   #2
yuray
Member
 
Registered: Apr 2003
Location: Russia, Khotkovo
Distribution: Debian
Posts: 146

Rep: Reputation: 15
Do you have default route to B setup on A and C ?
 
Old 10-07-2004, 08:48 PM   #3
mrpc_cambodia
Member
 
Registered: Jun 2004
Posts: 131

Original Poster
Rep: Reputation: 15
After setting A and C default route to B, it works now.

Thanks alot.
 
  


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 ping subnet one way, but not the other ghight Linux - Networking 4 10-14-2005 09:00 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
Static IP on Server, cannot ping outside of subnet. icesickle Linux - Networking 2 04-01-2004 08:21 PM
Can IP from different subnet be configured on another subnet russell Linux - Networking 1 08-23-2002 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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