# Problem of using Raspberry Pi

**URL:** <https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089>\
**Category:** General\
**Created:** [4 November 2022 15:43 UTC](https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089 "2022-11-04T15:43:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmarcoz1](https://avatars.discourse-cdn.com/v4/letter/z/6a8cbe/32.png) [@zmarcoz1](https://discourse.nodered.org/u/zmarcoz1)\
**Post date:** [4 November 2022 15:43 UTC](https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089/1 "2022-11-04T15:43:39Z")

</div>

I am new to both Raspberry and NodeRed.

My goal is to connect the Raspberry to a machine via a network switch and then use the Raspberry to pass the data to internet via its wifi.

Before I started any connection, I am testing the Raspberry. The Raspberry can connect to internet using wifi or talk to a switch, but it cannot do both at the same time. For example, I will lose connection of the wifi if I connect the ethernet cable. How to fix it?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 November 2022 16:07 UTC](https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089/2 "2022-11-04T16:07:12Z")

</div>

I think that is a question for a Pi forum. It is nothing to do with node-red.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 November 2022 16:20 UTC](https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089/3 "2022-11-04T16:20:19Z")

</div>

To get you going, I suspect that default setup is to use the ethernet connection for internet if it is available. You may need to setup a default route or something, but I don't know. So best to ask on a Pi forum I think.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 November 2022 23:25 UTC](https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089/4 "2022-11-04T23:25:22Z")

</div>

> [@zmarcoz1](#):
>
> My goal is to connect the Raspberry to a machine via a network switch and then use the Raspberry to pass the data to internet via its wifi.
> 
> Before I started any connection, I am testing the Raspberry. The Raspberry can connect to internet using wifi or talk to a switch, but it cannot do both at the same time. For example, I will lose connection of the wifi if I connect the ethernet cable. How to fix it?

As Colin says, you won't find much help on that here I'm afraid. For starters, we don't know anywhere near enough about what you are trying to do or about the environment in which you are working and the value of your system and data.

Secondly, configuring Linux to handle multiple interfaces is certainly a question for a different forum. You might try one of the Stack Overflow forums for example.

Thirdly, just because you can, doesn't necessarily mean you should. Make sure that, when messing with networking, you don't accidentally allow inbound connections from the Internet.

By the way, when asking questions elsewhere about the Pi, you can use often use general Linux forums too, just note that the Pi OS's are all (or mostly) based on Debian Linux.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 January 2023 23:26 UTC](https://discourse.nodered.org/t/problem-of-using-raspberry-pi/70089/5 "2023-01-03T23:26:12Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
