I am using my computer for watching TV and also for internet browsing(listening to youtube, soundcloud, etc.).
For watching TV I am using m3u playlist, with a IP addresses from multicast network(e.g. udp://@232.4.1.1:5002
is the first channel). For the internet browsing, I am using broadcast network. So, because there are two networks, I supposed I would use VLANs and routing.
Because I would like to use one ethernet card, I created a VLAN, and on the modem side, I chose trunk port
VLAN3999(VLAN with ID 3999, for IPTV)
According to STP device, and some people that have the same ISP, the ID of VLAN should be 3999
IP address: 10.10.10.10
Subnet mask: 255.255.0.0
Gateway: 10.10.1.1 (I believe I don't need it, but without that, IPTV doesn't work)
Eth0 (I didn't create VLAN for internet access, because it works without)
IP address: 192.168.1.167
Subnet mask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 193.2.1.66
Routing:
default traffic via 192.168.1.1, device eth0 .. default traffic goes through modem(192.168.1.1)
224.0.0.0/4 or 224.0.0.0 240.0.0.0, device VLAN3999 .. multicast traffic(from 224.0.0.0 to 239.255.255.255) goes through VLAN3999
I can't get both networks to work. Only the network, that is set to default routing, works. E.g. Internet works if default route is set to 192.168.1.1 and device eth0, but IPTV doesn't, and IPTV does work if default route is set to 10.10.1.1 and device VLAN3999, but internet doesn't.
I know there is some problem with routing, but what? It looks like the system only insist on default route, everything else, it just ignores. Weird
The OS I am using is ArchLinux.