View Single Post

   
  #2 (permalink)  
Old 01-17-2008, 05:50 PM
USMC Sniper
 
Posts: n/a
Default Re: Peer to peer network with two machines, ping doesn't work

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