Joined: 24 Jan 2019
|Posted: Thu Jan 24, 2019 6:28 Post subject: Connecting to Centurylink FTTH without a managed switched
|I stumped upon this thread recently when I was trying to replace the Centurylink router with my 5-year-old rt-ac66u running DD-WRT.
The suggested solution is to use a managed switch to tag the vlan id to 201. A few years have passed since then. dd-wrt now finally supports vlan id going beyond 15. Details here: https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports. You'll need to flash a build that's > 35079, but the UI still doesn't support configuring vlans beyond 15. The good news is that you can now do this in CMD via ssh or telnet.
Here are the commands to swap the wan from vlan2 to vlan201:
nvram unset vlan2ports
nvram set vlan201ports="0t 8"
nvram set port0vlans="201 16 18 19 21"
nvram unset vlan2hwname
nvram set vlan201hwname=et0
nvram set pppoe_wan_ifname=vlan201
nvram set pppoe_ifname=vlan201
nvram set wan_ifname2=vlan201
nvram set wan_default=vlan201
nvram set wan_ifnames=vlan201
nvram set wan_ifname=vlan201
nvram set wan_iface=vlan201
nvram set vlan201_ipaddr=0.0.0.0
nvram set vlan201_multicast=0
nvram set vlan201_label=
nvram set vlan201_dns_ipaddr=0.0.0.0
nvram set vlan201_dns_redirect=0
nvram set vlan201_mtu=1500
nvram set vlan201_isolation=0
nvram set vlan201_nat=1
nvram set vlan201_bridged=1
nvram set vlan201_hwaddr=D8:50:E6:CC:51:F0
nvram set vlan201_netmask=0.0.0.0
nvram set vlan201_txq=0
echo "" > /proc/switch/eth0/vlan/2/ports
echo "0t 8" > /proc/switch/eth0/vlan/201/ports
vconfig rem vlan2
vconfig add eth0 201
ifconfig vlan201 up
ifconfig vlan201 txqueuelen 0
After you run this, going to setup -> VLANs will crash the web server for the configuration GUI, so don't ever go there again after you've done this. But hey, you now have a working router connected to Centurylink Fiber w/o the managed switch. I hope the devs will eventually fix the UI for configuring vlans > 15.
Just sharing some info. I figured this could be helpful to others to save sometime going through the dd-wrt wikis.