LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 12-25-2023, 11:11 PM   #1
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Rep: Reputation: 21
Connect 2 Computers w/Ethernet Cable


How do I get the connection to work? I tried both an Ethernet cable and a Crossover Ethernet cable. 2006 Dell Laptop to 2011 iMac. I failed using Warpinator which does work on my wireless LAN. Both run Linuxmint 21.2 Cinnamon.

Will any commands I use have to be undone when I revert to wireless?
 
Old 12-25-2023, 11:27 PM   #2
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Connect the two ethernet ports.

On one computer, disable WiFi and set the wired connection to "Automatic (DHCP)".

On the other computer, set the wired connection to "Shared to other computers".

After you're done, re-enable WiFi on the first computer.
 
Old 12-25-2023, 11:50 PM   #3
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
I do not see any DHCP. There is MTU w/automatic for in the wired connection page.
There is no Shared to other computers
 
Old 12-26-2023, 03:08 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
in general you only need to connect the two ports, as it was mentioned. But you need to configure the two hosts to be able to use this setup.
this is a guide to explain that: https://askubuntu.com/questions/2283...hout-a-router/
On mint it should be something similar.
 
Old 12-26-2023, 05:23 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Without knowing what type of adapter is in the Dell or mac I would use the crossover cable. Use the ip command to configure the adapters. Running the commands does not make any permanent changes.

Last edited by michaelk; 12-26-2023 at 05:35 AM.
 
Old 12-26-2023, 05:41 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
You should be able to connect them with a straight through Ethernet cable and you also can configure static IP addresses, but then you will not have host names. I'm guessing this is temporary to get data/info from one side to the other?
 
Old 12-26-2023, 05:58 AM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by IsaacKuo View Post
Connect the two ethernet ports.

On one computer, disable WiFi and set the wired connection to "Automatic (DHCP)".

On the other computer, set the wired connection to "Shared to other computers".

After you're done, re-enable WiFi on the first computer.
Under the settings, go to IPv4 settings tab. Then you will have Automatic (DHCP) and "Shared to other computers" settings.
 
1 members found this post helpful.
Old 12-26-2023, 05:58 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Auto mdi-x came out in the early 2000s so a straight cable should probably work.
If you don't see a link LED illuminated on the port then try the crossover.
 
Old 12-26-2023, 04:47 PM   #9
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by michaelk View Post
Auto mdi-x came out in the early 2000s so a straight cable should probably work.
If you don't see a link LED illuminated on the port then try the crossover.
Can connect with either cable. The port on the 2006 Dell laptop lights up w/either cable when connected to the other computer a 2011 iMac. There are no lights on the iMacs Ethernet port. On the Dell the Ethernet port left light shines steadily, the right one flickers dimly.
 
Old 12-26-2023, 05:20 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
The left should be the link LED and right show data activity. Assign IP addresses to each interface and you should be good to go.
 
Old 12-26-2023, 05:37 PM   #11
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
On iMac: sudo ip addr add 10.0.0.1/24 dev enp2s0
On Dell laptop: sudo ip addr add 10.0.0.2/24 dev eth0

IPv4 set to Automatic (DHCP) on both
Routes section of IPv4 page has Network, Netmask, Gateway and Metric fields that are not filled in.

Still get Connection Failed.

Wireless is not enabled when attempting wired connection.
 
Old 12-26-2023, 06:20 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Strange, With Mint 21 I would not expect the ethernet adapter to be named eth0 unless you disabled naming conventions.
No need for DHCP since you are manually configuring the adapters.
Route should not matter since you are direct between the two computers.

from the Dell
ping 10.0.0.1 fails?

Also from the Dell
ping 10.0.0.2 successful?
 
Old 12-26-2023, 06:27 PM   #13
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Quote:
Originally Posted by borgward View Post
IPv4 set to Automatic (DHCP) on both
Routes section of IPv4 page has Network, Netmask, Gateway and Metric fields that are not filled in.
Uhh ... I explained already.

One one computer, set to Automatic (DHCP). (The one with WiFi disabled.)

On the other computer, set to "Shared to other computers".

You need one of them to be "Shared to other computers" in order to make it share its internet connection with the other computer. That will configure a simple DHCP server as well as routing to share its other connection with the client computer.
 
1 members found this post helpful.
Old 12-26-2023, 06:40 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,739

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
If you go that route with the interface set to "Shared to other computers" as posted dnsmasq is automatically configured to assign IP addresses via DHCP. The host will be 10.42.0.1.
 
Old 12-26-2023, 06:50 PM   #15
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 504

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by IsaacKuo View Post
Uhh ... I explained already.

One one computer, set to Automatic (DHCP). (The one with WiFi disabled.)

On the other computer, set to "Shared to other computers".

You need one of them to be "Shared to other computers" in order to make it share its internet connection with the other computer. That will configure a simple DHCP server as well as routing to share its other connection with the client computer.
I do not see a "Shared to other computers" setting. I currently have both set to Automatic (DHCP)

I do see a Manual and a Link local only. Does that mean "Shared to other computers"
 
  


Reply



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
Why no Ethernet function. Cable checks out okay on other computers Davidicus Linux - Networking 1 06-17-2013 04:04 AM
Can't connect 2 computers through crossover ethernet cable silencestone Linux - Networking 1 05-28-2008 10:32 AM
I want to network 2 computers over an ethernet crossover cable rob.rice Linux - Networking 5 08-12-2007 10:59 PM
Wireless problem while connecting two computers via a ethernet cable haviles Linux - Wireless Networking 2 01-17-2007 05:19 PM
Connecting two computers with a USB cable (data cable) seran Linux - General 5 08-01-2006 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration