All guides

How to Build a Router with a Raspberry Pi 5

Build a portable dual-band WiFi router from a Raspberry Pi 5: two builds to choose from, the parts list, what each radio does, flashing Telepi OS, first boot and the honest limits.

A Raspberry Pi 5 can be a capable small router: one that joins an existing WiFi network and broadcasts your own private dual-band WiFi at the same time. This guide covers the whole build with Telepi OS, a free router image for the Pi 5, from the parts list to a working network. The software side takes about ten minutes.

Why the Raspberry Pi 5 suits this job

A router needs several network interfaces, and the Pi 5 has room for them:

  • A PCIe connector. With a HAT on top it takes a proper WiFi card with external antennas.
  • USB 3.0 ports. Fast enough for a second, high-speed USB WiFi adapter.
  • Onboard WiFi. One more radio, already on the board.
  • Gigabit Ethernet. For a wired uplink or a wired device.
  • Low power draw. A Telepi build typically uses 5–15 W and runs from a USB-C PD power bank.

Separate radios let the router do two jobs at once: one joins the upstream network (a hotel, an Airbnb, or your ISP's box at home) while the others broadcast your own WiFi. Each job has its own radio, so there is no bandwidth halving and no switching between modes.

The parts list: two builds

Telepi can be built in two ways. Both use the same Raspberry Pi 5, USB adapter, antennas, case, power supply and storage. They differ in one place: the WiFi card that makes your hotspots, and the HAT that holds it.

Build 1 — Starter Build 2 — Pro
HAT on the Pi 5 Waveshare PCIe to M.2 E-Key HAT+ Waveshare PCIe to MiniPCIe HAT+
WiFi card MT7922 (M.2) AW7915-NPD or AW7916-NPD (Mini PCIe)
5 GHz hotspot The MT7922 card The AW card
2.4 GHz hotspot The Pi 5's onboard WiFi The AW card
Upstream WiFi USB adapter USB adapter
Telepi OS 2.0.1, or 2.1.0 and later 2.1.0 and later

Build 1 — Starter. The hotspots come from ordinary WiFi cards, the kind made for laptops, working as access points. The 5 GHz hotspot works well. The 2.4 GHz hotspot is weak: it comes from the Pi 5's onboard WiFi, which has only a small antenna on the board, inside the case.

Build 2 — Pro. One card with a chip made for access points and routers runs both hotspots, with WiFi 6 on both. Both are stable and reliable, and both use the external antennas. Choose this build if you depend on the 2.4 GHz hotspot.

Telepi OS 2.1.0 looks at the hardware on every boot and sets itself up for whichever build it finds, so both builds use the same image. Telepi OS 2.0.1 works with Build 1 only.

We build and test Build 2 with the AW7915-NPD. The AW7916-NPD uses the same driver and is set up the same way, but we have not tested it yet.

Build 1 — Starter: HAT and WiFi card

  1. Waveshare PCIe to M.2 E-Key HAT+

    1Waveshare PCIe to M.2 E-Key HAT+

    For Raspberry Pi 5, takes M.2 E-Key wireless cards, HAT+ standard

    Holds the MT7922 card.

  2. MT7922 Wi-Fi 6E Network Card

    2MT7922 Wi-Fi 6E Network Card

    M.2 E-Key wireless card, MediaTek chip

    Runs the 5 GHz hotspot. The 2.4 GHz hotspot comes from the Pi 5's onboard WiFi.

Build 2 — Pro: HAT and WiFi card

  1. Waveshare PCIe to MiniPCIe HAT+

    1Waveshare PCIe to MiniPCIe HAT+

    For Raspberry Pi 5, takes Mini PCIe cards, HAT+ standard

    Holds the AW7915-NPD card.

  2. AsiaRF AW7915-NPD (or AW7916-NPD)

    2AsiaRF AW7915-NPD (or AW7916-NPD)

    Mini PCIe dual-band WiFi 6 card, MediaTek access-point chip

    Runs the 5 GHz hotspot and the 2.4 GHz hotspot at the same time. The Pi 5's onboard WiFi is switched off.

Parts for both builds

  1. Raspberry Pi 5

    1Raspberry Pi 5

    2GB RAM or more

    The computer. 4 GB or more is comfortable.

  2. Bingfu Dual Band Antennas (2-Pack)

    2Bingfu Dual Band Antennas (2-Pack)

    2.4GHz / 5GHz / 5.8GHz 3dBi MIMO RP-SMA male

    Antennas for the WiFi card on the HAT. Check the connector: it must be RP-SMA male.

  3. MT7921AU USB 3.0 WiFi Adapter

    3MT7921AU USB 3.0 WiFi Adapter

    Panda PAU0F AXE3000, ALFA AWUS036AXML, EDUP AX3000M, NETGEAR A8000, TP-Link Archer TXE50UH or BrosTrend AXE3000

    The upstream / repeater radio. Any of the six adapters with the MediaTek MT7921AU chip does this job.

  4. microSD Card / USB SSD

    4microSD Card / USB SSD

    16 GB or larger

    Storage. An SSD lasts longer under 24/7 use.

  5. 27W USB-C Power Supply

    527W USB-C Power Supply

    Official Raspberry Pi 27W PSU recommended

    The Pi 5 is picky about power; under-powered boards fail silently.

  6. Aluminum Alloy Case for Raspberry Pi 5

    6Aluminum Alloy Case for Raspberry Pi 5

    With 3510 PWM fan and heatsink, compatible with DAC / AMP / RS485 & CAN HATs and expansion boards

    Cooling and protection.

The USB adapter

The USB adapter joins the upstream WiFi. It is the same in both builds, and any of these six models does the job. They all use the MediaTek MT7921AU chip:

  • ALFA Network AWUS036AXML

    ALFA Network

    AWUS036AXML

  • Panda Wireless PAU0F AXE3000 Tri Band

    Panda Wireless

    PAU0F AXE3000 Tri Band

  • EDUP USB 3.0 WiFi 6E Adapter AX3000M

    EDUP

    USB 3.0 WiFi 6E Adapter AX3000M

  • NETGEAR Nighthawk A8000

    NETGEAR

    Nighthawk A8000

  • TP-Link Archer TXE50UH AXE3000

    TP-Link

    Archer TXE50UH AXE3000

  • BrosTrend AXE3000

    BrosTrend

    AXE3000

Telepi is built and tested with the Panda PAU0F, ALFA AWUS036AXML and EDUP AX3000M. See which WiFi adapters work for how to choose.

Which radio does what

Build 1 — Starter Build 2 — Pro
Upstream (WAN), someone else's WiFi USB adapter USB adapter
Your 5 GHz hotspot MT7922 card AW7915-NPD card
Your 2.4 GHz hotspot Pi 5 onboard WiFi AW7915-NPD card
Pi 5 onboard WiFi In use Switched off

The minimal build

A bare Pi 5 also boots Telepi OS, with a 2.4 GHz hotspot from the onboard WiFi and a wired Ethernet uplink. There is no 5 GHz hotspot and no WiFi repeater, and this is not a tested configuration.

Assembly notes

  1. Mount the active cooler on the Pi 5 first, then the PCIe HAT on top.
  2. Fit the WiFi card to the HAT. In Build 1, the MT7922 goes into the HAT's M.2 slot. In Build 2, the AW7915-NPD goes into the HAT's Mini PCIe slot.
  3. Connect the card's two antenna pigtails, and screw the antennas onto the RP-SMA connectors through the case.
  4. Plug the USB adapter into one of the blue USB 3.0 ports. A USB 2.0 port will throttle it badly.

You can move from Build 1 to Build 2 later: swap the HAT and the card and keep the same microSD card. On the next boot Telepi OS 2.1.0 sets up the hotspots for the new card, and keeps your hotspot names and passwords.

Flash Telepi OS

Both builds use the same image. Use Telepi OS 2.1.0 or later; version 2.0.1 runs Build 1 only.

  1. Download the Telepi OS image (.img.xz) from the download page or from GitHub Releases.
  2. Verify the SHA256 checksum against the one shown next to the download.
  3. Flash it with Raspberry Pi Imager: Choose OS → Use custom, select the file, choose your card or SSD, and answer No when asked about OS customisation. balenaEtcher works too. Both accept the .img.xz file directly, so there is nothing to decompress.

Flashing erases the target card or drive, so check that you picked the right one.

First boot

  1. Insert the card (or connect the SSD), connect power, and wait about one minute.
  2. On a phone or laptop, join the WiFi named Telepi-5G-XXXX or Telepi-2.4G-XXXX, where XXXX is a unique 4-character code. The default WiFi password is telepi.com.
  3. Open http://192.168.111.200:8080 in a browser. It is http, not https, and the :8080 matters. Sign in with admin / telepi.com.

You land on the Overview page, which shows your upstream connection, your local network and both hotspots at a glance, plus CPU, memory and temperature.

Telepi Overview page showing the upstream connection, the local network and both hotspots

If no Telepi WiFi appears after two or three minutes, re-check the checksum, re-flash, and confirm the power supply is the 27W one.

Connect to the upstream WiFi

Open the Internet page, scan, pick the upstream network and enter its password. Saved networks reconnect automatically, and a watchdog reconnects on its own if the upstream drops or the USB adapter is re-plugged.

Telepi Internet page with the list of upstream WiFi networks

Prefer a cable? Plug an uplink cable from a router or modem into the Ethernet port and it becomes the WAN instead of WiFi. A computer plugged in there joins the LAN instead.

Change the defaults

Every Telepi image starts with the same passwords, so change them before you rely on it:

  • Hotspot passwords, and network names if you like, on the 5 GHz Hotspot and 2.4 GHz Hotspot pages.
  • The web password on the Setting page.
  • If you use SSH, the admin account also starts with telepi.com. Change it with passwd, or switch SSH off on the SSH Server page.

What you get

  • Your own dual-band WiFi on a private LAN (192.168.111.0/24 by default, changeable on the Local Network page).
  • A built-in DNS Server with ad and tracker blocking for every device.
  • A WireGuard VPN Client that covers every device behind the router.
  • One-click updates on the System Update page, a light and a dark theme, and an interface that works on phone browsers.
  • No cloud account, no telemetry and no subscription, with full SSH access to the Linux system underneath.

Limits

Telepi is deliberately small. It helps to know what it leaves out:

  • Only the Raspberry Pi 5 is supported.
  • The VPN is a WireGuard client only: no VPN server and no OpenVPN.
  • No guest network, VLANs, QoS or mesh.
  • No fixed per-device IP addresses in the interface.
  • No remote access or DDNS, and no port forwarding from the internet. Behind your ISP's box it runs as double NAT, which is fine for normal use.
  • No cellular modem support.
  • The image is free for personal and commercial use, but the source code is not published.

Next steps