How to set up DHCP on Xiaomi router: a detailed guide with expert advice

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.

πŸ“Š What kind of Xiaomi router do you have?
Mi Router 4/4A
Mi Router 5/6
AX3000/AX6000
Another Xiaomi
Not Xiaomi.

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.

  1. Connect to the router network via Wi-Fi or via Ethernet cable.
  2. Open your browser and type in the address bar 192.168.31.1 (standard IP for Xiaomi) or miwifi.com.
  3. 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 settings

You will open a form with the main parameters:

ParameterRecommended valueExplanation
Turn it on. DHCP-serverβœ… Included.Disable only if the router is running in repeater mode or connected to another DHCP-server.
Initial. IP-address192.168.31.100It is best to start with.100 to leave room for static IPs (e.g. servers).
Finite IP-address192.168.31.200100 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 lock192.168.31.1Usually 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:

  1. Go to Additional settings β†’ Local Network β†’ Address Reservation.
  2. Press Add Device.
  3. Select the device from the list of connected or enter it MAC-manual.
  4. Specify what you want. IP-address (e.g. 192.168.31.50 for printer).
  5. 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?
On Android: Settings β†’ The phone. β†’ General information β†’ MAC-Wi-Fi address. On iOS: Settings β†’ Wi-Fi β†’ (i) close to the network β†’ MAC-On Windows: run the command ipconfig. /all in the command line and find the physical address line. Linux/macOS: type in the ifconfig or ip a terminal and look for ether or hwaddr.

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-serverIP-addressAdvantages
Cloudflare1.1.1.1, 1.0.0.1It is fast and supports DNS-over-HTTPS.
Google DNS8.8.8.8, 8.8.4.4Reliable, but it collects data for analytics.
AdGuard DNS94.140.14.14, 94.140.15.15Blocks ads and trackers at the DNS level.

To change the DNS:

  1. Go to Additional Settings β†’ Local Network β†’ DHCP settings.
  2. Find the Basic DNS and Secondary DNS fields.
  3. Enter the addresses of the selected servers (e.g. 1.1.1.1 and 8.8.8.8).
  4. 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:

  1. Go to Additional Settings β†’ Local Network β†’ DHCP settings.
  2. Remove the box from the item Include DHCP-server.
  3. 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.

FAQ: Answers to Frequent Questions about DHCP on Xiaomi

πŸ”Ή Can you change the subnet with 192.168.31.x on another, for example, 192.168.1.x)?
Yes, but it will require a complete network reconfiguration. β†’ Local area network. IP-Router address (e.g. 192.168.1.1) Save settings - router will restart. After restart, log in to the control panel on the new one IP tune in DHCP again (range, e.g. 192.168.1.100–192.168.1.200). ⚠️ All devices on the network will lose connection and require reconnection.
πŸ”Ή How do I know which ones IP-address DHCP?
Xiaomi’s web interface doesn’t have a direct list of addresses, but you can: View the list of connected devices in Primary Settings β†’ Devices (which displays IP). Use third-party utilities (such as Advanced IP Scanner for Windows or Fing for mobile devices); connect via SSH (on supported models) and execute the cat /tmp/dhcp.leases command.
πŸ”Ή Why Xiaomi router is giving away IP, But the internet doesn't work?
The reasons may be as follows: πŸ”Œ Incorrectly specified the main gateway in the settings DHCP (must coincide with IP router). 🌐 It's not working. DNS-servers (try changing them to 1.1.1.1 or 8.8.8.8). πŸ› οΈ ISP-side issues (check if the internet works when connecting the cable directly to the PC). πŸ”’ Firewall or parental controls block traffic (check settings in Additional settings) β†’ For diagnostics, connect to the router via cable and execute at the command line: ping 8.8.8.8 ping ya.ru If the first ping passes and the second one does not, the problem is in the DNS.
πŸ”Ή Can we set up? DHCP via the Mi Wi-Fi mobile application?
Yes, but the functionality is limited. Only basic settings are available in the app: Open the Mi Wi-Fi app. Go to Settings. β†’ Local area network. Find a point. DHCP-server and turn it on/off. For advanced settings (reservations) IP, shift DNS, filtering MAC) You'll still need a web interface.
πŸ”Ή How to reset the settings DHCP factory-to-factory?
There are two ways: Partial reset (only) DHCP): Go to the Additional Settings β†’ Local area network β†’ Settings DHCP. Click Restore Default Settings (if there is one). Complete router reset: Press and hold the Reset button on the back of the router for 10-15 seconds. After rebooting all settings, including DHCP, back to the factory. ⚠️ A full reset will also remove Wi-Fi settings, passwords and reservations IP.