Networking Forums

Networking Forums > Computer Networking > Linux Networking > Peer to peer network with two machines, ping doesn't work

Reply
Thread Tools Display Modes

Peer to peer network with two machines, ping doesn't work

 
 
linuxquestion@yahoo.com
Guest
Posts: n/a

 
      02-01-2004, 04:28 AM
Dear experts,

I'm trying to get my two Redhat machines to talk to each other.

They are configured with static IP addresses:

10.0.0.1 red.testrac.com red
10.0.0.2 white.testrac.com white

No DHCP. I also don't have DNS running anywhere.

I thought that the hosts file could substitute for DNS.
But neither machine can find (ping) the other one.

I'll include output from files, and commands.
What am I missing here?

Thanks a lot

-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------
-------------------------------------------------------------------------

from red, 10.0.0.1:

Commands:


ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:261 errors:0 dropped:0 overruns:0 frame:0
TX packets:261 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:17394 (16.9 Kb) TX bytes:17394 (16.9 Kb)


hostname
red

domainname
(none)

hostname -d
testrac.com

dnsdomainname
testrac.com

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface

10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.255.255.254 0.0.0.0 UG 0 0 0 eth0


ping -c 1 10.0.0.1

PING 10.0.0.1 (10.0.0.1) from 10.0.0.1 : 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=0 ttl=255 time=17 usec

--- 10.0.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.017/0.017/0.017/0.000 ms


ping -c 1 white

PING white.testrac.com (10.0.0.2) from 10.0.0.1 : 56(84) bytes of data.
From red.testrac.com (10.0.0.1): Destination Host Unreachable

--- white.testrac.com ping statistics ---
1 packets transmitted, 0 packets received, +1 errors, 100% packet loss


host red
;; connection timed out; no servers could be reached


host white
;; connection timed out; no servers could be reached


------------
Files:


cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.0.0.1 red.testrac.com red

10.0.0.2 white.testrac.com white



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

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.0.0.1
NETMASK=255.0.0.0
GATEWAY=10.255.255.254


cat /etc/resolv.conf
nameserver 10.0.0.1

cat /etc/host.conf
order hosts,bind


cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=red





---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------

from white, 10.0.0.2

---------------------------
Commands:

ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:E9:E9:34:37
inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:126 (126.0 b)
Interrupt:11 Base address:0xdc80 Memory:ff6fe000-ff6fe038

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:234 errors:0 dropped:0 overruns:0 frame:0
TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15282 (14.9 Kb) TX bytes:15282 (14.9 Kb)

domainname
(none)

dnsdomainname
testrac.com

hostname
white

hostname -d
testrac.com

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.255.255.254 0.0.0.0 UG 0 0 0 eth0


ping -c 1 10.0.0.1

PING 10.0.0.1 (10.0.0.1) from 10.0.0.2 : 56(84) bytes of data.
From 10.0.0.2: Destination Host Unreachable

--- 10.0.0.1 ping statistics ---
1 packets transmitted, 0 packets received, +1 errors, 100% packet loss


ping -c 1 red
PING red.testrac.com (10.0.0.1) from 10.0.0.2 : 56(84) bytes of data.
From white.testrac.com (10.0.0.2): Destination Host Unreachable

--- red.testrac.com ping statistics ---
1 packets transmitted, 0 packets received, +1 errors, 100% packet loss


host red
;; connection timed out; no servers could be reached


host white
;; connection timed out; no servers could be reached


-------------
Files:

cat /etc/hosts
10.0.0.2 white.testrac.com white
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.0.0.1 red.testrac.com red


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

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.0.0.2
NETMASK=255.0.0.0
GATEWAY=10.255.255.254
TYPE=Ethernet
USERCTL=no
NETWORK=10.0.0.0
BROADCAST=10.255.255.255
PEERDNS=no


cat /etc/resolv.conf
search localdomain
nameserver 10.0.0.2


cat /etc/host.conf
order hosts,bind


cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=white


-----------
Virtual files:

cat /proc/net/route
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 0000000A 00000000 0001 0 0 0 000000FF 0 0 0
lo 0000007F 00000000 0001 0 0 0 000000FF 0 0 0
eth0 00000000 FEFFFF0A 0003 0 0 0 00000000 0 0 0


-----------------------------------------------------------
-----------------------------------------------------------
 
Reply With Quote
 
 
 
 
USMC Sniper
Guest
Posts: n/a

 
      02-01-2004, 06:25 AM
testOn Sat, 31 Jan 2004 21:28:26 -0800, linuxquestion wrote:

> Dear experts,
>
> I'm trying to get my two Redhat machines to talk to each other.
>
> They are configured with static IP addresses:
>
> 10.0.0.1 red.testrac.com red
> 10.0.0.2 white.testrac.com white
>
> No DHCP. I also don't have DNS running anywhere.
>
> I thought that the hosts file could substitute for DNS.
> But neither machine can find (ping) the other one.
>
> I'll include output from files, and commands.
> What am I missing here?
>
> Thanks a lot
>
> -------------------------------------------------------------------------
> -------------------------------------------------------------------------
> -------------------------------------------------------------------------
> -------------------------------------------------------------------------
>
> from red, 10.0.0.1:
>
> Commands:
>
>
> ifconfig
> eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
> inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:261 errors:0 dropped:0 overruns:0 frame:0
> TX packets:261 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:17394 (16.9 Kb) TX bytes:17394 (16.9 Kb)
>
>
> hostname
> red
>
> domainname
> (none)
>
> hostname -d
> testrac.com
>
> dnsdomainname
> testrac.com
>
> route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
>
> 10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default 10.255.255.254 0.0.0.0 UG 0 0 0 eth0
>
>
> ping -c 1 10.0.0.1
>
> PING 10.0.0.1 (10.0.0.1) from 10.0.0.1 : 56(84) bytes of data.
> 64 bytes from 10.0.0.1: icmp_seq=0 ttl=255 time=17 usec
>
> --- 10.0.0.1 ping statistics ---
> 1 packets transmitted, 1 packets received, 0% packet loss
> round-trip min/avg/max/mdev = 0.017/0.017/0.017/0.000 ms
>
>
> ping -c 1 white
>
> PING white.testrac.com (10.0.0.2) from 10.0.0.1 : 56(84) bytes of data.
> From red.testrac.com (10.0.0.1): Destination Host Unreachable
>
> --- white.testrac.com ping statistics ---
> 1 packets transmitted, 0 packets received, +1 errors, 100% packet loss
>
>
> host red
> ;; connection timed out; no servers could be reached
>
>
> host white
> ;; connection timed out; no servers could be reached
>
>
> ------------
> Files:
>
>
> cat /etc/hosts
>
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
> 10.0.0.1 red.testrac.com red
>
> 10.0.0.2 white.testrac.com white
>
>
>
> cat /etc/sysconfig/network-scripts/ifcfg-eth0
>
> DEVICE=eth0
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=10.0.0.1
> NETMASK=255.0.0.0
> GATEWAY=10.255.255.254
>
>
> cat /etc/resolv.conf
> nameserver 10.0.0.1
>
> cat /etc/host.conf
> order hosts,bind
>
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=red
>
>
>
>
>
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
>
> from white, 10.0.0.2
>
> ---------------------------
> Commands:
>
> ifconfig
> eth0 Link encap:Ethernet HWaddr 00:07:E9:E9:34:37
> inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:0 (0.0 b) TX bytes:126 (126.0 b)
> Interrupt:11 Base address:0xdc80 Memory:ff6fe000-ff6fe038
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:234 errors:0 dropped:0 overruns:0 frame:0
> TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:15282 (14.9 Kb) TX bytes:15282 (14.9 Kb)
>
> domainname
> (none)
>
> dnsdomainname
> testrac.com
>
> hostname
> white
>
> hostname -d
> testrac.com
>
> route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 10.0.0.0 * 255.0.0.0 U 0 0 0 eth0
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default 10.255.255.254 0.0.0.0 UG 0 0 0 eth0
>
>
> ping -c 1 10.0.0.1
>
> PING 10.0.0.1 (10.0.0.1) from 10.0.0.2 : 56(84) bytes of data.
> From 10.0.0.2: Destination Host Unreachable
>
> --- 10.0.0.1 ping statistics ---
> 1 packets transmitted, 0 packets received, +1 errors, 100% packet loss
>
>
> ping -c 1 red
> PING red.testrac.com (10.0.0.1) from 10.0.0.2 : 56(84) bytes of data.
> From white.testrac.com (10.0.0.2): Destination Host Unreachable
>
> --- red.testrac.com ping statistics ---
> 1 packets transmitted, 0 packets received, +1 errors, 100% packet loss
>
>
> host red
> ;; connection timed out; no servers could be reached
>
>
> host white
> ;; connection timed out; no servers could be reached
>
>
> -------------
> Files:
>
> cat /etc/hosts
> 10.0.0.2 white.testrac.com white
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
> 10.0.0.1 red.testrac.com red
>
>
> cat /etc/sysconfig/network-scripts/ifcfg-eth0
>
> DEVICE=eth0
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=10.0.0.2
> NETMASK=255.0.0.0
> GATEWAY=10.255.255.254
> TYPE=Ethernet
> USERCTL=no
> NETWORK=10.0.0.0
> BROADCAST=10.255.255.255
> PEERDNS=no
>
>
> cat /etc/resolv.conf
> search localdomain
> nameserver 10.0.0.2
>
>
> cat /etc/host.conf
> order hosts,bind
>
>
> cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=white
>
>
> -----------
> Virtual files:
>
> cat /proc/net/route
> Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
> eth0 0000000A 00000000 0001 0 0 0 000000FF 0 0 0
> lo 0000007F 00000000 0001 0 0 0 000000FF 0 0 0
> eth0 00000000 FEFFFF0A 0003 0 0 0 00000000 0 0 0
>
>
> -----------------------------------------------------------
> -----------------------------------------------------------



 
Reply With Quote
 
Eric Enright
Guest
Posts: n/a

 
      02-01-2004, 06:36 AM
On Sat, 31 Jan 2004 21:28:26 -0800, linuxquestio wrote:

> Dear experts,
>
> I'm trying to get my two Redhat machines to talk to each other.
>
> They are configured with static IP addresses:
>
> 10.0.0.1 red.testrac.com red
> 10.0.0.2 white.testrac.com white
>
> No DHCP. I also don't have DNS running anywhere.
>
> I thought that the hosts file could substitute for DNS. But neither
> machine can find (ping) the other one.

<snip>

You say "peer to peer" network.. Do you mean machine to machine directly?
Perhaps you need a crossover cable, while you are using regular ethernet
cabling.

As for using /etc/hosts, yes this can substitute for DNS. The reason that
"host" fails, is because it attempts to talk to your DNS server directly,
rather than calling gethostbyname().

HTH,
--
Eric Enright /"\
sauronAtiptsoftDcom \ / ASCII Ribbon Campaign
X Against HTML E-Mail
Public Key: 0xBEDF636F / \

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      02-01-2004, 02:35 PM
(E-Mail Removed) wrote:

> ifconfig
> eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
> inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)


> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:261 errors:0 dropped:0 overruns:0 frame:0
> TX packets:261 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0
> RX bytes:17394 (16.9 Kb) TX bytes:17394 (16.9 Kb)


The eth0 interfaces on both machines do not show "RUNNING" in the ifconfig
output, which, as you can see, is present for the lo interface. It's a
good bet that is why no communication is possible.

Although I really don't know what the missing RUNNING specifically implies,
my *guess* would be that the cards are not correctly configured for the
hardware.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* The signal-to-noise ratio is too low in many [news] groups to make
* them good candidates for archiving.
* --- Mike Moraes, Answers to FAQs about Usenet */
 
Reply With Quote
 
linuxquestion@yahoo.com
Guest
Posts: n/a

 
      02-01-2004, 06:39 PM
> You say "peer to peer" network.. Do you mean machine to machine directly?
> Perhaps you need a crossover cable, while you are using regular ethernet
> cabling.


Yes, this is the case. What is the difference/advantage of using a
crossover cable?

> As for using /etc/hosts, yes this can substitute for DNS. The reason that
> "host" fails, is because it attempts to talk to your DNS server directly,
> rather than calling gethostbyname().


Do you know how I could get it work then?

Here's a question. I noted on the web, that when another user got
his network working, he had
IPADDR: 10.192.8.50
Gateway: 10.192.8.1

I noted that the first three digits of the IP were the same.
Do you think that it is important?

Also, can you others ping your gateway? I can't.

Thanks
 
Reply With Quote
 
linuxquestion@yahoo.com
Guest
Posts: n/a

 
      02-01-2004, 06:41 PM
Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> (E-Mail Removed) wrote:
>
> > ifconfig
> > eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
> > inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
> > UP BROADCAST MULTICAST MTU:1500 Metric:1
> > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0
> > RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)

>
> > lo Link encap:Local Loopback
> > inet addr:127.0.0.1 Mask:255.0.0.0
> > UP LOOPBACK RUNNING MTU:16436 Metric:1
> > RX packets:261 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:261 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0
> > RX bytes:17394 (16.9 Kb) TX bytes:17394 (16.9 Kb)

>
> The eth0 interfaces on both machines do not show "RUNNING" in the ifconfig
> output, which, as you can see, is present for the lo interface. It's a
> good bet that is why no communication is possible.


So, you get RUNNING, on your eth0 output?

> Although I really don't know what the missing RUNNING specifically implies,
> my *guess* would be that the cards are not correctly configured for the
> hardware.


I think that they are configured well enough. There were no drivers
before, and I installed them.
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      02-01-2004, 06:55 PM
On 1 Feb 2004 11:39:02 -0800, (E-Mail Removed) wrote:
>
> Yes, this is the case. What is the difference/advantage of using a
> crossover cable?



You need a regular cable for nic to hub/switch/router/cable modem.

You need a crossover when you go from nic to nic.
The crossover cable crosses tx wires to connect to rx and rx to tx
pins.


 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      02-01-2004, 07:13 PM
(E-Mail Removed) wrote:
> Clifford Kite <(E-Mail Removed)> wrote in message
> news:<(E-Mail Removed)>...


>> The eth0 interfaces on both machines do not show "RUNNING" in the ifconfig
>> output, which, as you can see, is present for the lo interface. It's a
>> good bet that is why no communication is possible.


> So, you get RUNNING, on your eth0 output?


Yes.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* The wealth of a nation is created by the productive labor of its
* citizens. */
 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      02-01-2004, 07:52 PM
(E-Mail Removed) wrote:
>> You say "peer to peer" network.. Do you mean machine to machine directly?
>> Perhaps you need a crossover cable, while you are using regular ethernet
>> cabling.


> Yes, this is the case. What is the difference/advantage of using a
> crossover cable?


A cable directly connecting (no hub or switch) the Ethernet cards of
two hosts together must a crossover cable. See the Ethernet HOWTO
in the "Twisted Pair" section for more on crossover cables.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* My confidence in this answer (X), on a scale of 0 to 10:
|----|----|----|----|----|----|----|----|----|----X
0----1----2----3----4----5----6----7----8----9----10 */

 
Reply With Quote
 
Trygve Selmer
Guest
Posts: n/a

 
      02-01-2004, 10:44 PM
(E-Mail Removed) wrote:
> Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
>
>>(E-Mail Removed) wrote:
>>
>>>ifconfig
>>>eth0 Link encap:Ethernet HWaddr 00:07:E9:3C:E3:24
>>> inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.0.0.0
>>> UP BROADCAST MULTICAST MTU:1500 Metric:1
>>> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>>> collisions:0
>>> RX bytes:0 (0.0 b) TX bytes:168 (168.0 b)


The HWaddr says the NICs are Intel ones. Which model?

> I think that they are configured well enough. There were no drivers
> before, and I installed them.


Which driver did you install? What is the output of the command lsmod?

 
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
Multihomed XP computer in a peer-2-peer network & related problems Devinder Windows Networking 2 12-19-2006 10:31 PM
Network two Windows 2003 Servers peer to peer William Oliveri Windows Networking 1 08-19-2005 09:02 PM
IEEE 1394 peer to peer network problem Mark Dootson Home Networking 1 01-15-2005 10:43 PM
Unable to ping/browse peer to peer network after setting up RRAS Steve Mann Windows Networking 2 07-27-2004 01:15 PM
Cant use LPT1 on computer formally used on a peer-to-peer network MikeTS Windows Networking 0 12-30-2003 02:26 AM



1 2 3 4 5 6 7 8 9 10 11