Configurar DHCP en OpenWRT
Configurar DHCP en OpenWRT
Hello everyone, I'm using an OpenWRT router with a main LAN named "lan" that has the IP 10.230.0.1. When devices connect via Ethernet or Wi-Fi, they receive 10.0.0.x instead of the original 10.230.0.1. The network still works online, but I'm curious about why this change occurs and if it's possible to fix it. My goal is to have a guest network using 10.0.0.x and understand what's happening after I reset and reconfigured the router today. Previously, with the same setup, a guest WAN at 10.0.0.1 gave all devices the same address, and wireless connections often failed to provide internet access. Any suggestions would be appreciated.
My subnet mask is 255.0.0.0. Regarding the DHCP range, I’m not sure. OpenWRT doesn’t display that information clearly. In the DHCP settings, you can turn the server on/off and adjust a few other options, but the range isn’t changed like with most routers.
This explains why your router's IP is 10.230.0.1 and it can reach devices on 10.0.0.1. Your network range is essentially 10.x.x.x. Since you're using LEDE, the interface might differ from OpenWRT, but the settings are under LAN interfaces. Adjust the interface where DHCP is enabled and at the bottom. It's a basic setup—start with the DHCP pool location and end it where you want. I suggest changing your router IP to 10.0.0.1, updating the subnet mask to 255.255.255.0, and setting the DHCP range from 100 to 100. If you need a separate guest network, use 10.1.0.1 with a 255.255.255.0 mask, starting at 100 and going up to 50.
Great job setting up the guest network! Your LAN is at 10.230.0.1 and the guest LAN at 10.230.1.1, with firewall rules from OpenWRT.org. The subnet mask is now correctly set to 255.255.255.0 for both networks. Thanks for sharing your progress—OpenWRT is definitely making you learn more!