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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.