I am using a Xiaomi AX9000. Xiaomi's stock firmware has many limitations. I tried several custom firmware options, from official OpenWrt builds to Qualcomm-based QSDK versions, but none of the AX9000 builds I tested was stable enough. The stock firmware remains the most practical choice for this setup.
Xiaomi firmware is also based on OpenWrt, although it has been heavily customized. This makes it possible to configure some functions directly in the system without using Xiaomi's normal web interface.
After reading the wiki and other references, I successfully configured a VLAN on the Xiaomi AX9000.
This guide is not intended for beginners.
I. Overview
SSH is enabled on the Xiaomi AX9000.
The Xiaomi AX9000 is running in AP mode.
The main router is RouterOS (MikroTik), with VLAN 10 configured for Guest using 10.0.3.0/24 and the main LAN using 10.0.0.1/23.
The AX9000 WAN port is connected to the MikroTik router. The remaining AX9000 ports are used by a PC and a TV on the main LAN.
The guest Wi-Fi added to the AX9000 is assigned to VLAN 10. Clients connected to it receive addresses from 10.0.3.0/24 through the main router.
These values depend on your network. Other Xiaomi routers may use a similar approach, but the exact configuration is not guaranteed because the CPU, switch, and vendor changes can affect the commands.
II. Configuration
The two main files to edit are /etc/config/network and /etc/config/wireless.
After editing, the relevant contents are as follows. The added VLAN configuration is highlighted in the original structure.
Lines 40-44: tag VLAN ID 10 on eth4, the 2.5G port on the router.
Lines 46-53: assign the static address 10.0.3.2, gateway 10.0.3.1, and netmask 255.255.255.0 (/24) to the VLAN interface. The main MikroTik router uses 10.0.3.0/24 for Guest. DNS is 10.0.0.4, the AdGuard Home server used across the LAN; the DNS line can be removed if it is not needed.
Lines 68-76 create a new open Wi-Fi network named WIFI Khach - Free WIFI, using wifi1, which corresponds to the 2.4 GHz radio.
After editing both files, run:
1
/etc/init.d/network reload
The configuration should survive a reboot. Avoid reopening the Xiaomi web-management interface, because it may overwrite the manual configuration and force you to repeat the work.
Góp Ý / Bình Luận / Đánh giá