networking

i have two linux boxes at my house running caldera OL
they both are running to a 5 port hub i have, and i want to get them to ping and telnet back and forth from each other.

I have not been successful in this though. the ip addresses for the machines are 192.168.77.2 and 192.168.77.3  when i try to telnet from one to the other though, i get error messaage 'no route to host' what should my default gateway be? or is it even possible to peer to peer these like this?
i really need some detailed step by step help on this if you can. thanks
nace1234Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
lugnut1221Connect With a Mentor Commented:
ok if your IPs are 192.168.77.2 and 192.168.77.3 one subnetmask that will work is 255.255.255.0.  
10.10.10.0      *               255.255.255.0   U     0      0        0 eth1

This is the route that it sounds like your missing.  To add this route Type:
(all one line)

route add 192.168.77.0 netmask 255.255.255.0 eth0

You will need to do this on both PCs then everything should be fine.  

this will fix the problem provided the hub works, cables are made correctly and the ethernet devices are configured correctly.

Hope this helps
0
 
jlevieCommented:
The default gateway doesn't apply when talking to a host on a locally attached network, only when accessing hosts outside of the local network. However, this presumes that each box's ethernet is up and that both boxes have the same netmask set, probably 255.255.255.0 in this situation.

Check to see that both boxes actually have their ethernet adapter up and running, that the correct IP is bound to the interface, and that the netmasks are the same (ifconfig -a). For instance:

levie> ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:60:97:8E:F0:7F
          inet addr:192.168.0.12  Bcast:192.168.0.127  Mask:255.255.255.128
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:649505 errors:2 dropped:0 overruns:2 frame:2
          TX packets:4650 errors:0 dropped:0 overruns:0 carrier:0
          collisions:10 txqueuelen:100
          Interrupt:3 Base address:0x300

Tells me that eth0 has an ip of 192.168.0.5, with a netmask of 255.255.255.128, that its UP and RUNNING.
0
 
lugnut1221Commented:
there was a mistake the route that you would be missing would be

192.168.77.0   *  255.255.255.0  U  0  0   0 eth0


the instructions to add this route are the same..

Sorry about that
0
All Courses

From novice to tech pro — start learning today.