I really need some help with the raspberry networking stuff. I try to set up an Access-Point. I want to Access my Raspberry Wifi "Blackbox". After that I want to connect to "box" (192.168.100.2) over SSH. "box" should be able to connect to NTP TimeServer, if an internet connection is available over wlan1 (USB2)
___ ___________
| | eth0 | | wlan0(Accesspoint)
|box|-----<Eth USB1>EdimaxWlanStick <<<<<< PC/Laptop/Smartphone
|___| | Raspberry |
| Pi | wlan1(Connection to Router for Internet)
| USB2>EdimaxWlanStick >>>>>> Router >>>> Internet
|___________|
My /etc/network/interfaces looks like this:
auto eth0
iface eth0 inet static
address 192.168.101.1
netmask 255.255.255.0
auto wlan0
iface wlan0 inet static
address 192.168.102.1
netmask 255.255.255.0
auto wlan1
iface wlan1 inet dhcp
wpa-conf /etc/wpa.conf
auto br0
iface br0 inet static
bridge_ports eth0 wlan0
address 192.168.100.1
netmask 255.255.255.0
My /etc/hostapd/hostapd.conf
interface=wlan0
ssid=Blackbox
channel=10
driver=rtl871xdrv
ieee80211n=1
hw_mode=g
device_name=RTL8188CUS
manufacturer=Realtek
wpa=2
wpa_passphrase=********Secret
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP
# Other settings
beacon_int=100
auth_algs=3
wmm_enabled=1
Connecting to Wifi Blackbox works fine. Connecting over SSH to the box, too. Internet on Raspberry also works fine.
When I try to ping Google-Server from the Raspberry, everythink works fine.
When I try to ping the same Server from the box, no Internet Connection is available.
Anyone an idea how to bridge the Internet Connection to the box and maybe also to the connected PC/Laptop/Smartphone ?
sudo brctl show br0