battikh
Windows:
-connect the crossover cable on both ends (or the straight cables to the hub/switch)
-start-->control panel-->network connections
-double click on "local area connection"
-in the list click double click on "internet protocol"
-clcik on "use the following IP address"
-fill the fields as follow:
computer A:
IP address: 192.168.0.1
Subnet mask: 255.255.255.0
computer B:
IP address: 192.168.0.2
Subnet mask: 255.255.255.0
-click on OK, OK again
-that should be enough, but too make sure it's working:
-start-->run
-type "cmd" (without the quotes) then enter
-on computer A type:
"ping 192.168.0.2" (without the quotes) and then enter
on computer B type "ping 192.168.0.1" and then enter
-if you get lines containing "reply from x.x.x.x...." then it's working
if you don't, turn off your firewall if you have one, test, and turn it back on
linux:
-connect the crossover cable on both ends (or the straight cables to the hub/switch)
-open a terminal
-to see which one is your ethernet card, in the terminal type "ifconfig" (without the quotes)
-your ethernet card is the one that contains "Link encap 100Mbps Ethernet" (should be most probably eth0 or eth1)
-on computer A type the following (considering your ethernet card is eth0 depending on steps 3 and 4):
sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
-on computer B type the following (considering your ethernet card is eth0 depending on steps 3 and 4):
sudo ifconfig eth0 192.168.0.2 netmsask 255.255.255.0 up
-on computer A type: ping 192.168.0.2
-on computer B type: ping 192.168.0.1
-if you get "reply from..." it's working
if you want to share files on windows other steps might be needed (enabling file sharing)