Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-17-2008, 03:33 PM   #1
Registered: Jan 2007
Location: India
Distribution: Slackware 12.1
Posts: 53

Rep: Reputation: 15
connecting two slackware linux boxes with an ethernet cable

I have two linux machines with slackware 12.1 on both of them. I have an ethernet cable, not a crosswire or crosscable or anything of that sort. Is it possible to connect both the computers using only these, i think it is as, this is possible in windows, but the transfer speeds are pathetic on windows. So, i was hoping for better speeds on linux. I also don't have a router or a hub.

I have used the command
and i have
ip on machine 1 :
subnet on machine 1 :
ip on machine 2 :
subnet on machine 2 :
how do i get my eth0 and eth1 interfaces on the machines 1 and 2 respectively to adapt these static ip addresses and be reachable when using ssh or ping.

Please help me out.
Old 12-17-2008, 04:18 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
You need a crossover cable, you can't do it with a patch cable. It isn't an operating system issue, it is the design of the NIC hardware.

Some network cards are autosensing, but you probably don't have one of those unless the machine is very new or a Mac.
Old 12-17-2008, 04:35 PM   #3
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Originally Posted by riodeuno View Post
I have two linux machines ...<SNIP>... Please help me out.
As the previous user said, this config looks like it should work if you have a modern auto-sensing NIC. If you don't there isn't a way to make it work unfortunately.
Old 12-18-2008, 12:56 AM   #4
Registered: Jan 2007
Location: India
Distribution: Slackware 12.1
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks for the replies. I got it to work, looks like the NIC cards are new enough.
/sbin/ifconfig eth1
/sbin/ifconfig eth0
This is all i had to do.
But there still remains this problem of bad speed.
I need to transfer about 24GB of data and the transfer speed remains below 800KBps.
Can you help me with that? Is there something i am doing wrong? Or is this the speed i will get. I ask this because i don't understand what is it that is different now from when my computers were connected over a LAN where i got transfer speeds close to 10MBps.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless problem while connecting two computers via a ethernet cable haviles Linux - Wireless Networking 2 01-17-2007 06:19 PM
Help Connecting to Cable - Slackware 11- Linksys EnhancedComputer Linux - Networking 1 12-28-2006 04:41 AM
Ethernet. NTL cable connecting issue maximillion78 Linux - Hardware 1 02-23-2005 04:36 PM
Connecting two linux boxes via cross cable ElPuello Linux - Networking 4 11-10-2004 11:55 AM
Ethernet. Linux, NTL cable connecting issue Mobilemick Linux - Hardware 4 06-01-2004 03:41 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration