LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   connecting two slackware linux boxes with an ethernet cable (https://www.linuxquestions.org/questions/linux-networking-3/connecting-two-slackware-linux-boxes-with-an-ethernet-cable-691296/)

riodeuno 12-17-2008 02:33 PM

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.

MS3FGX 12-17-2008 03:18 PM

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.

rweaver 12-17-2008 03:35 PM

Quote:

Originally Posted by riodeuno (Post 3379014)
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.

riodeuno 12-17-2008 11:56 PM

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.


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