LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-17-2008, 02:33 PM   #1
riodeuno
Member
 
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
Quote:
netconfig
and i have
Quote:
ip on machine 1 : 192.168.0.1
subnet on machine 1 : 255.255.255.0
Quote:
ip on machine 2 : 192.168.0.2
subnet on machine 2 : 255.255.255.0
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, 03:18 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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, 03:35 PM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
Quote:
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-17-2008, 11:56 PM   #4
riodeuno
Member
 
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.
Quote:
/sbin/ifconfig eth1 192.168.0.2
/sbin/ifconfig eth0 192.168.0.1
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.
 
  


Reply


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 05:19 PM
Help Connecting to Cable - Slackware 11- Linksys EnhancedComputer Linux - Networking 1 12-28-2006 03:41 AM
Ethernet. NTL cable connecting issue maximillion78 Linux - Hardware 1 02-23-2005 03:36 PM
Connecting two linux boxes via cross cable ElPuello Linux - Networking 4 11-10-2004 10:55 AM
Ethernet. Linux, NTL cable connecting issue Mobilemick Linux - Hardware 4 06-01-2004 02:41 PM


All times are GMT -5. The time now is 02:46 PM.

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