Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-30-2003, 03:06 AM
|
#1
|
Member
Registered: Oct 2003
Distribution: Slackware 14.1
Posts: 41
Rep:
|
howto: crossover connection between two linux machines?
Yo ppl!
I've got two linux RH9 machines and I want to make crossover connection between them.
So I want to know what should I do?
I've got two nic's and crossover cable and they are connected. So what services do I need and how to make connection so they can see each other?
I hope that you will help me
thx ppl!
|
|
|
10-30-2003, 04:17 AM
|
#2
|
Member
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 47
Rep:
|
Plug in the hardware, plug in the cables, then (assuming they each only have one network card)
Load the appropriate kernel moduels for the NICs (cant help you there, :google: is your friend)
On first machine:
ifconfig eth0 10.0.0.1
On second machine
ifconfig eth0 10.0.0.2
You can also use 192.168.0.1 and 192.168.0.2 if you feel like it. Then (unless you have strange firewall settings) it should work 
|
|
|
10-30-2003, 05:22 AM
|
#3
|
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802
Rep:
|
In /etc/modules.conf file you should have a line like this on each machine:
alias eth0 <nic_module>
|
|
|
10-30-2003, 10:00 AM
|
#4
|
Member
Registered: Oct 2003
Distribution: Slackware 14.1
Posts: 41
Original Poster
Rep:
|
the problem was in crossover cable - it didn't work!
Now everything is ok but there is one problem :
In one machine I've got isdn and lan card and in the other only lan card. Network between them works. But when both (isdn and lan) cards are activated on the first machine I can't connect to internet, while the network between two comps works.
But when I deactivate lan card, connection to internet is back again.
Any ideas how to solve this problem ?
thx on previous answers 
|
|
|
10-31-2003, 06:15 PM
|
#5
|
LQ Newbie
Registered: Oct 2003
Distribution: RedHat 6-9 Gentoo Slackware 9.1
Posts: 26
Rep:
|
Seems as though you got a route problem. look at route -n before and after you put up your isdn link ... my best guess is that after you put up the isdn link the default route is pointing to your other machine or something while it shoutd be pointing at ppp0 wich should be your isdn connection.
GJB
|
|
|
11-01-2003, 08:08 AM
|
#6
|
Member
Registered: Oct 2003
Distribution: Slackware 14.1
Posts: 41
Original Poster
Rep:
|
thx ppl!
I will try those options you gave me and if problem still remains I'll post again 
|
|
|
09-13-2008, 07:59 AM
|
#7
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Rep:
|
howto: crossover connection between a linux and a Window machine?

It is another newBie question.
What about the crossover connection between a linux and a Window machine?
I connect 2 machines with crossover cable.
Pin 1 to Pin 3
Pin 2 to Pin 6
On window side, the network card icon at bottom right side is ok.
Both machines with static private IP but ping not working, anyone know how to config?
Please help

Last edited by fhleung; 09-13-2008 at 08:01 AM.
|
|
|
09-13-2008, 08:08 AM
|
#8
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Brought up a 5 year old thread? Newbie isn't the reason!
|
|
|
09-28-2008, 04:40 AM
|
#9
|
Member
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432
Rep:
|
Quote:
Comp A IP= 192.168.1.1
Comp A GW= 192.168.1.100
Comp B IP= 192.168.1.100
Comp B GW= 192.168.1.1
|
Need to enter DNS ip for window machine side.
|
|
|
06-27-2009, 07:51 PM
|
#10
|
Senior Member
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495
Rep:
|
Yes, He brought up a 5 year old thread and ,so am I too. This is why. I found this page through a Google search because I was having a problem connecting two computers together through a network connection with a crossover cable. The point IS that people find these pages through LQ and Google searches looking for answers!
I've done it before. Right now I am doing it between an XP machine and and a Ubuntu machine, both 64-bit. Not only have I got it working that the computers communicate fast through gigabit lan cards on each end, but I am also sharing the internet from the XP machine to the Ubuntu machine using multiple network connections and currently connected to the net with Internet Tethering through a Blackberry Curve which I dialed into as a modem. Okay, let me get to the point. Here was what I forgot to make it work. If you do all the steps but miss one like I did, then it won't work. The trick is doing this.
If on an Ubuntu machine or one with sudo setup similar:
PHP Code:
echo "1" | sudo tee /proc/sys/net/ipv4
OR:
PHP Code:
sudo bash -c "echo "1" > /proc/sys/net/ipv4
If on the majority of linux distros:
PHP Code:
su - echo "1" > /proc/sys/net/ipv4
Last edited by fakie_flip; 06-27-2009 at 07:56 PM.
Reason: forgot code blocks
|
|
|
07-07-2013, 04:43 AM
|
#11
|
Member
Registered: Jul 2011
Location: Hong Kong
Distribution: Slackware 13.1,CentOS 6.4,Fedora 16
Posts: 56
Rep: 
|
Hi fakie_flip!
I came across same issue when setting up 2 computers with crossover cable and it doesn't work as well.
I tried your command echo "1" > /proc/sys/net/ipv4 but it says "/proc/sys/net/ipv4 is a directory.
|
|
|
07-08-2013, 10:35 AM
|
#12
|
Moderator
Registered: Mar 2008
Posts: 22,354
|
"the return of the thread"
A nic generally has a way to auto correct for cable type. Crossover or patch is OK as long as one nic can autocorrect.
Problems happen sometimes when nic is powered up with no connection and won't adjust correctly to patch or crossover.
You'd be surprised how many cables are not correct or of a good quality. Use good quality cable and be sure it is current for cards. Cat6 if gig.
Sometimes the auto speed gets out of whack too.
Use network tools to help decide, even looking at lights on nic may help.
Last edited by jefro; 07-09-2013 at 03:20 PM.
|
|
|
07-08-2013, 10:41 AM
|
#13
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
|
|
|
07-08-2013, 02:15 PM
|
#14
|
Member
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124
Rep:
|
Gotta laugh at a decade-old question! Kudos to Linux-Questions for being around so long.
I agree with Jefro, most current NICs have the capability to auto-negotiate. Crossover cables should not be necessary.
"... modern implementations of the Ethernet over twisted pair standards usually no longer require the use of crossover cables."
I can agree with Jefro's ideas of snags you might run into, such as problems with autonegotiation, and add one of my own: sticky MACs.
|
|
|
07-08-2013, 10:42 PM
|
#15
|
Member
Registered: Jul 2011
Location: Hong Kong
Distribution: Slackware 13.1,CentOS 6.4,Fedora 16
Posts: 56
Rep: 
|
RootMason,thanks for your reply.
It turns out I mixed up 2 cables with different ethernet cards.
Sorry about that.
Last edited by angelo.c; 07-08-2013 at 10:56 PM.
|
|
|
All times are GMT -5. The time now is 05:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|