# Use ETH0 and WLAN on a Raspi at the same time

**URL:** <https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076>\
**Category:** General\
**Created:** [30 March 2023 11:02 UTC](https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076 "2023-03-30T11:02:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuel\_o](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@Manuel\_o](https://discourse.nodered.org/u/Manuel_o)\
**Post date:** [30 March 2023 11:02 UTC](https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076/1 "2023-03-30T11:02:04Z")

</div>

Hello.

Used LINUX on my Raspi: RASBIAN LINUX 11

I am now merging my project to my Raspi. My project is to control my pump via a webbrowser.The pump i controled via NODE-RED and MODBUS.

PUMP \<----\> MODBUS (NODE RED) \<-----\> MQTT Server (vm LINUX) \<---\> NODE RED DASHBOARD (vm LINUX)

Now i want to merge the MODBUS (NODE RED) workload to a raspi that further will publishe the data to MQTT via WLAN.

In the past, my pump was connected to my network (via THCP) and i used this IP to connect my PC via NODE RED modbus to the pump.

Now my pump is connected via LAN to my Raspi. I configured my pump in a way that it will use now a preconfigured IP (192.168.....)

So my problem right now ( i think): I somehow need to tell my ETH0 port to use the 192..network, so that i can use my node-red-modbus node, and use the WLAN on my RASPI in a normal way to publish the data

It took me hours to even "see" the problem. I still dont know if i forumlated the problem correct.

Maybe someone has an idea or can point me in the right direction

Thank you

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [30 March 2023 11:09 UTC](https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076/2 "2023-03-30T11:09:51Z")

</div>

Hola Manuel\_o

If your Raspberry Pi ethernet and wifi have IPs in different ranges, eg 192.168.1.42 and 10.0.0.7 then I think you need to set the Pi up to bridge the networks.

Look in the Raspberry Pi documentation and forums for "bridging".

This is an operating system/networking issue rather than Node-red.

Alternatively, _maybe_ it will work if you use a cloud based MQTT server such as hivemq

---

<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:** [30 March 2023 12:28 UTC](https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076/3 "2023-03-30T12:28:11Z")

</div>

Do you mean the pump is connected to one end of an ethernet cable and the other end is connected to the pi and you don't have a router or anything else connected to that?

Do you not have access to the original LAN which is connected to a router where the pi is?

If my questions don't make sense then please paste a diagram showing the networks and cabling and routers that there are.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 March 2023 19:33 UTC](https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076/4 "2023-03-30T19:33:49Z")

</div>

On your Pi you need to set up a static IP (assuming it's just your PI and the pump connected to that network) - eg see Pi networking - [Configuring Networking on The Raspberry Pi](https://stevessmarthomeguide.com/configuring-networking-raspberry-pi/)

Then you should be able to ping the pump from the Pi...

Likewise you probably need to set the WLAN interface to DHCP as it then gets given an address from the Wireless AP / router you connect to... then the Pi should be able to ping wherever the wifi connects to.

If Node-RED is running on the Pi it shouldn't need to set up routing from one side to the other as it should be able to see both anyway, and that way the pump can't see the wifi (and vice versa) which is probably a good thing for safety/security.

---

<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:** [29 May 2023 19:34 UTC](https://discourse.nodered.org/t/use-eth0-and-wlan-on-a-raspi-at-the-same-time/77076/5 "2023-05-29T19:34:44Z")

</div>

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