Solved

Simple Intranet setup

Posted on 1997-11-08
6
263 Views
Last Modified: 2010-03-18
This is a pretty simple problem. What I'm tryig to do is set up two Linux machines in a network, using ethernet. Now one of the machines has two ethernet cards, one of which is connected to my campuses backbone. The problem I'm having is that I can't get the two Linux machines to talk to each other. I know that all three ethernet cards are working, and I know that the cable connecting them is good (I've tested this). I'm using IP address of 192.168.2.1 and 192.168.2.2, which I beleive are of the addresses reserved for this kind of thing. When I check the kernel routing table, the 192.168.2.0 network appears, and is mapped to the correct device (eth1 and eth0, respectively). But still no data is going between the two machines (ie. ping doesn't work). I'm using RedHat Linux 4.2, with kernel 2.0.30. Thanks.
0
Comment
Question by:lonnell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 

Expert Comment

by:richcasto
ID: 1586809
Can you please include a printout of "netstat -rn" and also what response you get from ping?
0
 

Author Comment

by:lonnell
ID: 1586810
The response I get from a netstat -rn command is the following:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
169.229.97.0    0.0.0.0         255.255.255.0   U      1500 0          0 eth0
192.168.2.0     0.0.0.0         255.255.255.0   U      1500 0          0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U      3584 0          0 lo
0.0.0.0         169.229.97.1    0.0.0.0         UG     1500 0          0 eth0

and ping gives:
PING juggaknot (192.168.2.2): 56 data bytes

--- juggaknot ping statistics ---
10 packets transmitted, 0 packets received, 100% packet loss

This is after I ctrl-c it, since it just sits there.




0
 
LVL 4

Expert Comment

by:feenix
ID: 1586811
Have you set the routing correctly? Try:
route add 192.168.2.0 -net 255.255.255.0 eth1/0
(if I remember the parameters correctly)
This should set up the routing information.

0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 3

Expert Comment

by:sauron
ID: 1586812
What is the routing table on the other machine like?

Look at the output of ifconfig. Do your interfaces appear as up? when you ping another machine, then do ifconfig again, does the TX/RX packet count go up?

Need more information to answer this one.
0
 
LVL 1

Accepted Solution

by:
bryanjones earned 50 total points
ID: 1586813
First see if you can ping your own machine, then see if you can ping the default route that is in between both machines if you can ping the machine and the default route see if both machines have the same netmask


ie--

                  CAMPUS BACKBONE
                        |
                        |   xxx.xxx.xxx.xxx netmask xxx.
                        |
                         / \
                  YOUR First Linux machine
                        192.168.2.1  what is the netmask here
                        |
                        |
                        |
                         / \
                  YOUR Next Linux machine
                       192.168.2.2 what is the netmask here

make sure that the netmasks are the same and you have a default route like the first linux box.


The most common problem in routeing from one machine to another is that either the netmasks are in correct or that there is no default route to route through.                          
0
 

Author Comment

by:lonnell
ID: 1586814
Hello Sauron,

I've checked the ifconfig and all devices are up. So eth0 and eth1 on the machine connected to my campus ethernet, and eth0 on the other machine (as well as lo) all appear. When I do a ping from either machine, the TX count goes up, but the RX count does not. I'll be happy to provide any additional information. Thanks.

Lonnell
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question