Hi Vo Duy Hieu, On Tue, May 16, 2017 at 8:52 AM Vo Duy Hieu wrote:
> Sorry for my late reply. > Now, my clients can receive IP from OpenWRT via OpenWiSP template > configuration. Here's my JSON configuration file. > [cut] I'm glad you made it. I would have done it slightly differently, but what's important is that it's working. I've just added DHCP field into JSON file, so that clients now can receive > IP from OpenWRT devices. > Now, I wonder if I can get a IP from my OpenWiSP Controller (OpenWRT > devices now act like a DHCP agent and OpenWiSP Controller is a DHCP > Controller). Can you help me? Thanks you! > If I understood correctly, you want a centralized DHCP server right? In that case, you have to have all your devices and openwisp2 instance on the same layer2 network: devices and DHCP server must be on the same LAN, or wifi and LAN bridge together, or you will have to use Layer2 VPNs (eg: OpenVPN TAP) to connect different buildings. It depends on your use case scenario, but as a general suggestion, you can use dnsmasq as a centralized DHCP server and turn off all the DHCP servers on the OpenWRT routers. If you need to use a layer2 VPN, you can use OpenVPN in bridged mode, which is supported by OpenWISP 2 (although there's not much documentation or step by step tutorial on how to set it up yet). Federico -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
