Outline ·
[ Standard ] ·
Linear+
Unifi My TP-Link TL-WR1043ND OpenWRT setup for UniFi, UniFi and IPTV working
|
TSsilkworm
|
Jan 10 2012, 10:02 PM, updated 14y ago
|
Enthusiast
|
Hi guys, I managed to get UniFi working with IPTV on my TP-Link TL-WR1043ND, on OpenWRT Backfire 10.03.1 using the following settings: /etc/config/network : » Click to show Spoiler - click again to hide... « CODE config 'interface' 'loopback' option 'ifname' 'lo' option 'proto' 'static' option 'ipaddr' '127.0.0.1' option 'netmask' '255.0.0.0' config 'interface' 'lan' option 'ifname' 'eth0.1' option 'type' 'bridge' option 'proto' 'static' option 'ipaddr' '192.168.1.1' option 'netmask' '255.255.255.0' config 'interface' 'wan' option 'ifname' 'eth0.500' option '_orig_ifname' 'eth0.500' option '_orig_bridge' 'false' option 'proto' 'pppoe' option 'peerdns' '0' option 'username' '*******@unifi' option 'password' '*******' list 'dns' '8.8.8.8' list 'dns' '8.8.4.4' config 'interface' 'iptv' option 'ifname' 'eth0.600' option 'proto' 'dhcp' option 'metric' '10' config 'switch' option 'name' 'rtl8366rb' option 'reset' '1' option 'enable_vlan' '1' option 'enable_vlan4k' '1' config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '1' option 'ports' '1 2 3 5t' config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '500' option 'ports' '0t 5t' config 'switch_vlan' option 'device' 'rtl8366rb' option 'vlan' '600' option 'ports' 0t 4 5t'
To set the VLAN priority for eth0.600 to 1, I ssh'ed into the router and entered the following into the command line: CODE vconfig set_egress_map eth0.600 0 1 The last setting isn't permanent, and has to be re-entered each time the router reboots. I suppose to make it permanent, one would have to write a script that runs after the networking system is initialised, but I'm not up to doing that just yet.
|
|
|
|
|