Modern home networks require flexibility in device management, especially when it comes to products from the Xiaomi ecosystem. IP-cameras, printers, servers, always got the same address on the local network, and that's what you need to set up a static system. IP, which eliminates chaotic distribution of addresses DHCP-router.
In this article, we will take a closer look at the process of fixing an address for a particular device through the web interface of Mi Router and Redmi Router routers. You will learn how to avoid addressing conflicts, properly configure the DHCP range, and ensure a stable connection for your smart devices, whether it is a robot vacuum cleaner or a video surveillance system.
Static adjustment IP β It's not just a technical whim, it's a necessity to organize a quality port forwarding or run local servers. MAC-After the router restarts, all access settings may stop working as internal addressing changes.
Preparing for network setup and gathering information
Before you make changes to your router configuration, you need to collect the initial data about your current network. MAC-The address of the device you want to assign to IP, And the default gateway is the current one, and that data is the foundation for the right setup, and without it, the system won't know which gadget to apply the rules to.
Find it. MAC-You can use the address in the settings of the device you're connecting to, or in the router's client list, and it's usually a sequence of six pairs of hexadecimal numbers separated by colons, for example, AA:BB:CC:11:22:33. Write down this address, as it is the router that will identify your device among dozens of other connections.
β οΈ Warning: Make sure that the device for which the static is configured IP, It's enabled and connected to the Wi-Fi network or cable at the time of setting up, so that the router can see the changes immediately and apply them without rebooting the client.
It is also important to know the current IP-The router itself, which is usually the default gateway, is the default address, and in most cases, it's the standard one. 192.168.31.1 for Xiaomi devices or 192.168.1.1 For some Redmi models, you can check this by running the command line on your computer and entering the command ipconfig (for Windows) or ifconfig (for Windows). Linux/Mac), where the "Principal Gateway" option will indicate the correct address.
Entrance to the web interface of router management
The setup process begins with authorization in the router's administrative panel. Open any modern browser on a computer or smartphone connected to the Xiaomi network. IP-The router address you figured out in the previous step, and press Enter. If the address is correct, the password entry window will appear.
Enter the administrator password. By default, it can be displayed on the sticker at the bottom of the device, if you did not change it when you first set it up through the Mi Home app. For models running MiWiFi firmware, login is also possible through the Mi Account, which provides an additional layer of security and synchronization of settings in the cloud.
The interface of the web version may vary depending on the firmware version and region (Chinese or Global). In Chinese versions, the menu is often in English or Chinese, whereas the global versions are fully localized. However, the logic of the arrangement of elements remains similar: look for sections with the words "Settings", "Advanced" or "Common settings".
If you use the Mi WiFi mobile application to manage your router, the process will be visually different, but the essence will remain the same. In the application, you need to go to the Tools or Settings section, where the LAN menu hides. The mobile interface is often simplified, so it is better to use the full web version through the browser to fine-tune static IPs in detail.
Setting up DHCP-servers and address reservations
The main mechanism that distributes addresses to devices on the network is called DHCP-To secure the server. IP For a specific gadget, we do not need to disconnect DHCP It is enough to configure the reservation rule (Address Reservation). DHCP-The server will continue to work, but always give a certain MAC-reserved IP.
In the router menu, find the Advanced settings section and go to the tab. LAN settings (Settings) LAN). Here you'll see the current one. IP-router address and subnet mask"DHCP Server, where address pool management takes place, and that's where we're going to create static anchoring.
To add a new rule, click the "Add" or "Add Client" button. You will open a form where you need to specify the following: MAC-target device address and desired IP-It is important that the address chosen IP It was on the same subnet as the router itself, but it didn't match its address. For example, if the router was 192.168.31.1, you could give the device 192.168.31.50.
βοΈ Check before saving the settings
Once the data is entered, the system may require a confirmation or reboot of the DHCP service. Some Xiaomi router models have the change in effect instantly, others require a reboot of the router itself. If the device was previously connected, it may not receive a new address immediately until the old IPβs Lease Time expires.
Manually configuring static IP on the client
There is an alternative approach where static IP is not written on the router, but is written directly in the settings of the network adapter of the computer or other device, which is useful if you do not have access to the admin panel of the router or want to isolate the device from the general rules of the network, but this requires manual registration of all network parameters.
In Windows, go to Control Panel" β"Network and Internet" β"Network Control Center. Select Active Connection, Press Properties, Find Protocol IPv4 and again select "Properties." Here you need to switch the tick from "Get automatically" to "Use the next one." IP-address".
In the window you need to enter manually. IP-address, subnet mask, main gateway and DNS-The gateway must match the servers. IP-address of your Xiaomi router. DNS You can specify the same gateway as the gateway, or use public servers, such as Google (8.8.8.8) or Cloudflare (1.1.1.1), to speed up the response of domains.
The main disadvantage of this method is that when moving a device to another network (for example, a laptop was taken to an office or cafe), it will not be able to connect to the Internet, since the static IP settings will conflict with another router.
What to do if there is a conflict IP-address?
Organization of port transfer for static IP
One of the main reasons for setting up static IP is to organize port forwarding, which allows external Internet users to access services within your local network, such as a DVR or a game server, without static IP, the pass rule will stop working after the device changes its address.
In the interface of the Xiaomi router, find the Port forwarding section or NAT. You need to create a new rule, specifying the internal IP-The address (which we recorded earlier), the internal port and the external port. TCP or UDP, depending on the requirements of the application.
| Parameter | Meaning | Description |
|---|---|---|
| Name | Camera_Living | Arbitrary name of the rule for convenience |
| Protocol | TCP/UDP | Type of data transfer protocol |
| Internal IP | 192.168.31.55 | Static IP of your camera |
| Internal Port | 8080 | Port where the device listens |
| External Port | 8080 | Port for external access |
Once you save the settings, you need to check the settings, and you can do this with online port checkers, by entering the external port number, and if the port is open, then the static IP is set up correctly, and the NAT rule functions correctly, allowing traffic to the desired device.
Keep in mind security: opening ports can potentially extend the attack surface to your network. Use complex passwords on devices accessible from the outside, and try not to open ports unless absolutely necessary. Modern Xiaomi routers also have a Guest Wi-Fi feature that isolates guest devices from the main network.
Diagnosis and Elimination (FAQ)
Users may experience problems ranging from inability to log in to menus to loss of connection after settings are applied, often in the browser cache or incorrectly entered. MAC-It is also worth considering that some providers use the CGNAT, what makes IP dynamic and common to many users, requiring additional solutions.
If after setting up the static IP If the device has stopped seeing the Internet, check the "Primary Gateway" setting. IP-A single-digit error will cause packets to go nowhere, and the device will be cut off from the global network, although the local network may be operating.
β οΈ Note: When changing provider or buying a new router, all static settings are available. IP You'll have to do it again, because the new network will have a different addressing range. MAC-Important Device Addresses in a Safe Place.
For advanced users, settings via Telnet or SSH are available if an alternative firmware is installed on the router (for example, Padavan or OpenWrt), but for standard Xiaomi devices, a standard web interface is quite enough. It is not recommended to interfere with the router's system files without extreme necessity, so as not to violate the warranty.
π‘
Use the βReboot scheduleβ feature in Xiaomi router to automatically reboot at night once a week.This helps clear cache and prevents hanging. DHCP-servers with a large number of connected devices.
π‘
Static IP local-network (LAN) Does not make your external IP-Static address: To access the home network from the outside in a dynamic external environment IP will require adjustment DDNS.
In conclusion, it's worth noting that networking is key to a smart home, and address fixing eliminates a lot of headaches in the future when you need to reset integrations or restore access to cameras. Follow the instructions, and your network will work like a Swiss watch.