You can't connect two boxes directly with an RJ45 cable.  You need
either a hub between them or a crossover cable.  That is, the "send"
wires from one box have to be connected to the "receive" wires from the
other box, and vice versa.  If you're only going to be using two
computers on this network, I would recommend getting a crossover cable
(or making your own).  It's cheaper than buying a hub.  There are lots
of pages on the web that will show you how to do this (although not
necessarily for linux).  Just go to your favorite search engine and try
something like 

  +crossover +"peer to peer" +network

Making a crossover basically requires cutting the green and orange wires
(both solid and striped) inside your CAT5 cable and crosswiring them. 
In other words...

End #1               End #2
striped green  --->  striped orange
solid green    --->  solid orange
striped orange --->  striped green
solid orange   --->  solid green
all the rest stay the same.

Here is a site that has a nice picture:
http://www.firewall.com/~mcd/crossover.html

You can also buy custom-made crossover cables on the web for about $5 US
(for 10 feet).  That's probably the easiest way to go but it's not
instantaneous.  Here are a few sites that I found through a quick
search, but I don't know anything about them.  Just go to the site and
search for "crossover" on their products page.

http://www.villagegeek.net
http://www.techstore.com
http://www.cdw.com



Aaron Maxwell wrote:
> 
> Hi, I have two boxes (one woody, one potato) with ethernet cards,
> connected by a RJ45 cable.  I'd like to be able to ssh/sftp betwixt them.
> 
> [I admit I don't grok networking much yet (that's partly why I'm doing
> this, to learn).  I've mainly been reading the Net-HOWTO and the man pages
> for ifconfig, if(up|down), route, and references therein; let me know if
> there's another FM I should RT.]
> 
> I've given the two boxes, 'leper-messiah' [1] and 'yomama', which I've
> given addresses 192.168.0.0 and 192.168.0.1 resp; and I've edited
> /etc/hosts on each box appropriately.   The file
> 'leper-messiah:/etc/network/interfaces' contains the stanza
>   iface eth0 inet static
>       address  192.168.0.0
>       netmask 255.255.255.0
> The file 'yomama:/etc/network/interfaces' contains this stanza
>   iface eth0 inet static
>       address  192.168.0.1
>       netmask 255.255.255.0
> I've gotten the eth0 interface working fine (I think) on both.  For
> example, on yomama, 'ifconfig eth0' yields
> yomama:~# ifconfig eth0
> eth0      Link encap:Ethernet  HWaddr 00:C0:F0:47:A9:A1
>           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:11 Base address:0xdc00
> I've enabled the appropriate services in /etc/services on both machines,
> I'm pretty certain, so I don't believe that's the problem.
> 
> I tried various manipulations of the routing table, but they didn't seem
> to help.  I'm not sure what other info is useful, so please ask.
> 
> Thanks in advance.
> Aaron
> 
> [1] 'Leper Messiah' is an old Metallica song, from before they sucked.
> 
> --
> Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

-- 

Brian J. Stults
Doctoral Candidate
Department of Sociology
University at Albany - SUNY
Phone: (518) 442-4652  Fax: (518) 442-4936
Web: http://www.albany.edu/~bs7452

Reply via email to