Tutorial: Setting Up TP-Link Archer T3U Plus on OpenWrt Raspberry Pi Router
Hello everyone, I wanted to share a tutorial on how to get the TP-Link Archer T3U Plus network adapter working on your OpenWrt Raspberry Pi router.
Note: The TP-Link Archer T3U Plus is not capable of access point mode, so you will need to use the onboard NIC as your AP if you want to set it up as a wireless router.
Step 1: Install and Flash OpenWrt
- Install a snapshot version of OpenWrt for your Raspberry Pi model.
- Flash the image onto your SD card and insert it into your Raspberry Pi.
Step 2: Access the Terminal
- Access your Raspberry Pi terminal either via SSH or directly.
- Set a password by running:
passwd
Step 3: Connect to Wi-Fi (Optional)
If you want to connect to the internet via Wi-Fi instead of Ethernet, follow these steps:
- Navigate to the configuration directory:
cd /etc/config
- Edit the wireless configuration:
vi wireless
- Press
i
to enter insert mode.
- Under
config wifi-device 'radio0'
, change option disabled
to '0'
.
- Under
config wifi-iface 'default_radio0'
, make the following changes:
- Change
option network
to 'wan'
.
- Change
option mode
to 'sta'
.
- Change
option ssid
to the network you want to connect to (e.g., Steve's Wifi
).
- Change
option encryption
to 'psk2'
.
- Add a new line
option key
and set it to your Wi-Fi password (e.g., Stevessafepassword
).
- Press
Esc
, then type :wq
to save and exit.
Step 4: Configure the WAN Interface
- Edit the network configuration:
vi network
- Press
i
to enter insert mode.
- Scroll to the bottom and add the following:
config interface 'wan'
option proto 'dhcp'
- Press
Esc
, then type :wq
to save and exit.
Step 5: Finalize Wi-Fi Setup
- Commit the wireless configuration:
uci commit wireless
wifi reload
- If something pops up and you can't run commands anymore, press
Ctrl+C
to fix it.
- Run
ifconfig
to verify that your Pi is connected to the internet.
Step 6: Verify and Install Drivers
- Update package lists:
opkg update
- Verify that your adapter is recognized:
opkg install usbutils
lsusb
You should see Realtek 802.11ac NIC
. If not, ensure the adapter is securely plugged in or test it on another machine.
3. Install the driver:
opkg install kmod-rtw88-8822bu
If successful, the driver should load.
Step 7: Configure the Adapter
- Edit the wireless configuration again:
vi wireless
- Press
i
to enter insert mode.
- Configure Radio 0 (onboard NIC):
- Set
option network
to 'lan'
.
- Set
option mode
to 'ap'
.
- Set
option ssid
to your desired AP name.
- For an open network, change
option encryption
to 'none'
and remove the option key
line.
- For a secured network, set
option key
to your desired AP password.
- Configure Radio 2 (TP-Link T3U Plus):
- Set
option disabled
to '0'
.
- Set
option network
to 'wan'
.
- Set
option mode
to 'sta'
.
- Set
option ssid
to your Wi-Fi name.
- Set
option encryption
to 'psk2'
.
- Add a line
option key
and set it to your Wi-Fi password.
- Press
Esc
, then type :wq
to save and exit.
- Finalize the configuration:
uci commit wireless
wifi reload
- Press
Ctrl+C
and run ifconfig
to verify that both interfaces are up.
Conclusion
Congratulations! You've successfully set up your TP-Link Archer T3U Plus USB adapter as a station for your Raspberry Pi router.
Additional Setup
LuCI: The Graphical User Interface
To install LuCI, the GUI for your router, run:
opkg install luci
reboot
It's a good idea to create a backup file at this point, so if you mess anything up, you can easily recover.
OpenVPN: Secure Your Wi-Fi Network
To secure your Wi-Fi network with a VPN, I recommend watching this video, which worked flawlessly for me. Note that you need a VPN provider; I recommend ExpressVPN or NordVPN.