How to set the IP range for the DHCP server in OpenWrt?

To configure the IP range of the DHCP server in OpenWrt, you can follow these steps:

  1. Log in to the management interface of OpenWrt.
  2. Click on the “Network” tab, and then select the “DHCP and DNS” subtab.
  3. 在”Interfaces”(接口)部分,找到并点击”LAN”(局域网)接口。
  4. In the “General settings” section, locate the “IPv4 address” field.
  5. In this field, input the range of IP addresses you want to assign to DHCP clients. For example, if you want to assign IP addresses from 192.168.1.100 to 192.168.1.200, you can enter “192.168.1.100” as the “IPv4 address” and then enter “101” as the “IPv4 netmask”. This way, the DHCP server will assign IP addresses from 192.168.1.101 to 192.168.1.200 to clients.
  6. Click “Save & Apply” to save the settings and apply the changes.

Once the above steps are completed, your OpenWrt router will assign IP addresses to clients using the specified IP range as the DHCP server.

bannerAds