Hi,
BluRazPi wrote:what is the easiest or simplest way to bridge the wifi to the Ethernet on the pi?
This kind of answers always depend of the knowledge/skills somebody has...
Since you haven't provided enough details, I/we have to make some assumptions. But let's set naming conventions first:
- WiFi net = network where RaSPi WiFi adapter is connected to,
- Ethernet net = network where RaSPi Ethernet adapter is connected to,
Assumptions:
- RasPi is not WiFi AP,
- Ethernet net is connected further to the internet,
- WiFi net is the latest in the chain (their nodes communicate either to each other or with the rest of the world via Ethernet net).
For easier explanation let's say that you use the following IPs:
- Ethernet net = 192.168.111.x
- WiFi net = 192.168.222.x
So, dive into the following configuration steps:
- Configure RasPi WiFi dongle to connect to the WiFi AP,
- Make sure that RasPi WiFi interface has static IP address (eg. 192.168.222.2),
- Make sure that RasPi Ethernet interface has static IP address (eg. 192.168.111.2),
- On the WiFi DHCP server define default gateway as 192.168.222.2 (= RasPi's WiFi IP),
- On the Ethernet router add route to net 192.168.222.x via 192.168.111.2 (= RasPi's Ethernet IP).
- Enable IP forwarding on RasPi.
- Make sure that the default route on the RasPi is set to Ethernet router.
- and... my standard item: configure firewall on the RaSPi.
Done.
Best wishes, Ivan Zilic.