On Tue, Jan 17, 2017 at 6:52 PM, k3ll <[email protected]> wrote:
> Hi,
> I have some issues trying to configure my BBB as fully functional AP.
> The BBB is connected on eth0 to my home router. eth0 is a DHCP client for my
> home LAN.
>
> home router [DCHP server] --- ETH0 [DHCP client] --- BBB --- Wlan0 [AP &
> DHCP sever] --- My laptop [DHCP client]
>
> I managed to enable AP mode on a wifi USB dongle.
> From the BBB i can ping google.com.
> I can successfully connect to the BBB from my laptop acting as a WiFi
> client.
> I am not able to surf the web from my laptop.
>
> some conf files:
>
> cat /etc/network/interfaces
>
> auto lo
> iface lo inet loopback
> auto eth0
> iface eth0 inet dhcp
> # WiFi
> auto wlan0
> iface wlan0 inet static
> address 192.168.10.1
> network 192.168.10.0
> netmask 255.255.255.0
> broadcast 192.168.10.255
> hostapd /etc/hostapd/hostapd.conf
> _________
>
>  cat /etc/hostapd/hostapd.conf
> interface=wlan0
>
> ### Set your bridge name ###
> #bridge=br0
>
> #driver
> #driver=8192cu
>
> country_code=IT
> ssid=bblack_iot
> channel=7
> hw_mode=g
> # # Static WPA2 key configuration
> # #1=wpa1, 2=wpa2, 3=both
> wpa=2
> wpa_passphrase=*********
>
> ## Key management algorithms ##
> wpa_key_mgmt=WPA-PSK
> #
> ## Set cipher suites (encryption algorithms) ##
> ## TKIP = Temporal Key Integrity Protocol
> ## CCMP = AES in Counter mode with CBC-MAC
> wpa_pairwise=TKIP
> #rsn_pairwise=CCMP
> #
>
> ## Shared Key Authentication ##
> auth_algs=1
>
> ## Accept all MAC address ###
> macaddr_acl=0
> #enables/disables broadcasting the ssid
> ignore_broadcast_ssid=0
>
> # Needed for Windows clients
> eapol_key_index_workaround=0
>
> I tried bridging wlan0 and eth0 but in that case I should assign static IP
> to br0, and I can't, I need the network interface connected to my home
> router to have a dynamic IP address..
> Any idea on a possible configuration?

So, we actually have this setup in the default image's..

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Debian_Image_Testing_Snapshots

As long as eth0 is present, wlan0 get's setup as wifi ap, routing all
trafic upstream eth0..

Behind the scene's it's actually connman doing the work, remove wlan0
from your /etc/network/interfaces

and just run:

sudo connmanctl enable wifi
sudo connmanctl tether wifi on bblack_iot ${wifi_password}

Or just grab the IOT image on a 2nd microSD card:

https://rcn-ee.com/rootfs/bb.org/testing/2017-01-15/iot/

bone-debian-*.img.xz

you can also manually edit

/var/lib/connman/settings

here's our defualt:

**************
[WiFi]
Enable=true
Tethering=true
Tethering.Identifier=BeagleBone
Tethering.Passphrase=BeagleBone
**************

and just:

sudo /etc/init.d/connman restart


Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYipO19uR-jsVM28QOMSO6E2SccPT1zs2F3XdSS4U%3DNEuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to