<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by silkworm</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Mon, 27 Jul 2026 16:55:07 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>My TP-Link TL-WR1043ND OpenWRT setup for UniFi</title>
            <link>http://forum.lowyat.net/topic/2184980</link>
            <description>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:&lt;br /&gt;&lt;br /&gt;/etc/config/network :&lt;!--SPOILER BEGIN--&gt;&lt;div class=&quot;spoilertop&quot; onClick=&quot;openClose('cdd26b5c85cca8e37ad51f96acaa4458')&quot; style=&quot;font-weight: bold&quot;&gt;&lt;u&gt;&amp;raquo; Click to show Spoiler - click again to hide... &amp;laquo;&lt;/u&gt;&lt;/div&gt;&lt;div class=&quot;spoilermain&quot; id=&quot;cdd26b5c85cca8e37ad51f96acaa4458&quot; style=&quot;display:none&quot;&gt;&lt;!--SPOILER END--&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;config &amp;#39;interface&amp;#39; &amp;#39;loopback&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ifname&amp;#39; &amp;#39;lo&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;proto&amp;#39; &amp;#39;static&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ipaddr&amp;#39; &amp;#39;127.0.0.1&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;netmask&amp;#39; &amp;#39;255.0.0.0&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;interface&amp;#39; &amp;#39;lan&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ifname&amp;#39; &amp;#39;eth0.1&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;type&amp;#39; &amp;#39;bridge&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;proto&amp;#39; &amp;#39;static&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ipaddr&amp;#39; &amp;#39;192.168.1.1&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;netmask&amp;#39; &amp;#39;255.255.255.0&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;interface&amp;#39; &amp;#39;wan&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ifname&amp;#39; &amp;#39;eth0.500&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;_orig_ifname&amp;#39; &amp;#39;eth0.500&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;_orig_bridge&amp;#39; &amp;#39;false&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;proto&amp;#39; &amp;#39;pppoe&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;peerdns&amp;#39; &amp;#39;0&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;username&amp;#39; &amp;#39;*******@unifi&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;password&amp;#39; &amp;#39;*******&amp;#39;&lt;br /&gt; &amp;nbsp;list &amp;#39;dns&amp;#39; &amp;#39;8.8.8.8&amp;#39;&lt;br /&gt; &amp;nbsp;list &amp;#39;dns&amp;#39; &amp;#39;8.8.4.4&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;interface&amp;#39; &amp;#39;iptv&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ifname&amp;#39; &amp;#39;eth0.600&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;proto&amp;#39; &amp;#39;dhcp&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;metric&amp;#39; &amp;#39;10&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;switch&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;name&amp;#39; &amp;#39;rtl8366rb&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;reset&amp;#39; &amp;#39;1&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;enable_vlan&amp;#39; &amp;#39;1&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;enable_vlan4k&amp;#39; &amp;#39;1&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;switch_vlan&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;device&amp;#39; &amp;#39;rtl8366rb&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;vlan&amp;#39; &amp;#39;1&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ports&amp;#39; &amp;#39;1 2 3 5t&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;switch_vlan&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;device&amp;#39; &amp;#39;rtl8366rb&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;vlan&amp;#39; &amp;#39;500&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ports&amp;#39; &amp;#39;0t 5t&amp;#39;&lt;br /&gt; &amp;nbsp;&lt;br /&gt;config &amp;#39;switch_vlan&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;device&amp;#39; &amp;#39;rtl8366rb&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;vlan&amp;#39; &amp;#39;600&amp;#39;&lt;br /&gt; &amp;nbsp;option &amp;#39;ports&amp;#39; 0t 4 5t&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;!--SPOILER DIV--&gt;&lt;/div&gt;&lt;!--SPOILER DIV--&gt;&lt;br /&gt;&lt;br /&gt;To set the VLAN priority for eth0.600 to 1, I ssh&amp;#39;ed into the router and entered the following into the command line:&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;vconfig set_egress_map eth0.600 0 1&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;The last setting isn&amp;#39;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&amp;#39;m not up to doing that just yet. &lt;!--emo&amp;:P--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /&gt;&lt;!--endemo--&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>silkworm</author>
            <category>Networks and Broadband</category>
            <pubDate>Tue, 10 Jan 2012 22:02:26 +0800</pubDate>
        </item>
    </channel>
</rss>
