In this segment we are going to “Install OpenWrt on Raspberry Pi 3 Model B”
What is OpenWrt ?
OpenWrt is a highly extensible GNU/Linux distribution for embedded devices (i.e. wireless routers). Unlike many other distributions for these routers, OpenWrt is built from the ground up to be a full-featured, easily modifiable operating system for your router.
/> Software to Download
Equipment Required :
Raspberry Pi 3, 3B, 4
Micro SD Card “Minimum 8 GB”
Ethernet Cord for LAN Connection
Raspberry Pi Case
/> OpenWrt Image Download
- To start this project download the OpenWrt Raspberry Pi Image from the download link.
- Once, the image downloaded successfully than flash the image to the SD Card.
/> Formatting the SD Card
- Now, We need SD Card Formatter tool to format the SD card.
/> Flashing the SD Card
- Then write the image to the SD Card using : Etcher
/> Setting up Raspberry Pi
- After that plug in the SD Card, connect the Ethernet Cable and Power Supply to complete the setup.
- Followed by turn on the Raspberry Pi device it will take up-to 2 minute to boot the OpenWrt OS.
- Then run Wireless Network Watcher to check the IP Address of Raspberry Pi.
- Now, you can directly access your OpenWrt router page by typing the default IP Address : 192.168.1.1.
OpenWrt Default IP Address : 192.168.1.1
/> Setup fixed IP Address using CLI [Command Line Interface]
- To setup a Static IP Address to our OpenWRT Router by using commands.
- We need to login to our router by using Putty and type the Router IP Address for router login.
- On first login we need to set a password for our OpenWrt Router because there is No default password for this Image.
Command to change the Password : psswd
- To set a new password enter the new password 2 Time.
OpenWrt Default Username : root
OpenWrt Default Password : blank
- Then we need to type the following commands to setup a static IP adress.
uci set network.lan.ipaddr=192.168.1.2
- After the commands successfully executed we need to reboot the OpenWrt Router.
- Reboot OpenWRT :
- Once the reboot finish, you can login to your OpenWrt router at
/> Update the OpenWrt Router
- To update the OpenWrt router we need to change the static IP address to DHCP.
- To change the IP address to DHCP we need to login to our OpenWrt router page i.e. available on http://192.168.1.2
- Then we need to choose Network –> Interfaces and from here we need to edit the LAN connection. Because we are connected to our main router using LAN connection.
- After the we need to change the protocol to DHCP and click on switch protocol. Once it done then we need to save the changes and we will get a new IP address from our main router.
- We can find the new IP Address by using Wireless Network Watcher and connect to our OpenWrt router easily.
- After that we need to use this IP address to connect OpenWrt using Putty and then we can update our router using update command :
/> Setup GUI for OpenWrt [In case of No GUI] Optional
- If you are not able to login to router GUI then you need to follow the below instructions. Use putty with default OpenWrt IP Address 192.168.1.1 and then type these commands.
opkg install luci
opkg install luci-ssl
- After the installation has completed, the LuCI web GUI will be available at https://192.168.1.1
Now your OpenWrt on Raspberry Pi 3 Model B is ready to use.
Restart the Raspberry Pi and start using it.