Breathe new life into your old home router
A New Route
If you have an old router lying around, you can put it to good use with a few easy projects and learn something along the way.
There are some fun and interesting projects that can be done by repurposing an old home router. If you don't have an old router lying around, you can usually find one for about $5-$25. These routers are easy to reflash, so a new programmer doesn't have to worry about messing things up too badly.
In this article, we will look at three projects to get some extra life out of an older router. The first project uses the router's USB port to connect to third-party devices. The second project collects microcontroller and internal data, and the final project displays the data on the router's web page and on a Raspberry Pi.
Selecting a Router and Firmware
A number of open source firmware solutions can breathe new life into an old router. OpenWRT [1] and DD-WRT [2] are the most popular packages, but there are other options. You need to determine if one of these firmware packages supports your old router. Keep in mind that many older routers only have 4MB of flash and 32MB of RAM. These routers may not run or only marginally run OpenWRT or DD-WRT. We recommend that you choose a router with a minimum 8MB of flash and 32MB or more of RAM.
You also need to consider whether the router has USB support. A router without USB support can still be used as a web or application server, but it will be missing external hardware integration.
For our router project, we used OpenWRT because of our experience using the Arduino Yún modules.
Getting Started
Loading new router firmware will vary based on the make of your router. For this step, you'll need to check the manufacturer's directions and the router specifics from the OpenWRT or DD-WRT websites.
After the new firmware has been loaded, the router should be disconnected from your home LAN, and a PC needs to be wired to one of the router's LAN ports. The router will have a default IP address of 192.168.1.1, and the PC needs an IP address in the 192.168.1.x range (e.g., 192.168.1.10).
Once the router and PC are wired into their own small network, the router can be powered up, and the OpenWRT web interface (LuCI) can be used to configure the new router settings.
There are many possible router configurations. Most importantly, you must ensure that the repurposed router does not effect the main router on your home LAN. Typically, you'll want to disable routing features on the repurposed router before it is connected to the home LAN. In the OpenWRT web interface, software services such as the firewall, DNS (dnsmasq
), and DHCP (odhcpd
) also should be disabled (Figure 1).
For our setup, we used a USB hub so that we could connect a variety of different devices (Figure 2).
Software
Routers don't have a lot of memory, so the default firmware is fairly lean on extra features. Consequently, you will need to add software packages.
OpenWRT uses opkg [3], the OpenWRT package manager, to find and install software packages. After the router is connected to the Internet, software can be added either through the LuCI web interface (Figure 3) or manually in an SSH shell.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.