1. Current Location: Home >  Xiaomi (MIWiFi) >  How to connect a Xiaomi router to an IPTV set-top box? There's an IPTV switch hidden in the advanced settings, which I found only after scrolling to the third menu

How to connect a Xiaomi router to an IPTV set-top box? There's an IPTV switch hidden in the advanced settings, which I found only after scrolling to the third menu

There are three ways to connect a Xiaomi router to an IPTV set-top box: optical modem router mode plugged in, optical modem with direct plugging, optical modem with Xiaomi using IPTV and filling VLAN, and the old model's three alternative routes and a four-step setup comparison chart

Back then, when my TV wall was renovated, only one network cable was left to the weak current box. The IPTV set-top box was originally plugged into the IPTV port of the optical modem and has always worked fine. Not long ago, to fully run gigabit speed, I switched to optical modem bridge, letting Xiaomi AX3000T dial in. But that night, the TV went black — the set-top box's signal followed the dedicated IPTV channel, but once the optical modem was switched to bridge, that channel was cut off halfway. Set-top box connected to router LAN? Even after plugging it in, it still won't pass certification, stuck at the startup logo. After fiddling all night, I finally understood: if a Xiaomi router wants to take over IPTV, you have to go to the advanced settings of 192.168.31.1 and dig through a deeply hidden IPTV switch. This depends on which connection method your home has. If you get it wrong, all the effort is wasted.

first clarify your situation: who manages the set-top box

first understand the topology before you start, otherwise the direction will be wrong. There are only three ways to connect an IPTV set-top box at home, and the seating is assigned accordingly:

the first is the optical modem (optical modem router modem) (default for installation). the optical modem dials by itself, and the set-top box's network cable is plugged into the IPTV port. In this case, the Xiaomi router is just a botched device; IPTV has nothing to do with it. No matter what settings you check on the router, it doesn't work, and you don't need to dig it up. If the TV screen is black right now, that's a matter related to the optical modem. Checking the optical modem has nothing to do with this article.

second method: optical modem bridge, Xiaomi router dial-up. This is my family's situation, and it's the main subject of this article. After switching to a bridge modem, no one took over the IPTV VLAN channel, so Xiaomi had to turn on the IPTV function to connect this channel, and the set-top box would pass through the router's IPTV port.

the third type, single-wire multiplexing. only one cable from the TV wall to the weak current box, the internet and IPTV are squeezed together for one line, and the middle is divided by VLAN. I used this method in my IPTV sharing the same cable with broadband and in that article I wrote about the optical modem side. The Xiaomi router's approach is the same: enable IPTV, select VLAN mode, and enter the VLAN ID correctly.

How do

determine which type you are? Check which cable the set-top box is connected to: plugging it into the optical modem is the first type, plugging it into the router and still showing a black screen is the second or third type. If you're unsure whether the optical modem is routing or bridging, check the router's WAN port and see the IP starting with 100.64 or 192.168, with a dial-up layer in front, indicating the optical modem is routing mode; only after obtaining the public network address is it considered bridging. This method of judging was also used in the article optical modem connecting two routers, and it worked every time.

New Xiaomi Router: IPTV Switch Hidden in Advanced Settings Level 3

confirm this is the second scenario, go to 192.168.31.1 in the browser and go to: Advanced Settings → IPTV (some new firmware is under "Port Customization"). This entry point is really well hidden. You can't access it in the 'Frequently Used Settings', and it's not even available in the Mi Home app. On my first night, I spent half an hour navigating through the 'Frequently Used Settings' and thought Xiaomi's official firmware didn't support IPTV at all.

After entering the

, there's just a switch to turn it on, and two options pop up below. This is the most crucial fork in the whole text:

mode when to select and what
bridge mode to fill in The optical modem has already handled the IPTV VLAN (for example, when switching to bridge, the LAN port is bound), so you don't need to fill anything in just select an IPTV downlink.
custom mode (VLAN mode), the VLAN IPTV must be labeled from the router's side , For single-wire multiplexing, I basically select this VLAN ID (required), VLAN priority (0-7, default 0 doesn't need to be changed),
turn it off If you don't have IPTV at home, or the set-top box is still plugged into the optical modem ——

my actual setup is to select custom mode, set VLAN ID to 45 (our telecom IPTV VLAN), then set the LAN2 port as the IPTV downlink . Unplug the set-top box's network cable from the optical modem and plug it into the router's LAN port 2. After saving, there's a necessary action: restart the router . The first time I didn't restart, the set-top box froze on the last TV channel, and no matter what I pressed, the remote didn't respond. I thought I had set it wrong, but after restarting, it came back to life immediately. This pitfall is mentioned in the official tutorial, but when you actually try it, nine out of ten people will miss it.

VLAN Where to copy an ID: Three sources

custom mode, you need to fill in the VLAN ID. This number varies by region and carrier. Common telecom companies use 45, 51, and 53, but copying others' is 90% unreliable; you have to check your own provider. The three sources are ranked by reliability:

the first source: the WAN connection table in the backend of the optical modem. Use an ultra-admin account to access the optical modem (how to get Telecom's telecom admin, the article about super password ). In network settings, look for the list of WAN or Internet connections. Besides the INTERNET one, there's also a connection type of OTHER or IPTV, and the VLAN bound to it is the number you want. The one at my home says VLAN 45, bound to port 3. This table has an extra use: before modifying the bridge, take a screenshot and save it. Afterwards, the ITMS system will push back the configuration late at night, and you can see exactly what was changed. This is the survival habit taught in the ITMS pushback.

second source: installation work orders or the installer's phone number. Sometimes, the 'Service Port' section on the ticket's IPTV VLAN is written directly. You can call 10000 to ask, provide your address, and they'll transfer the installation—the technician can provide it as soon as you ask.

the third way to come from, try it. Fill in common values 45, 51, 53 one by one and restart the test; if it comes out, it's correct. This is a clumsy method, but with luck, it hits in five minutes, faster than waiting for a master to come to the door. Note that every time you change a value, restart both the router and the set-top box. Restarting only one side will result in a scam.

What to do if

old model doesn't have an IPTV option: Three alternative routes

not all Xiaomi routers have this feature. I checked the old AC2100 at home, and the advanced settings don't include IPTV at all—this feature was only added in recent years with new firmware. The AX1500, AX3000T, BE3600 are newer models, but most older AC series don't. Don't rush to sentence him to death; try three paths in order:

First, upgrade the firmware. older devices, first check if there are any firmware versions that need upgrading. Some models only added IPTV features in later updates. Xiaomi router firmware upgrade has complete steps. After leveling up, go back to the advanced settings and flip through it again—once you have it, it's a win.

the second point, the set-top box is wireless. many carriers' set-top boxes support WiFi (press the settings button on the remote and select wireless in network settings), allowing it to connect directly to Xiaomi router's WiFi, completely avoiding network cables and VLANs. The picture quality is degraded (switching from multicast to wireless singular), I don't feel much about news variety shows, and sometimes the live matches get a bit blurry. The hidden requirement for this route is that the router must not be isolated by an AP, and the set-top box is also a "device"; even if isolated, it still cannot connect to the authentication server.

Third, move the set-top box back to the weak current box and insert the optical modem. the optical modem side, the IPTV channel is re-bound to a certain LAN port, and the set-top box is plugged into the optical modem. The trade-off is that the network cable next to the TV is freed, and the set-top box can be moved to the weak current box so it can't be close to the TV—you have to use HDMI to extend or simply accept the set-top box for the weak current box, and the remote control relays it via infrared. It sounds rough, but it's the most stable and doesn't touch any configuration. If you really want to master something with one cable, that's an advanced way to flash igmpproxy on OpenWrt. The threshold is not low. The beginner idea is OpenWrt the post flashing the system. I would discourage beginners.

three pitfalls I've fallen into

the first is the 'save without restarting' mentioned earlier, freezing the screen and freezing the screen. Just restart the router.

second pitfall: the IPTV port is plugged into another device. After I set LAN2 as the IPTV downlink, my family didn't know and plugged the laptop's network cable into this port, telling me I couldn't get online. The VLAN on the IPTV port is separate from the internet channel, so ordinary devices plugged in can't get the internet. This isn't a fault, it's the design. My simple method is to label this port as "TV-only," or simply choose the most uncomfortable port (like the one at the very edge of the router) to reduce the chance of accidental plugging.

the third pitfall: mesh networking downstream for set-top boxes. I took the set-top box from the Mesh sub-router in the living room, but no signal came out—IPTV's VLAN processing is done on the main router, and the port behind the sub-router is a regular LAN port without an IPTV channel. To get your bedroom TV to use IPTV, either the network cable should be returned to the main router's IPTV port, or the set-top box should go wireless. Set up Mesh at home as you would. Check out Xiaomi Mesh networking article, but remember one thing about IPTV: set-top boxes only recognize the main router .

by the way, if the TV worked fine before switching to the bridge but only blacks after the change, then besides the router settings, it's also worth checking the IPTV channel binding on the optical modem side. The accounts on both ends must be matched. I covered this troubleshooting chain in more detail in the article IPTV no signal after bridge change.

Assigned Seat + Hands-on Order

your situation what you need to do
set-top box with a light mode, TV working normally nothing else to do. This article can be closed
optical modem bridge + new Xiaomi router enable IPTV in advanced settings, select mode, enter VLAN, specify LAN port, restart
optical modem bridge + old Xiaomi router first upgrade the firmware If not, go wireless on the set-top box or switch back to the optical modem
reuse a single cable custom mode + fill in VLAN ID, referring to the 754 article on the optical modem side for compatibility
TV network cable under Mesh sub-router returns to the main router's IPTV port or set-top box connection WiFi

steps are six: first check who the set-top box network cable is connected to, then confirm whether the optical modem is a router or a bridge, then go to 31.1 Advanced Settings and find the IPTV switch, select the correct mode, copy the VLAN ID, assign the downlink port to the set-top box, save, and restart the router and set-top box. If the screen still goes black at this point, then bind it on the core optical modem side, or call 10000 directly to have the technician remotely check the channel—the router account is basically done for you.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《How to connect a Xiaomi router to an IPTV set-top box? There's an IPTV switch hidden in the advanced settings, which I found only after scrolling to the third menu
Article URL: https://www.shunot.com/en/miwifi/926.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow