Change of change IP-Xiaomi router addresses may be required in several cases: in case of address conflict in the local network, to improve security, when setting up VPN The standard address is 192.168.31.1, which is used by most Mi Router models (including the one used by the Mi Router). 4A, 4C, 5, 6 and AX3000), It is not always optimal, especially if you already have a device with the same IP.
In this article, we will discuss three official ways of changing the IP-Addresses: via web interface, Mi Wi-Fi mobile application and console SSH (You will also learn how to avoid common errors when changing the address and what to do if the router stopped responding after the change. IP This can cause you to lose access to the control panel β so write down your current network settings before you start.
If you're a beginner, we recommend starting with the first method (web interface). SSH, where the advanced settings, including reservations, are described DHCP-pool MAC-address.
Preparation for change IP-address
Before you change IP-Xiaomi router address, follow a few mandatory steps to avoid device loss and network conflicts.
Step 1: Check the current IP-router.
Open the command line (Win + R β cmd) and type:
ipconfig /allLook for the main gateway line β this is the current one. IP For Xiaomi, it's 192.168.31.1, but it could have been changed earlier.
Step 2: Make sure that the new IP It does not conflict with other devices.
Select an address from a range 192.168.X.1 (where X is any number from 0 to 255, except 0 and 127. For example, if your current address is 192.168.31.1, you can change it to 192.168.10.1 or 192.168.0.1. IP other device, with the help of a command:
ping 192.168.10.1If the answer is exceeded waiting interval β the address is free.
Step 3: Prepare a backup access method.
After the shift IP You lose contact with the router, you can restore access:
- π Reset to factory settings (reset button for 10 seconds).
- π± Using the Mi Wi-Fi mobile app if the router is connected to the Xiaomi account.
- π₯οΈ via a direct Ethernet cable (if) IP changed, but DHCP work).
β οΈ Note: If you are using Mi Router in Repeater or Bridge mode, change IP-Addresses may disrupt the connection, in which case, first put the device in Router mode.
2. Method 1: Modification IP via web interface (for all models)
This is the easiest and safest method that is suitable for most users.The instructions are relevant for Xiaomi Mi Router routers. 4A, 4C, 5, 6, AX3000 and other models with a web panel.
Step 1: Log in to the control panel.
Open the browser and enter the current one. IP-router address (default) 192.168.31.1). Enter the login and password (by default β admin/admin or a tied Xiaomi account).
Step 2: Go to the network settings.
In the menu, select: Additional settings β Network β LAN
Here you will see the current local network settings.
Step 3: Change IP-address and save settings.
In the field IP-Enter a new address (e.g. 192.168.10.1). The subnet mask usually remains 255.255.255.0.
Check that the new one is IP It does not conflict with other devices.|
Make sure the subnet mask is 255.255.255.0|
Remember the new one. IP β You will need it to re-enter.|
Turn it off. VPN or proxy if they are active.-->
Once saved, the router will restart. Wait 1-2 minutes and connect to it on a new one. IP.
β οΈ Attention: If after the shift IP The router is not responding, check: π Is Ethernet cable connected (if you use a wired connection). πΆ Are you connected to the right Wi-Fi network (SSID must not change). π Are the settings not at fault? DHCP (Try to manually prescribe IP on a computer from a new subnet, such as 192.168.10.100).
Method 2: Shift IP via Mi Wi-Fi app for mobile users)
If you do not have access to your computer, change IP-The Xiaomi router address is available through the official Mi Wi-Fi app (available for Android and iOS), a method that is convenient but requires the router to be linked to a Xiaomi account.
Step 1: Connect to the router via Wi-Fi.
Make sure your smartphone is connected to the router network, IP Whichever device you want to change, open the Mi Wi-Fi app and select your device.
Step 2: Go to the settings LAN.
Slip on the router icon β Settings β Additionally. β Network β LAN.
Step 3: Enter a new one IP and keep.
In the field IP-Address: Provide a new address (e.g. 192.168.20.1).Click Save and confirm reboot.
Through the web interface |
Through the Mi Wi-Fi app|
Through SSH/console|
I donβt use the factory settings.-->
Once the router is restarted, the application may lose its connection.
- π Reconnect to the router's Wi-Fi network.
- π± Close and reopen the Mi Wi-Fi app.
- π§ If it doesnβt help, connect to the new one. IP browser.
Limitations of the method:
In some versions of the Mi Wi-Fi application, the change option is available. IP It can be hidden. If you can't see the item, LAN, Update the application or use the web interface.
Method 3: Modification IP through SSH (power-user)
This method is suitable for advanced users who want to change the system. IP, but also configure additional network settings (e.g. redundancy) DHCP Attention: incorrect commands can lead to loss of access to the router!
Step 1: Turn on SSH router.
By default. SSH It's off, so it can be activated:
- π₯οΈ Go to the router's web interface β Additional settings β System system β SSH.
- π Enable access and set a password (remember it!).
Step 2: Connect to the router SSH.
Use the PuTTY (Windows) program or the terminal (Linux/macOS). Enter the command:
ssh root@192.168.31.1Enter the password you set in the previous step.
Step 3: Change IP-address.
Follow the commands in order:
uci set network.lan.ipaddr='192.168.10.1'
uci commit network
/etc/init.d/network restartWhere 192.168.10.1 is your newest IP-address.
Step 4: Set up DHCP (optionally).
If you want the router to distribute IP-Addresses from the new subnet, follow:
uci set dhcp.lan.start='100'
uci set dhcp.lan.limit='150'
uci set dhcp.lan.leasetime='12h'
uci commit dhcp
/etc/init.d/dnsmasq restartIt'll set up the pool. DHCP from 192.168.10.100 to 192.168.10.250.
What if the router stopped responding after the commands?
β οΈ Attention: When working through SSH Do not interrupt the session until the commands are completed. If the router restarts during the configuration change, it may boot with incorrect network settings.
5. Typical errors and their solution
Even when following instructions, users often face problems after a shift. IP-So let's look at the most common cases and how to fix them.
Mistake 1: The router does not respond to the new IP.
Causes and solutions:
| Reason. | Decision |
|---|---|
| The wrong subnet mask | Make sure the mask is 255.255.255.0. If changed to 255.255.0.0, return it. |
| IP conflict with another device | Check the network with the arp command -a change IP free-for-all. |
| Settings not saved DHCP | Write it down. IP on a PC manually (e.g. 192.168.10.100) and try to connect. |
| Firmware failure | Reset the button with the Reset button (10 seconds). |
Mistake 2: The Internet is gone after a shift IP.
If the router responds to a new IP, But the internet doesn't work:
- π Check the connection of the cable from the provider (indicator) WAN burn).
- π‘ Restart router and modem (if it is separate).
- π§ Make sure that in the settings WAN the correct type of connection is indicated (DHCP, PPPoE, etc.).
Error 3: Access to the web interface is not working.
If the router ping, but the management page does not open:
- π Clear the browser cache or try another one (like Firefox instead of Chrome).
- π‘οΈ Turn it off. VPN/Proxies and antivirus (they can block access).
- π Check if the administrator password has been lost (reset it through Reset if you forget).
π‘
After the shift IP Xiaomi smart devices (lamps, cameras) have stopped working, check if they are tied to the old subnet.
6. Additional settings after the shift IP
Change of change IP-The router's address is just the first step. To keep the network running smoothly, it's recommended that you make a few additional adjustments.
1. Update. DHCP-pool.
If you've changed IP from 192.168.31.1 to 192.168.10.1, update the range of addresses dealt:
- π Initial. IP: 192.168.10.100
- π Finite IP: 192.168.10.200
This will prevent conflicts with static addresses of other devices.
2. Set up reservations IP (DHCP Reservation).
If you have fixed devices on your network IP (for example, NAS, printer, IP-cameras, tie them up. MAC-address IP subnet:
Go to Additional Settings β Network β DHCP and add reservation rules.
3. Check ports and airways.
If you use Port Forwarding for game servers, cameras, or torrent clients, update the rules to reflect the new rules. IP. For example, if the pass was at 192.168.31.100:8080, now you may need 192.168.10.100:8080.
4. Update the settings on client devices.
On computers and smartphones, where IP handwritten, update:
- π₯οΈ Default gateway (new) IP router).
- π DNS-servers (you can leave 8.8.8.8 and 8.8.4.4 or specify the router as the server servers). DNS).
π‘
After shift. IP router be sure to reconnect all devices to the network - even if the Wi-Fi name (SSID) It's not changed. It'll update their network settings and prevent access issues.
7 Security: How to Protect a Router After a Shift IP
Change of change IP-Addresses can improve your network security, but thatβs not enough.The following steps will help protect your Xiaomi router from hacking and unauthorized access.
1. Change the standard administrator password.
By default, many Xiaomi routers use an admin password or are tied to a Xiaomi account. Set a complex password (at least 12 characters with numbers and special characters).
2. Turn off remote access.
In the router settings (System) β Remote control: Disable access from the internet if you donβt need it.
3. Update the firmware.
Outdated firmware versions contain vulnerabilities. Check for updates to Additional Settings β System system β Update of the PO.
4. Set up a firewall (Firewall).
In the routers Xiaomi can include basic protection:
- π‘οΈ Lockdown ICMP (protection against ping attacks).
- π« Filtration MAC-Addresses (allow connection only to known devices).
- π Prohibit access to the web interface from the local network (leave only for specific IP).
5. Hide. SSID (optionally).
Hiding the name of the Wi-Fi network (Wi-Fi settings) β Hide. SSID) It does not provide 100% protection, but reduces the number of attempts to connect third-party devices.
β οΈ Note: If you use a Xiaomi router in an office or public place, consider setting up a guest network with a separate subnet.