1

I have already setup the RPi3 for share my internet connection (from eth1 usb ethernet dongle) to my eth0 (Rpi3 internal ethernet port).

The "ASCII diagram" is this:

Internet -> Fiber Router (192.168.1.1) -> Rpi3 # eth1 (usb dongle @ 192.168.1.10) -> Rpi3 # eth0 (192.168.0.1) -> switch -> my note (192.168.0.20)

It's working and I have all iptables filter working as well.

I'm using isc-dhcp-server to make the DHCP server for eth0.

It's possible to use the built-in RPi3 Wifi to share, by wlan0 the connection as well? I thought in Rpi3 wlan0 has the static ip 192.168.0.10 and share the connection the same way, together with the eth0 in the switch. How can I accomplish this?

Thanks in advance.

user105815
  • 13
  • 2

1 Answers1

0

As far as I understand you want to extend your local network with a wifi access point in addition to the wired network and all devices, no matter if they are associated to the access point or connected by wire, should have access to the internet.

This can be achieved with a bridge. The wifi interface wlan0 and the wired interface eth0 will become members of the bridge so all devices are on the same subnet. The bridge itself will route all traffic to the internet. You can setup it in two steps: first create the bridge and test it and in a second step you can setup routing between eth1 and the bridge to get the connection to the internet.

I have a suggestion using systemd-networkd. How I would setup it you can look at Configuring Raspberry pi as Router, Wifi and Ethernet Bridge.

Ingo
  • 42,961
  • 20
  • 87
  • 207