Don't think of it as being for any particular ISP. Simply provide the option to configure each port as we please. Just display a table with ports 1-5 with checkboxes for "vLAN Number" and "Trunk Port".
Look at how it's done in DD-WRT. This is ideal. All it does is set the NVRAM variables according to the checkboxes.
It's not that simple. A webui is one thing. All the low-level stuff underneath is an entirely different story, and DD-WRT's code is totally different.
AsusWRT looks like it has the same vLAN NVRAM variables as DD-WRT. I'm just guessing but it must be common for the broadcom switch drivers. If that's the case all that is required is to set the variables according to the checkboxes, commit and reboot. The IPTV section can be removed completely and replaced with a vLAN section.
What I'm saying is the entire vLAN configuration for all ports can be completely customised with 3 or 4 NVRAM variables.
AsusWRT looks like it has the same vLAN NVRAM variables as DD-WRT. I'm just guessing but it must be common for the broadcom switch drivers. If that's the case all that is required is to set the variables according to the checkboxes, commit and reboot. The IPTV section can be removed completely and replaced with a vLAN section.
What I'm saying is the entire vLAN configuration for all ports can be completely customised with 3 or 4 NVRAM variables.
The IPTV section can be removed completely and replaced with a vLAN section.
What I'm saying is the entire vLAN configuration for all ports can be completely customised with 3 or 4 NVRAM variables.
nvram set vlan4ports="0t 4 8"
nvram set vlan1ports="3 2 1 8*"
nvram set port5vlans="1 2 4 16"
nvram set port4vlans="4"
nvram set port0vlans="2 4 16"
nvram set vlan4hwname=et0
nvram commit
reboot
There are no native/untagged ports in the RT-N16. All ports are part of some vLAN. IIRC by default the WAN port is vLAN 2 and the LAN ports are vLAN 1. That's why there's a restriction in the IPTV GUI to use VIDs > 2. The older broadcom devices used untagged ports.
PPPoE or whatever WAN configuration you specify is attempted applied on vLAN 2. You can use the other vLAN numbers for pretty much anything your want, including trunking a combination of vLANs.
For your example above you can use a VID of 0. It will be treated as untagged and also have the benefit of vLAN priority.
I don't see what your problem is.
vconfig add eth0 552
ifconfig vlan552 up
brctl addbr br1
brctl addif br1 vlan552
ifconfig br1 up
ip r a 224.0.0.0/4 dev br1
Yup, aware of that and what i mean was able to apply vlan=0 but the lan port3 and 4 seems do not work.
I've made monkeypatch in Advanced_IPTV_Content.asp:Sorry to add nothing useful to the conversation, but I got the same problem. I use Bell Fibe FTTH, so I put in VLAN=35 for the WAN port. By doing this, it makes LAN 3 and 4 not work at all.
If I change LAN 3 and 4 to VLAN=1 or something, they should work like the other two? Not at home to try it now. I will tonight. Doesn't seem risky at all to me.
else if(document.form.switch_wantag.value == "rostelecom") {
document.form.switch_stb_x.value = "0";
document.form.switch_wan0tagid.value = "3023";
document.form.switch_wan0prio.value = "0";
document.form.switch_wan1tagid.value = "";
document.form.switch_wan1prio.value = "552";
document.form.switch_wan2tagid.value = "";
document.form.switch_wan2prio.value = "0";
}
else if(isp == "rostelecom"){
$("wan_stb_x").style.display = "none";
$("wan_iptv_x").style.display = "none";
$("wan_voip_x").style.display = "none";
$("wan_internet_x").style.display = "none";
$("wan_iptv_port4_x").style.display = "none";
$("wan_voip_port3_x").style.display = "none";
document.form.switch_wantag.value = "rostelecom";
document.form.switch_stb_x.value = "0";
}
option value="rostelecom" <% nvram_match( "switch_wantag", "rostelecom", "selected"); %>>Rostelecom</option>
mount -o bind /jffs/scripts/Advanced_IPTV_Content.asp /www/Advanced_IPTV_Content.asp
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!