To connect to the router I had to set a fix ip address (192.168.1.10) to my network card.
I had tried to activate DHCP as an authoritative server but is not working. When active as default config the server get the ip's from the Internet provider router. So I can't connect to the router.
I can't find a tutorial to use the Luci or SSH to configure the DHCP.
In a default configuration, the DHCP server is enabled on the lan. It will only be disabled if you manually change the config, or if it detects a DHCP server on the lan segment already (from another DHCP server, possibly from a router).
What is the physical topology of the network? Can you show us a diagram including the port labels?
O.k., shouldn't be necessary, but that should work nevertheless.
It is by default (unless there already is another dhcpd active on your physical network).
That suggests a misconfiguration, in the sense of your OpenWrt-router's lan overlapping with the ISP-router's lan. Not surprising based on the first sentence.
All in all, we have way too little information to answer. We don't know the network topology (how is the OpenWrt router connected to the ISP router, how is the 'server' connected, what IP addresses are all three devices using), nor what the (OpenWrt-) config config is, nor what functionality you actually intend your setup to serve.
The ISP router has an authoritative DHCP. The openwrt is connected directly to the ISP through the WAN port.
The openwrt by default provides DHCP from the ISP router. But I want to make the openwrt as authoritative to provide the Lan ip's instead of from ISP router.
The ISP provides 10.35.126.x/24 ip's. The openwrt router is set to 192.168.1.1 so I need the Lan to be 192.168.1.x/24 to be able to reach it.
I need to change it because the ISP has limited capacity, it can handle less than 10 devices.
The isp router should have zero influence over the lan’s dhcp server if things are properly configured.
Let’s start by looking at the config.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
ifstatus wan | grep address
Based on the condig, a port plugged into one of the lan ports (excluding the one repurposed for a second wan) should get an address from the openwrt routers dhcp server in the 192.168.1.0/24 network.
Is this assertion different than what you are observing?
Disconnect the ISP router, reboot the OpenWrt router, reboot (a few of-) your clients - everything should (~=must) be normal then. The OpenWrt router will hand out DHCP leases out of the 192.168.1.x subnet (as confirmed by logread ; lograde -f), it's acting as authoritative DHCPd and DNS server.
After this test, you can plug the ISP router into the WAN port of your OpenWrt router again, there should be no change - just that your clients now have internet access. Rebooting the client(s) should result in the same experience (again).
How does the rest of the network look, are both ISP router and OpenWrt router connected to a switch on their LAN- Ports? Or are they the only devices in the network apart from phones, laptops, etc.?
Are the devices connected via Ethernet or WiFi? You didn’t share your WiFi config. Also, make sure your isp router WiFi is either disabled or using a different ssid than your openwrt device.
The ISP router is the wall and OpenWrt is connected to the ISP router. From the ISP router there are two connections to the OpenWrt to simulate a dual WAN connection but that is another problem/topic.