Networking Forums

Networking Forums > Computer Networking > Linux Networking > Two RedHat 9 PCs lan. Can't ping each other

Reply
Thread Tools Display Modes

Two RedHat 9 PCs lan. Can't ping each other

 
 
patrick carosso
Guest
Posts: n/a

 
      10-06-2004, 08:25 PM
Hello,
I'm trying to build a mini-lan with the two PCs I have at home.

-I connected the two ethernet cards with a crossover cable
-I assigned to the PC_1 the address 192.168.0.1 (ifconfig from command line)
-I assigned to the PC_2 the address 192.168.0.2 (ifconfig from command line)

Here's a fragment of what I see with ifconfig:


PC_1:
eth0 Link encap:Ethernet HWaddr 00:0D:87:06:64:A7
inet addr:192.168.0.1 Bcast:192.168.255.255 Mask:255.255.0.0
PC_2:
eth0 Link encap:Ethernet HWaddr 00:08:9B:80:88:41
inet addr:192.168.0.2 Bcast:192.168.255.255 Mask:255.255.0.0

And here's what I see with route:

PC_1
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.0.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

PC_2
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.0.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




If I ping 192.168.0.1 from PC_2 I get:

From 192.168.0.2 : destination host unreachable


while tcpdump on PC_1 says:

22:08:03.078106 arp who-has 192.168.0.1 tell 192.168.0.2
22:08:03.078138 arp reply 192.168.0.1 is-at 0:d:87:6:64:a7

Following some replies given to a somehow similar post, I tried
iptables -F on both machines, but it didn't work.


How can I fix the problem?


Thank you!

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      10-06-2004, 08:37 PM
On Wed, 06 Oct 2004 20:25:51 GMT, patrick carosso wrote:
> Hello,
>
> while tcpdump on PC_1 says:
>
> 22:08:03.078106 arp who-has 192.168.0.1 tell 192.168.0.2
> 22:08:03.078138 arp reply 192.168.0.1 is-at 0:d:87:6:64:a7


Well now you know your hardware is talking between boxes.

Humor me, on pc 2
edit this file with /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0

and in /etc/sysconfig/network
NETWORKING=yes
GATEWAY=192.168.0.1

Now, do a
service network restart
ping -c 1 -1 192.168.0.1

I assume firewalls are disabled on both boxes.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When Client Ping DC not respond,but when DC ping clients they resp ahmad Windows Networking 3 07-17-2007 07:44 PM
Redhat Linux 8 and Redhat Enterprise Linux 4 printer not configure Niraj Linux Networking 0 12-06-2006 04:51 AM
Can't get PCI Network Card to Work - Knoppix 4.0.2/Redhat 7.2/Redhat 8.0 deja@chronofish.com Linux Networking 0 11-20-2005 05:02 PM
Can't ping into or outof Redhat box Geoff Linux Networking 22 02-25-2004 07:43 PM
Redhat 9: Can ping, Can lookup names, Can ftp, Can Not browse http... 2boxers_at_comcast_dot_net Linux Networking 6 11-19-2003 05:15 PM



1 2 3 4 5 6 7 8 9 10 11