The default gateway will be labeled as such on each operating system.
1. Visit openwrt.org
2. If you know the exact unit and version of your router, scroll down the website and find Download a firmware image for your device (firmware selector). Now, search for your device using the search bar. However, if you're not sure which version you're using, go to Download a firmware image for your device (Table of Hardware) and scroll through the list until you find your specific device.
If your router has multiple versions, open each link in the Device Page column and verify that the Hardware Highlight and image match the hardware equipped on your router.
3. Download both the kernel file and upgrade the BIN.
Please note that routers often come in different versions that use slightly different hardware. Make sure to download the appropriate firmware of your router and its specific version.
OpenWrt supports thousands of devices from different manufacturers. Due to hardware and firmware differences, you must follow OpenWrt's instructions to install OpenWrt firmware on your specific device.
In general, supported devices from popular manufacturers such as Linksys, D-Link, TP-Link and NetGear will have easier firmware installation. Other devices like Xiaomi and BT may require additional tools like OpenWrtInvastion or even access the bootloader using different serial communication protocols like UART and JTAG.
If your router is supported by OpenWrt, instructions will be provided on its website. Be sure to only follow the instructions that correspond to your specific device and router version, and don't forget to upgrade your kernel when available.
Warning: Modifying your device's bootloader can brick your router or put it in a boot loop. Read the instructions carefully and re-evaluate your steps or ask the OpenWrt community when something goes wrong with the instructions. If you brick your device, you can usually find unblocking instructions in the installation and upgrade section of the guide.
After you have installed OpenWrt on your old router, it's time to configure your device as a wireless bridge.
Luci-proto-relay is installable software for OpenWrt devices. It allows the router to use the forwarding bridge protocol, which is essential for connecting LAN and WiFi interfaces.
1. Before downloading the software, update the system data settings to ensure you do not encounter any SSL errors. On the top toolbar, go to System > System, then click Sync with browser > Save & Apply.
2. Now, go to System > Software and click Update list. After updating, search for luci-proto-relay and press Install.
3. Next, reboot the router by going to System > Reboot and clicking Reboot system.
This ensures that the software is installed properly and is available when needed later.
Since we want the main router to provide all the device's IP addresses, it's time to configure the old router to disable DCHP.
1. To turn off DCHP on the old router, go to Network > Interface. Select the LAN interface and click Edit.
2. In General Settings, make sure to set Protocol to Static address.
3. Go to DCHP Server, check the Ignore interface box and click Save.
Now configure the WiFi interface to receive data from the main router.
1. Go to Network > Wireless and click Scan on radio, then click Join Network on the main router's WiFi access point.
2. On the pop-up menu, enter the main router's WiFi password in the WPA passphrase and set Assign firewall-zone to lan.
3. When you click Submit, the Device Configuration menu will appear. Set Operating Frequency to the same frequency as the main router's WiFi access point.
If you are not sure about the device's operating frequency, you can select Auto and leave everything as default before pressing Save.
The WiFi and LAN interfaces have been established, now we can connect them together to form a wireless bridge.
1. To set up a wireless bridge, navigate to Network > Interface and click Add new interface.
2. Now, give the wireless bridge a name and select Relay bridge as the protocol and click Create interface. If you cannot find the Relay bridge protocol, check to see if you have installed the luci-proto-relay software and make sure to reboot the old router.
3. A general settings menu will appear when you create an interface. To connect both interfaces, you need to select both lan and wwan in the Relay between networks settings, then click Save.
4. Now, make sure that both networks are specified in the same firewall zone. Select the Firewall Settings section on the toolbar and select lan and wwan in Assign firewall-zone, then click Save.
5. Now, click Save & Apply. Once the settings have been applied, you will be disconnected from OpenWrt's Luci web interface. This is normal. Because your old router is now a wireless bridge using the main router's default gateway, you can no longer access the old router's web configuration page.
Now, you can unplug the Ethernet cable connecting the main router and the old router because they are already connected wirelessly.
Congratulations! You now have a wireless bridge.