I'm trying to replace my router's DHCP server as it doesn't allow me to change DNS configuration.
My router is Brovi H158-381 and my Openwrt device is Nanopi R5S.
My router is plugged from LAN into R5S WAN port.
My plan is to use the Router (H158) to access the internet and as a WIFI access point, but I want openwrt to manage DNS and DHCP server for IP allocations on all devices connected to the main router WIFI or through Nanopi's LAN.
The problem I'm facing now is when connecting devices to the router WIFI they don't get an IP address from openwrt. However devices connected through LAN directly on openwrt can access the internet.
This is my network settings on openwrt. openwrt IP address is 192.168.8.2. Internet router IP is 192.168.9.1.
Apologies for the late response and I appreciate your assistance.
I have attempted several configurations but never reached a satisfactory solution.
So the setup I’m trying to achieve is for my 5G CPE device to connect to the internet and work as a WIFI access point. And for my Nanopi to work as a DHCP server that assigns all lan IPs (including those connected to the WIFI access point) and DNS.
The most satisfactory result I reached where I used both device for DHCP, where my WIFI uses 192.168.9.(wan) the Nanopi(lan) 192.168.8..
The result was I’m able to connect to the internet on all devices. Devices from lan can communicate with wan devices but not the other way around.
I tried to bridge the interfaces and remove WAN interface, then insured that the gateway is my 5G device IP. This resulted in no internet access.
If some configuration files or outputs can be shared to make this easier to solve or understand I will be happy to share.
Does your upstream device (the 5G CPE) have support for static routes? Look through the user interface to see if it has a place for users to add custom static routes.
I would love to have one DHCP server, but I realized that my router would need to support static routes from searching the internet.
So, if both my router and Openwrt devices ran their own DHCP servers and I got the devices connected to the router (at 192.168.9.) to be able to connect devices connected to openwrt (at 192.168.8.) then I would have reached a solution.
With 2 interfaces one for lan and one wan, each with their own firewall. All devices cant communicate with each other, but the internet work on all devices.
With 2 interfaces one for lan and one wan, both sharing default lan firewall. Devices from lan can communicate with wan devices, but not the other way around. And I would have no access to the internet.
I tried to bridge both interfaces and disabled DHCP on my router. Devices that connected via WIFI on the router would not get an IP and I would not have internet on my lan devices.
My goal would be for the 5G CPE to work as a WIFI access point and to access the internet.
And for my Openwrt device to work as a firewall and a DNS server for my network. And for all devices connected through WIFI or LAN to be able to communicate with each other.
It would be optimal to just change the default DNS server on my router, but it doesn't allow changing from default DNS server.
Basic paint drawing of how my network is setup currently.
Ok... that's fine. What devices would use this wifi connection? They would not be behind OpenWrt's routing/firewall... so would these be your trusted devices or untrusted such as guest devices?
Does your OpenWrt device have wifi?
This will not be possible with your current CPE device. Your wired devices will be able to connect to the wireless devices, but not vice versa.
DNS doesn't have much to do with this... it's a secondary element, at best.
It does not. However, it can be added through PCIe card or USB dongle.
I also have the option to return or exchange the router for a TP-Link nx510v which seems from video reviews to have static routes and more options than the H158
As in, it would be connected to my Openwrt router through LAN to provide WIFI access? I thought about it, but I thought I can use the WIFI from the CPE itself if possible. Otherwise this could be an option.