LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't connect 2 computers through crossover ethernet cable (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-2-computers-through-crossover-ethernet-cable-645335/)

silencestone 05-28-2008 10:04 AM

Can't connect 2 computers through crossover ethernet cable
 
I'm having a lot of trouble setting up a two-computer lan with a crossover cable. I'm using Wolvix-1.0.5 and Wolvix-1.1.0 liveCDs, both based on Slackware. Both computers use similar /etc/hosts files with:

Quote:

192.168.1.1 starfish.dual.net starfish
192.168.1.2 wolvix.dual.net wolvix
...in there, in addition to the default localhost setup. The ethernet interface cards are recognized, have loaded drivers, and show up with 'ifconfig'. So far, I've done (all as root in the liveCD sessions):

Code:

ifconfig eth0 inet 192.168.1.1
ifconfig eth0 up
ifconfig
ping -c3 192.168.1.2

And watched the ping fail, with "Host was unreachable" errors. So, thinking it may be an interfering firewall, I checked for a running iptables:

Code:

ps ax | grep ip
ps ax | grep table
ps ax | grep if
ps ax | grep fire

Which turned up absolutely nothing. Nevertheless, I looked in /etc/rc.d/ for boot-time firewall scripts, found one in 1.0.5 (but not in 1.1.0), and turned it off...
Code:

/etc/rc.d/rc.FireWall stop
Then ran 'ping -c3 192.168.1.2' and 'arp -a', to no avail. Turned eth0 off and on, again. Still no pinging.

Brought up gnome-nettool, and used the port scan on local (such as checking 192.168.1.1 on 192.168.1.1) and remote (such as check 192.168.1.2 on 192.168.1.1) addresses. Port scan never completed for the remote addresses, but would return a short list of open ports for each local address, including 22 for ssh, 6000 for X.

So, since the port is open, I try to ssh from 192.168.1.1:

Code:

/etc/rc.d/rc.sshd start
ssh 192.168.1.2

But that fails with errors of 'host not reachable' or 'port not accessible' or something.

Any help would be appreciated.

acid_kewpie 05-28-2008 10:32 AM

please show us the ifconfig output on both boxes. as you've partially done above, arp entries and the point you want to be looking for at the moment. with that, everything else will follow.


All times are GMT -5. The time now is 09:24 AM.