I have seen some similar questions posted but no firm response on how to do this.

Raspberry Pi 4, connected through WiFi on the network. MAC is also connected to the WiFi Router.

What i want to do is connect my MAC's Ethernet to a switch and the RPi to the same switch so i can access the RPi on a wired connection instead of the WiFi, but want to leave the RPi connected to WiFi for internet and ancillary access.

I have tried a VLAN setup for my Ethernet port on the MAC, and tried the same network schema and different private one, but cannot get it all working together.

Please let me know if you have had a similar configuration work.

Thank you


2 Answers 2


"but no firm response on how to do this" because you haven't actually said what "this" is. I presume by "MAC" you mean an Apple Mac.

The Pi (or indeed ANY computer) can independently configure network interfaces. See How to set up networking/WiFi for details using the default dhcpcd.

I would't use a switch to connect a Mac to a Pi, just an Ethernet cable, but if you have a router I wouldn't normally use any direct connection.

  • you need an ethernet hub/switch for the ethernet network (subnet/VLan) whatever you want to refer to it to. the MAC and Pi are both connected via wifi to the router which is connected to the internet... the ethernet side is a different LAN (wifi is 192.168.x.x and ethernet is 10.0.x.x turning off the wifi router the VLAN works fine from the MAC point of view, and on the mac side even with wifi up... but the Pi cant handle the routing natively. i installed VLan on Pi but there is no configuration info.
    – Tony Faz
    Commented Sep 7, 2021 at 23:37
  • @TonyFaz You asked about connecting a Mac Ethernet to a Pi NOT connecting to a network. This detail (and detail of the network) belongs in your Question. If both networks have DHCP servers there is NO NEED to do anything, unless you want to use the lower priority network for a gateway. Indeed these are all described in the linked Answer Advanced dhcpcd Configuration.
    – Milliways
    Commented Sep 8, 2021 at 3:49

I am not sure if I use the terminology correct, so what I call a router might be a switch, but whatever: I have a wifi-extender, two raspberry pi's (4B and 5), Windows laptop and a MacBook Air, all connected over ethernet with the same extremely simpel router. No software setup needed. Plugging all in and it just works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.