You are not logged in.

#1 2021-11-19 08:29:06

theta
Member
From: India
Registered: 2010-01-16
Posts: 174

Mac M1 Mini and Arch - Direct Ethernet

I have Arch Linux installed on my Laptop (HP Envy). I have recently set up a Mac M1 Mini as a desktop.

I am trying to connect them both with an ethernet cable so as to access

a) Already existing Samba shares on my system
b) SSH from MAC to Arch and vice versa

with the aim to have high speed data transfer as compared to my home wifi network.

I was able to access these samba shares over wifi.

To set up the ethernet connection I assigned manual IP (192.168.3.1/2) to each of them with subnet mask (255.255.255.0)
Thereafter to troubleshoot I even disabled wifi on both to avoid any confusing.

I am even unable to ping the machines from each other although the status off ethernet is shown active on both the arch laptop and Mac m1 mini.

I have not put any routing table as of now.

I also with to use my wifi in conjunction with this direct ethernet setup.

Please advise.

Offline

#2 2021-11-19 18:06:40

teckk
Member
Registered: 2013-02-21
Posts: 588

Re: Mac M1 Mini and Arch - Direct Ethernet

To set up the ethernet connection I assigned manual IP (192.168.3.1/2) to each of them with subnet mask (255.255.255.0)

Does that mean that you gave both machines the same IP address?

Also show how you assigned IP addresses.

Also why did you make that a /2, or is that a typo for /24? For 2 machines a /30 (255.255.255.252)  or /29 (255.255.255.248) would be fine.

I also with to use my wifi in conjunction with this direct ethernet setup.

You can, everything needs to have its own IP, you may want to put the wired and wireless on different subnets

You are going to have to give more info.

Offline

#3 2021-11-20 08:00:14

theta
Member
From: India
Registered: 2010-01-16
Posts: 174

Re: Mac M1 Mini and Arch - Direct Ethernet

teckk wrote:

To set up the ethernet connection I assigned manual IP (192.168.3.1/2) to each of them with subnet mask (255.255.255.0)

Does that mean that you gave both machines the same IP address?

Also show how you assigned IP addresses.

Also why did you make that a /2, or is that a typo for /24? For 2 machines a /30 (255.255.255.252)  or /29 (255.255.255.248) would be fine.

I also with to use my wifi in conjunction with this direct ethernet setup.

You can, everything needs to have its own IP, you may want to put the wired and wireless on different subnets

You are going to have to give more info.

No I gave a different ip to both.
Laptop -> 192.168.3.1
Mac M1 -> 192.168.3.2

My wireless has the series 192.168.1.100-149

I am leaving the working of the wireless in the next step. At least I should be able to get the direct ethernet working independently. I can't get it to work with wifi off in both machines also.

Question:

When you say that wired and wireless have to be on different subnets what do you imply? Do I need to manually put in routing tables for both? Or is there a simpler way?

Offline

#4 2021-11-20 12:45:54

teckk
Member
Registered: 2013-02-21
Posts: 588

Re: Mac M1 Mini and Arch - Direct Ethernet

What network manager are you using? Each interface will have its own config file.

Examples:
/etc/netctl/examples/ethernet-static
/etc/netctl/examples/wireless-wpa-static

Read the wiki page for the network manager that you are using. You can also bring both up manually if that's what you want to do.

Example:

ip link set enp2s0 up

ip address add 172.16.0.2/24 broadcast + dev enp2s0

ip route add default via 172.16.0.1 dev enp2s0

I don't think that this applies anymore. If the interfaces are not auto negotiating, you'll need a cross over cable to hook two machines together with a cat5/6 cable.

When you say that wired and wireless have to be on different subnets what do you imply

Just what you have.

Start with the basics. You need firmware support for the device, assign it a unique IP, you should be able to ping it from another machine on the same subnet/mask. If not find out what is wrong. You still haven't given any usefull info so that someone could look at it. Or look at it yourself.

lspci -k
uname -a
ip a
journalctl

Offline

Board footer

Powered by FluxBB