Page 1 of 1

Raspberry pi wireless bridge

Posted: Wed Jun 25, 2014 2:59 pm
by BluRazPi
I know this topic has been posted a few times, but my problem is that each one is a different way of setting up bridging and I've tried many of them with no success.(in the process I have probably ruined several config files too!) My question is: what is the easiest or simplest way to bridge the wifi to the Ethernet on the pi?

Thank you for any help,
BluRazPi

Re: Raspberry pi wireless bridge

Posted: Wed Jun 25, 2014 3:28 pm
by FLYFISH TECHNOLOGIES
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.

Re: Raspberry pi wireless bridge

Posted: Thu Jun 26, 2014 12:30 am
by BluRazPi
Hi, sorry, I totally forgot specs! So it's a model b raspberry pi, running Raspbian, I think the latest version but I'm not sure. If I wasn't clear in my question, what I want to accomplish is to rout the pi's wifi through the Ethernet so I can connect to the internet with a computer that is limited to wired connections. You're solution kinda left me puzzled as I am not super savvy with tinkering with static ip addresses, or raspberry pi network config stuff for that matter. Does using static ip addresses make it easier than DHCP?

Thank you for the help,
BluRazPi

Re: Raspberry pi wireless bridge

Posted: Thu Jun 26, 2014 12:49 am
by FLYFISH TECHNOLOGIES
Hi,
BluRazPi wrote:what I want to accomplish is to rout the pi's wifi through the Ethernet so I can connect to the internet with a computer that is limited to wired connections.
So, this your goal:
PC-------Ethernet-------RasPi-------WiFi-------AP-------(Internet)
BluRazPi wrote:You're solution kinda left me puzzled as I am not super savvy with tinkering with static ip addresses, or raspberry pi network config stuff for that matter.
Then do your homework: paste each my listed item in google and read.
These are all very standard and basic subjects described on many pages. Be aware that google is your best friend.
BluRazPi wrote:Does using static ip addresses make it easier than DHCP?
Static IPs are mandatory for interfaces used in traffic routing path.


Best wishes, Ivan Zilic.