How do IPTV and broadband share the same cable? VLAN division + single-line multiplexing, acting according to the operator's mood

I had no experience during renovation, so I only left one network cable on the TV wall to the weak current box. When I installed broadband, the technician asked where to connect the IPTV set-top box, and I was stunned—there was only one cable port, so I needed both the router and the set-top box. I couldn't just run a loop of exposed cables. The technician gave us two choices: either run another cable (my pipes are already clogged and can't be threaded), or use WiFi for IPTV (set-top boxes don't support it, so just pass). In the end, I solved this problem myself with a VLAN switch costing about a hundred yuan. One cable ran broadband + IPTV+ and even provided internet for the TV. This article explains the principles and methods thoroughly—just copy them.
first understand: Why can't IPTV be directly connected to a router
many people think IPTV is just a video app that connects the internet, and you can just plug it into a router's LAN port and use it anywhere. No, that's not it. Operators' IPTV uses independent vlan, and broadband for internet access is two logical channels, but they physically share that optical fiber.
The network ports behind theoptical modem, don't be fooled by their identical looks—their uses are strictly bound: for example, my Telecom TEWA-750G has port 1 for access (for router dial-up in bridge mode), and port 3 is for IPTV, each bound to their respective VLANs. If you plug the set-top box into port 1, an error code will be 100% reported; plugging in port 3 will fix it immediately—that's how VLAN works.
So the real issue is: have to run both 'internet data' and 'IPTV data' on a single cable, and you can't mix them . This is commonly referred to as "single-wire multiplexing," with the core method being VLAN partitioning.
each carrier's VLAN numbers, first check them out
Beforesingle-wire multiplexing, you need to know what your IPTV's VLAN number is. Different regions, operators, and even batches are different. I've compiled common ranges:
| carriers | VLANs | IPTV Common VLANs | Note |
| Telecom | 41 / 100+ | 45 / 85 | Regional Differences Wide, Seen in Guangdong 85 |
| Unicom | 39 / 3025 | 59 / 3023__ HTML48__ | 3025 This is a Q-in-Q outer layer |
| mobile | 0 or does not distinguish between | 43 / 46 / 85 | many regions do not support mobile internet access vlan__ HTML60__ |
this table is for reference only, don't copy directly. The two most stable ways to check your VLAN are: first, log in to the super admin backend to check WLAN/PVC configuration (I've written about how to get the super password before; the portal is at the end of the article), and make the link with IPTV in the connection name clearly stated the VLAN ID; Second, call the installer to ask the installer; the installation address can be found in the system.
measured values at my home: Telecom internet vlan 41, IPTV vlan 45. From here on, follow this set of numbers; just replace with your own.
Option 1: Optical modem to bridge + switch to VLAN (the one I'm using)
a cable from my weak current box to the TV wall, and inside the box are the optical modem and a VLAN-supporting switch (I'm using a Mercury SG105 Pro, five ports with gigabit network management, official price over 90 yuan, and 60 yuan on Xianyu). Place the router on the other side of the video wall.
wiring can be summed up in one sentence: optical modem network port 1 → switch port 1, optical modem network port 3 (IPTV port) → switch port 2, switch port 3 → the network cable leading to the TV wall . On the other side of the TV wall, connect the network cable to the router's WAN port, and the set-top box to any LAN port of the router—wait, will the set-top box connect to the LAN? It works, but only if the switch sends both VLANs to this cable and the router handles it correctly.
the configuration on the switch (using the SG105 Pro as an example, other brands follow the same approach):
- Port
- 1 (connected to the optical modem network port) :P VID doesn't matter, port type is General, release vlan 41 untagged? ——This is the easiest to get confused, so here's a direct conclusion: the optical modem network port 1 that appears is untagged. For regular internet traffic, port 1 can be kept as default vlan1
- port 2 (connects to optical modem IPTV port): create new VLAN 45, member port 2 + port 3, port 2 set as untagged, port 3 set to tagged
- port 3 (that multiplex cable): both belong to the same system vlan1 (internet access) and vlan 45 (IPTV), vlan1 untagged, vlan45 tagged
this way, on the Kou 3 line: internet traffic is untagged regular Ethernet frames, IPTV data is frames labeled VLAN45, so they don't compete with each other.
how do you dismantle the other side of the TV wall? Two approaches: simple version, the router's WAN port connects directly to the network cable (it discards untagged internet data if it doesn't recognize IPTV's tagged frames). The set-top box doesn't connect to the router but instead places a small switch in the TV cabinet for "splitting"—no, it can't be disassembled. The correct approach is to place another managed network switch of the same model on the video wall, and reverse: port 1 is the incoming cable, vlan1 untagged to port 2 (connected to the router WAN), vlan45 is untagged to port 3 (connected to the set-top box).
lazy version (which I used in the end): If the router uses OpenWrt or iKuai, a soft router that supports VLAN sub-interfaces, you don't need to add anything on the other side of the video wall. The network cable goes directly into the switch chip where the router's WAN port is located, creates a vlan45 sub-interface tied to the WAN port, and then bridges it out from the LAN port to the set-top box. My home uses an N100 soft router running AiKuai, with a VLAN45 sub-port on the WAN port. Throughout the process, just click the mouse, and the set-top box plugs into the LAN port to display the screen directly.
Solution 2: Change port binding in optical modem routing mode (without switching switches
if you don't change the optical modem and just use the routing mode (the modem dials directly), that's much easier. Use the super password to enter the optical modem backend, find "LAN Port Binding" or "VLAN Bind" settings, and directly bind the IPTV VLAN to a specific LAN port. This port is equivalent to turning it into a second IPTV port.
But this approach has a premise: the optical modem must routing mode. In bridge mode, the binding function is mostly grayed out or doesn't work when bind—I fell into this trap before. After switching to bridging, I tried to bind ports but couldn't click it, so I obediently installed the switch.
Also, note that some Telecom firmware versions of the Shin Kong modem hide the LAN port binding menu very deeply, even in the "Business Configuration→ VLAN" three-level menu. If you can't find it, just use the switch solution mentioned earlier and don't go all out.
IPTV Lag or channel black screen—check in this order
Aftersingle-line multiplexing was done, I sometimes saw lag in the livestream, with screen distortion and mosaic. At first, I thought my VLAN was configured incorrectly, but after checking, I found out there was another reason. Listed by inspection costs from lowest to highest:
First Investigation Broadcast . IPTV live channels use multicast (IGMP). If the switch does not support IGMP snooping, multicast traffic will be broadcast to all ports, and a hundred-yuan switch will lose packets when flooded. The SG105 Pro has an IGMP Snooping switch, which is off by default. When I manually turned it on, the lag was instantly reduced. If your switch is unmanaged and doesn't have this feature, if it lags, you have to replace it.
Second, check network cable . Single-line multiplexing means one cable can run two streams of data; fake or aged lines might be fine at 100Mbps, but once you run IPTV's high-bitrate channels, your weaknesses will be exposed. 4K channel bitrates can reach 20Mbps+, making it very sensitive to packet loss. Use the wire detector to check it, and after all eight cores are fully connected, we'll discuss everything else.
Third Checkvlan Change . Some regional operators periodically adjust IPTV VLAN (upgrades), suddenly changing from 45 to 46, resulting in a sudden blackout of the entire station or only a few channels. At this point, log in again to the light mode, check the current bound value, and follow the switch change.
Fourth check the of optical power. When the optical modem logs in to the background to check the reception power, the normal range is between -8 and -27 dBm. Above -27 is critical, and at -30, you basically can't watch IPTV. You can still get by with the internet (the internet is more tolerant of losing packets). If the light degradation is severe, call the operator to request repairs and have them check the splitter and connectors, which is something you can't handle yourself.
costs and effects, give a clear
my setup: the Mercury SG105 Pro costs 92 yuan (newly purchased), and the short network cable inventory from the set-top box to the switch is less than a single red coupon. The effect is that one cable runs simultaneously on the video wall: broadband (tested at 940Mbps, fully loaded gigabit ports), IPTV live streaming with all channels without lag, and instant on-demand activation.
the truth about a few common questions:
- IPTV Will single-line multiplexing slow down the internet? No. IPTV traffic is at most tens of Mbps, and gigabit lines are just a fraction
- can wireless set-top boxes be without network cables? It depends on the region. Some carriers' boxes support WiFi connection to the ITV private network, but most don't. I asked the technician
- what to do if the optical modem or VLAN changes? Changing the switch configuration takes ten minutes; just enter the new VLAN number
Finally, here's a step-by-step suggestion: first check your own VLAN number, then decide which solution to use—try port binding first in optical modem routing mode (zero cost), and if that doesn't work, install a switch; Already in bridge mode, directly connected to managed switches or soft router subinterfaces. Related reading: Is worth the hassle of switching optical modems to bridges Mesh How to connect wired backhaul ? Single-wire multiplexing + bridging are often done together.
