1

I would like to have the following setup. Please note that I'm a beginner therefore "Bridge" is in quotes.

                  WiFi                       LAN
192.168.1.0/24 <~.~.~.~> (wlan0) RPi (eth0) ----- device (192.168.1.15)

Firewall 192.168.1.10
DNS&DHCP 192.168.1.1                       

I'm using RPi 3B with Debian Stretch. The device is some device that is not able to connect to WiFi and has the static ip.
Connecting my notebook to the network should allow me to access the web interface of the device. I've already searched the web for days - with zero success.

Thanks for any help.

  • They are on the same network, therefore they should be able to communicate without you doing anything. You don't need to bridge wlan and cabled lan to communicate within the same network. How is your firewall configured and why has it an extra address? What is the address if your PI? Is it within the 192.168.1.X network? – BadSnowflake Apr 17 at 5:58
  • the firewall is on 192.168.1.10 and the 192.168.1.1 is a WinServer2012R2 doing DNS and DHCP services – statho Apr 17 at 6:01
  • See my edit, which address does the lan interface on the PI have? – BadSnowflake Apr 17 at 6:02
  • wlan0 192.168.1.125 (from dhcp) lan0 I've tried different setting none worked. Which IP should I configure? – statho Apr 17 at 6:20
  • Your question is rather unclear. Using the Raspberry Pi as an access point to share an internet connection (bridge) may help with configuring a bridge. Normally with a bridged interface the IP Address is assigned to the bridge, not the interfaces which are bridged together. It would be simpler to plug the "device" into your router – Milliways Apr 17 at 7:10
0

As far as I understand you have a router running on subnet 192.168.1.0/24. This router also works as access point for that subnet. The RasPi is connected as client to the access point.

In this case it is not possible to bridge wlan0 and eth0 on the RasPi. To bridge a WiFi client connection it must be supported by the WiFi device with WDS (Wirless Distribution Service) and 4addr. The WiFi on-board chip of the RasPi doesn't support it. For details you can look at Raspberry Pi WiFi to Ethernet Bridge for a server?.

I see three possibilities:

  1. Purchase an USB/WiFi dongle that supports WDS. Then you can make a real bridge.
  2. If you only want to connect to the web server on the device, you can use routing with port forwarding. An example of this setup for a printer you can find at Share Ethernet printer on Wi-Fi.
  3. You can use a pseudo bridge with proxy arp. For an example of this setup you can look at Workaround for a wifi bridge on a Raspberry Pi with proxy arp.
  • I chose your first option an bought a real bridging device. – statho Apr 29 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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