How to enable DHCP on the Xiaomi router: step-by-step configuration

Modern home networks require flexible management of connected devices, and the centerpiece here is the automatic distribution protocol. IP-Xiaomi routers often face the need to fine-tune this process, especially when integrating a smart home or organizing a local server. By default, the address distribution system is active, but some use cases require manual intervention to change range or re-activate the function after a reset.

Understanding how it works DHCP-Mi Wi-Fi servers, which avoid conflicts IP-In this article, we will discuss in detail the process of logging into the control panel, activating the service and setting up the parameters of the address pool. You will learn not only to enable the function, but also to optimize its operation for the specific needs of your local network.

Before making any changes, it is important to make sure that your device is connected to the router via cable or Wi-Fi network with full administrator rights. Incorrect network settings can lead to temporary loss of access to the Internet, so follow the instructions carefully. We will consider both the standard web interface and the features of the Mi Home mobile application.

What is DHCP and why is it needed on Xiaomi?

The Dynamic Host Configuration Protocol is the foundation of today’s network infrastructure, automating the process of assigning unique identifiers to each connected device. IP-The address, subnet mask and gateway for every smartphone, laptop or TV in the home. Xiaomi routers are equipped with an integrated server that takes this task on itself, preventing duplicate addresses.

When you turn it on DHCP-The server, the router allocates a free address for a new client from a special range, and this address can be issued for a specific time, known as the rental time, after which the device must request its renewal. This system allows you to effectively manage a limited pool of 254 possible addresses in a standard subnet.

In Xiaomi devices, the implementation of the protocol is often complemented by the functions of linking the address to the MAC-This is critical for smart home devices, which need to be accessible at a permanent address to allow automation scenarios to work properly. Disabling this service puts the network into manual distribution mode, which is rarely required and only in specific configurations with multiple routers.

⚠️ Attention: Disconnection DHCP-A server without an alternative address source (e.g., another router or server) will cause new devices to be unable to connect to the network, and current devices will lose access after the lease expires.

Using automatic address sharing makes it easier to scale the network. You can connect a dozen new gadgets, and the Mi Router will allocate resources on its own. However, for advanced users, it is important to understand the boundaries of this pool to reserve addresses for printers or printers. NAS-storehouse.

Entrance to the router administrator panel

Network services require authorization to the device interface. There are two main ways to access: through a web browser on a computer or smartphone, and through an official application. The web interface provides the most complete functionality, including hidden settings that are not always available in the mobile version.

Open any browser and enter the standard gateway address in the address bar. For most Xiaomi models, it is 192.168.31.1 or the domain name miwifi.com. If the standard address has been changed before, you can check the current IP in the settings of your computer's network adapter in the "Primary Gateway" field.

The system will ask for an administrator password. Please note that this is not necessarily a Wi-Fi password, although often they are the default password. If you forget the password to log in to the settings, you will need to reset the device to factory settings through the Reset button on the case.

πŸ“Š What router management method do you prefer?
Web interface in the browser
Mobile app Mi Home
Mi Wi-Fi app
I don't use settings.

Once you successfully enter credentials, you will be taken to the main network status page, which displays current channel loads, number of connected devices, and Internet status. To navigate to DHCP settings, you usually need to go to the Settings or Common Settings section, which can be hidden in the System Status submenus depending on the firmware version.

Activation and configuration DHCP-server

Finding the right switch depends on the firmware version (Chinese or global). In global versions of MiWiFi firmware, the path often looks like Settings. β†’ LAN β†’ DHCP-In Chinese firmware, this section may be called "Internal Network" or have an icon similar to a computer network.

To enable the function, find a switch that says "Enable DHCP" or "Enable DHCP" and put it into an active position. The system can warn that changing the parameters will require rebooting network services, which will lead to a short-term connection break. This is normal equipment behavior.

β˜‘οΈ Checking settings DHCP

Done: 0 / 4

Once activated, fields are available to adjust the address range. Start IP and End IP define the pool from which the addresses will be issued. For example, if the initial address is 192.168.31.10 and the final address is 192.168.31.200, the server will be able to serve up to 190 devices simultaneously.

It is important to set the right rental time (Lease Time). For a home network, 120 minutes (2 hours) or 1440 minutes (24 hours) are optimal. Too short a rental time will create excessive traffic requests, and too long can lead to a shortage of addresses with frequent changes of guests on the network.

⚠️ Warning: Make sure the initial address of the pool DHCP It does not match the static IP-If the router has 192.168.31.1, the pool must start at least 192.168.31.2.

Static Addresses and Exceptions

In some cases, it is necessary that a particular device always receives the same IP-This is required to set up port port transfer, organize access to the FTP-server or video surveillance systems work correctly. Xiaomi routers allow you to assign an address to a specific address MAC-address.

For this purpose in the settings section DHCP Find a list of connected customers or a static section IP" (Static IP). Select a device from the list of active connections and assign it the desired address outside the main dynamic distribution range or within it, but with the priority of fixing.

The table below shows an example of the correct address allocation structure in the Xiaomi network:

Type of deviceRecommended IP rangeMethod of appointmentPriority
Router (Gateway)192.168.31.1Static (fixed)High-pitched
Server/NAS192.168.31.2 - 192.168.31.10Static bindingHigh-pitched
Smart home.192.168.31.11 - 192.168.31.50DHCP with redundancyMedium.
Guest devices192.168.31.100 - 192.168.31.254Dynamic DHCPLow.

Using reserved addresses makes it easier to administer, so you don't have to look up a printer or camera address every time in the connection list, because it's going to be permanent, and it's especially useful when setting firewall rules.

πŸ’‘

For devices that rarely connect to the network (such as guest laptops), it is best not to create static anchors so as not to occupy addresses in the unnecessarily pool.

Diagnostics of Address Distribution Problems

If the devices are connected to Wi-Fi, but do not receive IP-address (status β€œReceipt” IP-The address... hangs indefinitely, the problem often lies in the overflow pool DHCP You can see the list of rented addresses on Xiaomi routers (DHCP Client List to see which devices are taking up space in the pool.

A common cause of failure is the presence of a second router on the network, which also distributes addresses. If you use a cascading connection, the second device has a function. DHCP-The server must be disabled, leaving it active only on the main router, otherwise chaos will arise, and the devices will receive incorrect gateway settings.

You can use the command line on your computer to diagnose this, and type in ipconfig /release and then ipconfig /renew to force a new address from Xiaomi router, and if the address is successfully received (starts with 192.168...), then the server is working correctly.

What to do if the address pool is over?
If you have more than 250 devices on your network, you may not have the standard C range, so you should change the subnet mask to 255.255.254.0, which will expand the pool to 510 addresses, or segment the network into multiple VLANs if the router model supports this function.

It's also worth checking the system logs in the admin panel, and there may be records of address allocation errors or attempts to connect unauthorized devices. Some Mi Router models have a Blacklist feature that blocks the issuance of addresses to certain specific devices. MAC-address.

Features of settings in the Mi Home application

Xiaomi’s mobile network management offers a simplified interface where some technical details are hidden. To find DHCP settings, go to the router profile, select Settings and then Network Settings. The interface may vary depending on the version of the router plugin.

The mobile app often doesn’t have a fine-tuning of rental times or a detailed view of the table of rented addresses with manual editing, but basic server turn-on/off and guest network setup (which often has its own DHCP pool) are available in full.

If you have changed your settings through the web interface, they will be displayed in the application with a delay or require a page update. It is recommended that after a complex network configuration, you completely reboot the router through the application so that all services sync correctly.

⚠️ Note: When updating the router’s firmware through the application, all user settings, including static anchors IP, You can reset to factory values. Save the configuration in advance if this feature is available in your version of the software.

πŸ’‘

Optimal DHCP configuration balances the convenience of automatic connectivity with the need for fixed addresses for important network devices.

Frequently Asked Questions (FAQ)

Could DHCP enable slow down the internet?
The distribution process itself IP-Addresses consume the minimum amount of resources of the Xiaomi router processor and do not affect the data transfer rate. Slowdown is possible only when you connect a new device, when there is handshake and address assignment, but this takes a fraction of a second and is invisible to the user.
What if the router gives you 169.254.x.x?
Address in range 169.254.x.x This means that the device has not been able to respond to DHCP-This indicates that the service on the Xiaomi router is disabled, suspended or the device is out of reach.
How many devices can DHCP serve on Xiaomi?
Theoretically, the protocol supports 253 However, the performance of a particular Xiaomi router depends on the amount of RAM. Budget models can work unstable while connecting more 30-50 Active customers, even if IP-addresses will be assigned to them.
Do I need to change DNS when setting up DHCP?
By default, the router broadcasts DNS-Provider addresses. You can prescribe in settings to speed up work and improve security. DHCP server-address DNS, For example, Google (8.8.8.8) or Cloudflare (1.1.1.1) will apply to all connected devices automatically.
How to reset DHCP settings to factory settings?
If the configuration is broken, search the web-interface for a "Reset" or "Restore Factory Settings" button, which will return all parameters, including the address range (typically 192.168.31.100-192.168.31.200) and the status of the inclusion, to the original state.