Sunday, November 26, 2017

Set up Linksys WRT45GL as router with CenturyLink DSL and C1000A modem

I've been having some trouble with CenturyLink and Private Internet Access VPN, the CenturyLink C1000A can't seem to handle all the connections so the VPN craps out regularly. The reviews of the C1000A are decent as a modem, not so good as a router. I have a Linksys WRT45GL, which has a good reputation as a router, so I've reconfigured my network to just use the C1000A as a modem and the Linksys as the router/gateway. It's pretty straightforward:

Set up the C1000A:

Get username and password for CenturyLink account. If you don't know these (they should have been given to you when you set up the CenturyLink account), you can telnet to the modem and get them as follows:

1. Log into C1000A with your browser.
2. Go to Advanced Setup and then Remote Console (on the left nav) underneath Remote Management. On the Remote Console screen choose the "Telnet Enabled" in the "Select the Console State Below" dropdown menu. Set a username and password, write it down. Click the "Apply" button.
3. Telnet to C1000A. Type "sh" to enter a shell. Type "/usr/bin/pidstat -l -C pppd" and hit Enter. Your username and password will be in the output. The password follows the "-p" in the output. Write these down for future reference. Quit your telnet session.

Note: pidstat is used for monitoring individual tasks currently being managed by the Linux kernel. The "-l" option displays the process command name and all its arguments. The "-C pppd" option filters the output to show only the processes named "pppd".

Log into to C1000A with your browser.

Go to wireless settings. Turn off wifi.

Go to Advanced Settings, then WAN settings, find ISP Protocol and set it to "Transparent Bridge". Click the "Apply" button. Your internet connection will stop working for now.


Set up the Linksys WRT45GL:

Log into Linksys with your browser.

Go to Setup, Basic Setup. Set "Internet Connection Type" to PPPoE. Enter your CenturyLink username and password. Set up DHCP if needed on this page since the C1000A will no longer be providing that service.

Go to Setup, Advanced Routing. Set "Operating Mode" to Gateway. Save.


Redo the wiring:

Unplug any ethernet cables going to the C1000A, but don't unplug the phone line since that is the DSL connection. Plug those cables into the Linksys. Connect an ethernet cable from the WAN port on the Linksys to one of the ethernet ports on the C1000A.


Restart both boxes:

Unplug C1000A. Unplug Linksys. Wait 1 minute.

Plug in the C1000A. Wait for the connection light to stop blinking (it looks like an outline of an ethernet port). This can take some time, but should be less than 5 minutes.

Plug in the Linksys. Log into it with your browser. Go to the Status page. Check that it's connected and has an IP address.

That is all. Assuming all your devices use DHCP, they should all automatically reconnect with the Linksys as the gateway.



No comments: