Raspberry Pi 3 access point without DHCP Server.

    • OMV 3.x (stable)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Raspberry Pi 3 access point without DHCP Server.

      Hello,

      I have OMV 3.0.13 (Erasmus) running on Raspberry Pi 3 with Linux 4.1.19-v7+ (Jessie). Everything is working fine and now I am trying to use the built-in WI-FI of the Raspberry Pi 3 as Access Point.

      The RPi3 is connected to the LAN using the ethernet card and the network IP is 192.168.1.0, the RPi3 IP is 192.168.1.10 (static address).

      I did the following to have WI-FI access point on the RPi3:

      1. Install the necessary software:

      Source Code

      1. apt-get install hostapd hostap-utils iw bridge-utils


      2. Edit the file Hostapd:

      Source Code

      1. nano /etc/init.d/hostapd


      Source Code

      1. DAEMON_CONF=/etc/hostapd/hostapd.conf


      3. Configure Hostapd.conf

      Source Code

      1. nano /etc/hostapd/hostapd.conf


      Source Code

      1. ctrl_interface=/var/run/hostapd
      2. ###############################
      3. # Basic Config
      4. ###############################
      5. macaddr_acl=0 auth_algs=1
      6. # Most modern wireless drivers in the kernel need driver=nl80211
      7. driver=nl80211
      8. ##########################
      9. # Local configuration...
      10. ##########################
      11. interface=wlan0
      12. bridge=br0
      13. hw_mode=g
      14. ieee80211n=1
      15. channel=1
      16. ssid=RaspberryPI_AP
      17. macaddr_acl=0
      18. auth_algs=1
      19. ignore_broadcast_ssid=0
      20. wpa=3
      21. wpa_passphrase=PASSWORD
      22. wpa_key_mgmt=WPA-PSK
      23. wpa_pairwise=TKIP
      24. rsn_pairwise=CCMP
      Display All


      4. Change the interfaces file (append the following to the file):

      Source Code

      1. auto br0
      2. iface br0 inet static
      3. address 192.168.1.11
      4. netmask 255.255.255.0
      5. network 192.168.1.0
      6. broadcast 192.168.1.255
      7. gateway 192.168.1.1
      8. bridge-ports eth0 wlan0


      5. Reboot RPi3 or run the following command:

      Source Code

      1. ​sudo service hostapd restart


      Everything runs fine, I am able to connect to the WI-FI network and have internet through the RPi3. The main problem is that I loose connection to the RPi3 on the IP 192.168.1.10 and I can't figure out why.

      Can you please guide me through this?

      Thanks
      OS/Debian information Distributor Description: Raspbian GNU/Linux 7 (wheezy) Release: 7.8 Codename: wheezy
      OpenMediaVault information Release: 1.11 Codename: Kralizec
    • So, as I understand it, you have the raspi connected to "the internet" (a home xDSL router?) and then you want the same raspi to be a WAP?

      Is this so that you can access OMV from both internally and externally?
      Are you trying to route all wifi through the raspi?
      Do you also have another device providing wifi - or is the raspi going to be the only WAP?

      I suspect that any packets arriving at the raspi don't know which interface to return by (because they are bridged), hence losing your connection - ie standard networking issue, rather than a "raspi" or "omv" issue...

      Hmm... personally, I would keep both ports on separate subnets - so the wlan0 could be 192.168.2.0/24 and the eth0 would remain 192.168.1.0/24 and then just route internet connections to the xDSL router (or whatever is the next hop).

      My raspi3 (just running owncloud) has a single connection to the home network (which permits internal access) and my firewall is setup to allow incoming traffic to the pi (which permits external access).