Setting up DHCP-Xiaomi router servers are a key step for automatic distribution IP-Without the right configuration, devices will not be able to connect to the Internet, and manual assignment of addresses will be a headache. In this article, we will discuss not only the basic setting, but also advanced options that will help avoid conflicts. IP, Speed up the network and protect it from unauthorized access.
Feature of Xiaomi routers (series Mi Router) 4/4A/5/6/AX3000/AX6000) β It's a simpler web interface that hides some of the settings behind advanced options, and we'll show you where to look for those options, how to set them, and what to do if you want to do something. DHCP You'll also learn how to reserve. IP-addresses for important devices (e.g, NAS-servers IP-The camera and why it is sometimes better to turn off DHCP altogether.
What is DHCP and why you should set it up on a Xiaomi router
DHCP (Dynamic Host Configuration Protocol is a protocol that automatically assigns IP-Without it, every gadget (smartphone, laptop, smart speaker) would have to manually write network settings, a task that is not realistic for a modern home with a dozen connected devices.
On Xiaomi routers DHCP-The server is turned on by default, but its standard settings are not always optimal, for example, the range of addresses you can give away may overlap with the redundant ones. IP, And the lease time is to be too short, which leads to frequent reconnections:
- π Avoiding conflict IP-address-to-device;
- π‘οΈ Protect the network from connecting third-party devices;
- β‘ Accelerate the connection of gadgets due to optimal rental time;
- π‘ Reserve fixed fixed IP for servers, printers or cameras.
If you are using a router in repeater mode or connected to another router, it is better to turn off DHCP on Xiaomi to avoid double address distribution.
Preparation for setting up: login to the router web interface
Before you change the DHCP settings, you need to go to the router control panel.
- Connect to the router network via Wi-Fi or via Ethernet cable.
- Open your browser and type in the address bar 192.168.31.1 (standard IP for Xiaomi) or miwifi.com.
- Enter the login and password (by default β admin and password specified on the sticker of the router).
If the page does not open:
- π Check the physical connection of the cable (if you use Ethernet);
- πΆ Make sure you are connected to the correct Wi-Fi network;
- π Reset the router with the Reset button (hold 10 seconds).
π‘
If you forget the router password, reset it to factory settings by holding the Reset button on the router. 15 After reset, the login/password will become standard (admin/admin or see sticker).
Once you log in, you will see the main interface page. Depending on the model (Mi Router 4A or AX6000), the design may differ, but the DHCP section is always in the Additional Settings menu β Local Area Network or Network Settings β LAN.
Basic DHCP setting on Xiaomi router: step-by-step instructions
Go to the DHCP settings section. In most models, the path looks like this:
Additional settings β Local network β DHCP settingsYou will open a form with the main parameters:
| Parameter | Recommended value | Explanation |
|---|---|---|
| Turn it on. DHCP-server | β Included. | Disable only if the router is running in repeater mode or connected to another DHCP-server. |
| Initial. IP-address | 192.168.31.100 | It is best to start with.100 to leave room for static IPs (e.g. servers). |
| Finite IP-address | 192.168.31.200 | 100 addresses are enough for a home network, and you can expand to.250 for an office. |
| Lease Time (Lease Time) | 24 hours. | Too short a time (for example, 1 hour) will lead to frequent reconnections. |
| Main lock | 192.168.31.1 | Usually the same as the IP router. Only change if you use a non-standard subnet. |
After changing the settings, click Save and wait for the router to restart (usually takes 1-2 minutes).
Whether it's on DHCP-server?|Range. IP It does not overlap with static addresses?|Renting time of at least 12 hours?|The main lock is the same as IP router?-->
Reservations IP-addresses (Static) DHCP) essential
If you have devices on your network that need a constant IP (for example, IP-camera, NAS-servers or printers, use the redundancy function DHCP (It is also called Static. DHCP or IP This will allow you to assign the same addresses to the same devices automatically without having to manually configure each device.
How to set up reservations on Xiaomi routers:
- Go to Additional settings β Local Network β Address Reservation.
- Press Add Device.
- Select the device from the list of connected or enter it MAC-manual.
- Specify what you want. IP-address (e.g. 192.168.31.50 for printer).
- Save the settings.
Important: Reserve IPs should be outside the DHCP range to avoid conflict, for example, if DHCP is giving out addresses from.100 to.200, reserve addresses in the range of.2 to.99.
How to find out MAC-address?
Example of correct configuration:
- π¨οΈ Printer: 192.168.31.50 (MAC: 00:1A:2B:3C:4D:5E);
- πΉ IP-camera: 192.168.31.51 (MAC: AA:BB:CC:DD:EE:FF);
- πΎ NAS-server: 192.168.31.52 (MAC: 11:22:33:44:55:66).
π‘
Reserving IP via DHCP is more reliable than manually configuring on a device: even after resetting the gadget, it will receive its address automatically.
Advanced DHCP Settings: Optimization and Security
For power users, Xiaomi routers (especially the AX3000 and AX6000) offer additional DHCP options to help improve network performance and security:
- π Filtration by MAC-Addresses: Allows connection only to devices on the "white list" Included in Additional settings β Security β Filtration MAC.
- π Logs. DHCP: journaling IP-Addresses (useful for problem diagnosis) Included in System Tools β Magazines.
- π Standby DHCP-server: if there are two routers on the network, you can configure a backup server in case of failure of the main one (relevant to the main one). AX6000 MiWiFi-based R6000).
One of the most useful, but hidden parameters is the setting DNS-servers that DHCP hand out IP. Xiaomi is using the default DNS The service provider can replace them with faster and safer:
| DNS-server | IP-address | Advantages |
|---|---|---|
| Cloudflare | 1.1.1.1, 1.0.0.1 | It is fast and supports DNS-over-HTTPS. |
| Google DNS | 8.8.8.8, 8.8.4.4 | Reliable, but it collects data for analytics. |
| AdGuard DNS | 94.140.14.14, 94.140.15.15 | Blocks ads and trackers at the DNS level. |
To change the DNS:
- Go to Additional Settings β Local Network β DHCP settings.
- Find the Basic DNS and Secondary DNS fields.
- Enter the addresses of the selected servers (e.g. 1.1.1.1 and 8.8.8.8).
- Save the settings and restart the router.
π‘
After the shift DNS Some sites have stopped opening, return the providerβs settings or try another one. DNS-server.
Frequent DHCP Configuration Errors and How to Fix Them
Even after you set up your DHCP properly, you can have problems, and here are the most common errors and ways to fix them:
β οΈ Note: If you have changed your settings DHCP devices have stopped connecting to the network, check whether the range of addresses given out conflicts with static ones. IP. For example, if you manually assigned the device to address 192.168.31.150, and DHCP It gives out addresses up to.200, there's no conflict, but if you're static, IP range DHCP (For example,.120 when it is distributed.100-.200, the router will block the network.
Problem 1: Devices get IP but no internet access.
- π Check if the main gateway is correctly specified (should match the IP router).
- π Make sure that in the settings DHCP correct DNS-server.
- π Restart the router and device.
Problem 2: DHCP does not give out addresses (devices receive IP type 169.254.x.x).
- β‘ Check if it's on. DHCP-server.
- π Make sure your device is connected to the correct network (not the guest network).
- π οΈ Reset your network settings on the problem device (e.g. on Android: Settings) β System system β Reset β Resetting Wi-Fi settings).
Issue 3: Conflicts IP-address.
- π Check the range DHCP static IP cross-roads.
- π Reduce your lease time to 12 hours to free up unused addresses faster.
- π‘οΈ Turn on the filtering by MAC-Addresses if unknown devices appear on the network.
If the problem is not solved, try resetting the router to factory settings and configuring the DHCP again. On the Mi Router 4A and AX3000 models, hold the Reset button for 10-15 seconds.
When to turn off DHCP on the Xiaomi router
In some cases, DHCP on the Xiaomi router is better to disable:
- π‘ If the router is running in repeater or access point mode (AP). In this case, DHCP It should only be enabled on the main router.
- π₯οΈ If there is already another network DHCP-server (e.g., on a Windows server or MikroTik router) DHCP-Servers on a network will lead to conflicts.
- π‘οΈ If you use VPN-a server or advanced routing, where IP-Addresses are assigned manually or through another protocol (e.g. PPPoE).
To disable DHCP:
- Go to Additional Settings β Local Network β DHCP settings.
- Remove the box from the item Include DHCP-server.
- Save the settings and restart the router.
β οΈ Attention: After disconnection DHCP All devices on the network will lose access to the Internet until you assign them. IP-Manual address or do not include another DHCP-This is relevant for office networks, but not recommended for home use without experience.