vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 ----------------------------------------------------------- ----------------------------------------------------------- |
| |||
| 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 > > > ----------------------------------------------------------- > ----------------------------------------------------------- |
| |||
| 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 / \ |
| |||
| linuxquestion@yahoo.com 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-ccc@ri1.arg|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 */ |
| |||
| > 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 |
| |||
| Clifford Kite <kite@see.signature.id> wrote in message news:<vb6jvb.qbo.ln@corncob.localhost.tld>... > linuxquestion@yahoo.com 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. |
| |||
| On 1 Feb 2004 11:39:02 -0800, linuxquestion@yahoo.com 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. |
| |||
| linuxquestion@yahoo.com wrote: > Clifford Kite <kite@see.signature.id> wrote in message > news:<vb6jvb.qbo.ln@corncob.localhost.tld>... >> 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-ccc@ri1.arg|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. */ |
| |||
| linuxquestion@yahoo.com 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-ccc@ri1.arg|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 */ |
| ||||
| linuxquestion@yahoo.com wrote: > Clifford Kite <kite@see.signature.id> wrote in message news:<vb6jvb.qbo.ln@corncob.localhost.tld>... > >>linuxquestion@yahoo.com 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? |