Simple Intranet setup

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.
lonnellAsked:
Who is Participating?
 
bryanjonesConnect With a Mentor Commented:
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
 
richcastoCommented:
Can you please include a printout of "netstat -rn" and also what response you get from ping?
0
 
lonnellAuthor Commented:
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
feenixCommented:
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
 
sauronCommented:
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
 
lonnellAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.