Tundratier
Posts: 3
Joined: Fri Aug 29, 2014 11:13 am

WLAN to Ethernet bridge using same network

Fri Aug 29, 2014 11:33 am

Hello everyone.

I am stuck trying to create a bridge between the WLAN and ethernet interfaces of the Raspberri Pi.
I am trying to achieve the following:

Image
http://s7.directupload.net/images/140829/uv57w7vg.png

The most important part is that the clients that are connected to the switch are inside the same network as any device connected directly to the WLAN and receive their IPs via the WLAN's DHCP Server.

I tried it with

Code: Select all

bridge-utils
and this network config:

Code: Select all

auto lo br0
iface lo inet loopback

iface eth0 inet dhcp
iface wlan0 inet dhcp

iface br0 inet static
bridge_ports wlan0 eth0
address 192.168.178.254
broadcast 192.168.178.255
netmask 255.255.255.0
gateway 192.168.178.1

wpa-iface wlan0
wpa-bridge br0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
But when I'm using this config I cannot access the Pi from any network anymore.
Can anyone give me a hint on how to achieve my goal?

Much thanks in advance,
Tundratier

Return to “General discussion”