0

Is it possible to connect to two separate networks with a Raspberry PI 5, one using the Wifi interface where a Web application is accessible by a fixed known IP and another where the Ethernet interface gets an IP by DHCP based on its MAC address?

enter image description here

5
  • What have you tried? Why didn't it work? See forums.raspberrypi.com/viewtopic.php?t=378054
    – joan
    Commented Oct 17 at 7:21
  • NOTE you are NOT "create(ing) two separate networks" but accessing them (the networks must exist) although it is unclear WHY you would WANT a static IP (unless you are attempting to create an Access Point on the Pi - in which case the arrow should point the other way).
    – Milliways
    Commented Oct 17 at 7:31
  • 1
    of course it is possible, Linux is a very powerful operating system
    – jsotola
    Commented Oct 17 at 14:01
  • A static IP is useful if you do not want to rely on MDNS hostnames etc., and if configured properly (which should usually include an explicit reservation on the router), will work without problems.
    – goldilocks
    Commented Oct 18 at 14:32
  • If you expect an answer that might help move you closer to your stated objective, you will have to disclose what changes you've made with Network Manager - or nmcli if you're using the "Lite" version of the OS. If you don't understand what I'm saying, start with this search.
    – Seamus
    Commented Oct 18 at 20:11

1 Answer 1

1

Is it possible to connect to two separate networks with a Raspberry PI 5

Yes, the two interfaces are independent of one another and would have different addresses and the full range of ports (opening a specific listen port can apply to all, some, or just one interface); the system will then route traffic to one or the other based on destination.

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