I wanted to share some thoughts I had on flashing LEDE (the OpenWRT successor) to my WRT1900AC, and share some guidance on configuring the WAN interfaces for PPPoE and setting up VLAN tagging. While I use Century Link, this guide should be pretty applicable to anyone who has an ISP which uses PPPoE and VLAN tagging to lock down their modems.
A few months ago I was presented with an opportunity to upgrade my homelab to Century Link’s gigabit offerings – and while the service was immediately better than Comcast’s, I noticed that my (now aging) Linksys WRT1900AC v1 router running OpenWRT 15.05.1 barely broke 300mbps, whereas my much older Netgear router was able to run at around 900mbps. After doing some digging I discovered the the OpenWRT firmware was the culprit and promptly returned back to stock. While I got my full speeds back, sacrificing the ability to make a litany of software changes was a pretty big trade off, and as someone who’s more comfortable working with BIND over AD DNS it became kind of a pain in the ass to manage DNS in my lab.
Earlier this evening, I came across the LEDE project, which was effectively a continuation of OpenWRT, and better yet, they even had an updated system image for my router. Grabbing the image (available here for those of you with the same router as I), I flashed my router to LEDE and got up and running…
Please make sure you have the following:
- Your PPPoE credentials from your service provider, as well as the VLAN (Century Link uses 201, which I will be using in this guide). Most of them will give them to you if you call technical support.
- A router that is compatible with LEDE. Check https://lede-project.org/supported_devices to see if your router is on there.
- A router that you have already flashed LEDE to. I won’t be covering how to flash the firmware to your device, but this guide will assume you have already done so and done minor set up.
- Log in to your LuCI interface (normally http://192.168.1.1), and click Network -> Interfaces.
- By default, you should see a bridged LAN interface called LAN, WAN, and WAN6.
- Verify that you have a WAN entry, and click on Edit, and then the Physical Settings tab. This will reveal which physical eth port (eth1 in my case) your interface is using, and will look something like this:
- Navigate to Network -> Switch. Here we will create a new VLAN ID 201 and tag CPU (eth1) and WAN:
- Click Save & Apply.
- Go back to Network -> Interfaces.
- Click Edit on WAN.
- Select Protocol and set it to PPPoE. Click Switch Protocol to confirm your changes:
- At this point, enter your PPPoE Credentials into the PAP/CHAP Username and PAP/CHAP Password fields. Leave the other fields empty:
- Click the Physical Settings tab, and select the VLAN we just created:
- As you can see, the new physical interface name for our new VLAN is eth1.201! Click Save & Apply and go back to the Interface Overview.
- Click Connect to bring the interface online. You should see an IPv4 address at this point! If you have an ISP which supports IPv6 repeat the same steps on that interface.
I hope this post helps someone. I did a lot of running around trying to figure this out on my last go at this, and didn’t have this info on-hand.