What's new

Manual IPTV settings stop Internet connections

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

johnnyboy

Occasional Visitor
Manually set IPTV parameters will stop Internet connections

Orignally, I use RT-N16 with IPTV settings like the followings:

ISP Profile: Manual
Internet: BLANK, 0
LAN port 4: 85, 4
LAN port 3: 85, 4

NoTitle.png

Everything is OK. Now, I replace it with a new RT-AC68U router (FW: 3.0.0.4.374.4561), and with the same settings in LAN->IPTV tab, I can still watch the TV but got no Internet connections except set the ISP Profile to "none". The same issue occurred when RT-N16 uses a slightly newer FW after 3.0.0.4.374.168.

I searched the threads and found CL-Jeremy released a FW for RT-N66 that:

http://forums.smallnetbuilder.com/showthread.php?t=10325

In that post, CL-Jeremy described the very same case as I meet now.
1) The VLAN field can be left blank if your ISP does not specify a tag for Internet.
2) LAN port 3 and 4 can be set for the same VLAN tag if you want IPTV through 2 ports.

What's wrong with my settings for RT-AC68U or What changes were introduced into these newer firmware lead to the unhappy issue ? How can I solve this problem ?
Any suggestions/advices ?

Thanks!


--
I have test some previous versions of RT-AC68U firmware, but did not find a usuable firmware for this case.
 
Last edited:
Maybe errors in code..

I think code in file /rc/init.c (or the likes) which deals with dual WAN function causes the problem.

code segment like:
----------------------
Code:
else if(get_dualwan_by_unit(unit) == WANS_DUALWAN_IF_WAN){
    if(nvram_get("switch_wantag") && !nvram_match("switch_wantag", "") && !nvram_match("switch_wantag", "none")){
        sprintf(wan_if, "vlan%s", nvram_safe_get("switch_wan0tagid"));
        add_wan_phy(wan_if);
    }
    else if(get_wans_dualwan()&WANSCAP_LAN)
        add_wan_phy("vlan2");
    else
        add_wan_phy("eth0");
}
or
Code:
#if defined(CONFIG_BCMWL5) && !defined(RTCONFIG_DUALWAN)
    if(nvram_get("switch_wantag") && !nvram_match("switch_wantag", "none")&&!nvram_match("switch_wantag", "")){
        if(!nvram_match("switch_wan0tagid", "") && !nvram_match("switch_wan0tagid", "0"))
            sprintf(wan_if, "vlan%s", nvram_safe_get("switch_wan0tagid"));
        else
            sprintf(wan_if, "eth0");
        nvram_set("wan_ifnames", wan_if);
}
#endif

when we use IPTV the variable 'switch_wantag=manual' and 'switch_wan0tagid='. this will let the code set 'wan_ifnames=vlan', which does not exist.
The correct settings of wan_ifnames should be eth0.

TEST method
---------------
When set router with IPTV function, the internet connection disappear. But by changing two lines and commit like the following( don't reboot after commit):
Code:
nvram set wan0_ifname=eth0
nvram set wan_ifnames=eth0
commit

then refresh the WAN->Internet connection tab by press button Apply without change any paras on it and the router will not go reboot, then the Internet connection will come back after several seconds, and the IPTV is also work at this time.
 
Last edited:
I can confirm this issue. I have also internet and IPTV from my ISP, internet is "default" (i.e. works always, without VLAN tag) and IPTV requires a VLAN.

This changed with build 3.0.0.4.374.720. Apparently untagged and tagged VLAN on the same port (WAN) is not possible, starting from the above mentioned FW. When IPTV VLAN is set, IPTV works, but there's no internet (WAN port does not get a DHCP IP) and when IPTV VLAN is not set, internet connectivity is fine.
 
Problem solved

By hacking the code, now I solved this problem with a little change in the code of file release/src/router/rc/init.c. For RT-N16, RT-AC68U and other types, change the line :

Code:
  if(nvram_get("switch_wantag") && !nvram_match("switch_wantag", "") && !nvram_match("switch_wantag", "none") ){

to
Code:
if(nvram_get("switch_wantag") && !nvram_match("switch_wantag", "") && !nvram_match("switch_wantag", "none") && !nvram_match("switch_wantag", "manual")){

then both dualwan and IPTV functions OK.
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
G ASUS RT-AC5300 updates only manual ASUS AC Routers & Adapters (Wi-Fi 5) 2

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top