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

From: Eric Enright (sauron_at_tiptsoft.com)
Date: 02/01/04


Date: Sun, 01 Feb 2004 02:36:49 -0500

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         / \


Relevant Pages

  • Re: Peer to peer network with two machines, ping doesnt work
    ... I also don't have DNS running anywhere. ... > I thought that the hosts file could substitute for DNS. ... You say "peer to peer" network.. ... yes this can substitute for DNS. ...
    (comp.os.linux.networking)
  • Re: Hosts file ignored
    ... > any of the entries I have made to the server's hosts file. ... > Successfully flushed the DNS Resolver Cache. ... > I am not running a DNS server on my system. ... > I can ping IP addresses without any problem, both on the LAN and on ...
    (microsoft.public.windows.server.general)
  • Re: DNS cache and hosts file ignored
    ... On occassion I've had DNS resolution fail ... Quoting my nice shiny new "Microsoft Windows Server 2003 TCP/IP ... does not ignore the hosts file, but the resolver may not be able to read it! ... At least they are reporting it, though a read only option would be ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cant see out to .co.uk from inside my .local domain (forward l
    ... Ping cp.xxx.co.uk, same question. ... I found out the ip of my .co.uk so I put this into the hosts file of the ... network only from the server which I changed the hosts file for. ... Indeed is it even a DNS issue. ...
    (microsoft.public.windows.server.sbs)
  • Re: Cant see out to .co.uk from inside my .local domain (forward l
    ... Well I removed the entry from my hosts file and issued a ping command to both ... network only from the server which I changed the hosts file for. ... Indeed is it even a DNS issue. ...
    (microsoft.public.windows.server.sbs)