Crossover cable connection between 2 computers.

Steven Vollom stevenvollom at sbcglobal.net
Fri Mar 13 22:45:50 UTC 2009


Mike Shaw wrote:
> Actually you don't need to mess with even setting up a DHCP server
> unless you really need/want one.  If you just have 2 machines and 1
> NIC per machine just plug the cable in connecting the machines, assign
> IPs and a default route per machine from the command line and you are
> set.  Some thing like:
>
> Machine 1
> ---------------
> % sudo /etc/init.d/networking stop
> % ifconfig eth0 inet 192.168.1.1 netmask 255.255.255.0
> % route add default 192.168.1.2
> % ifconfig eth0 up
>
>
> Machine 2
> ----------------
> % sudo /etc/init.d/networking stop
> % ifconfig eth0 inet 192.168.1.2 netmask 255.255.255.0
> % route add default 192.168.1.1
> % ifconfig eth0 up
>
> Now you should be able to ping, ssh, ftp whatever, providing the
> hardware is okay.  To get things back to normal just issue:
>
> % ifconfig eth0 down
> % route del default
> % sudo /etc/init.d/networking start
>
> on each machine and they should go back.
>
> l8r,
>
> Mike
>
>   
I am a bit over my head Mike.  Can I use your numbers or do I need to 
use existing numbers from my computers.  192.168.0.100 and 
192.168.0.101.  And is this using the crossover LAN cable directly 
connected to the computers or using my router?

I have connection to the Internet with both computers;  I may have 
configuration errors, but have no way to know that.  I just typed the 
numbers for google in the address bar and pressed enter, is that the way 
to ping an address.  When I googled about ping, people talked about 
pinging, but now how to ping.  Generally they were there to solve other 
problems.  This is what happened:  The server at 216.239.39.99 is taking 
too long to respond.  It timed out.

My mounting of partitions is so screwed up that it is amazing that I can 
use the computer.  I have worked around my problems without fixing them 
for a long time.  Those who are trying to help me are trying to figure a 
way to solve my problem without losing my data.  No success yet.  I got 
the crossover cable to try to make a direct connection to find that I 
probably need the same things working that I would need using my router.

If I use your command formula and my numbers, what should I expect to 
come on my screen?  Will it be something that shows a similar screen of 
both computers?  Will I be able to drag and drop, cut and paste, or will 
there be a formula to follow to get the data moving.  Thanks for any 
help you give.  Sorry to be a trouble.

Steven




More information about the kubuntu-users mailing list