OpenWRT Setup on Raspberry Pi

In this segment, we are going to show you how to “Install OpenWrt Setup 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.

openwrt raspberry pi

Software Required :

Equipment Required Optional
Raspberry Pi Raspberry Pi 3 Model B Case
SD_Card SD Card
Raspberry Pi Keyboard
Ethernet Ethernet Cable Mouse
Charger Power Adapter    
Shop now

OpenWrt Setup on Raspberry Pi Image Download

  • First, to start this project we need to download the OpenWrt Raspberry Pi Image from the download link.
  • After that, we need to flash the image to the SD Card.

Formatting the SD Card

openwrt raspberry pi

Flashing the SD Card

  • After that, write the image to the SD Card using: Etcher
openwrt raspberry pi


Setting up Raspberry Pi

  • After that plugin, 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 minutes 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.

OpenWrt Default IP Address :

Setup fixed IP Address using CLI [Command Line Interface]

  • To set up 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 the 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 to 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 address.
uci set network.lan.ipaddr= 
uci commit /etc/init.d/network restart
  • After the commands successfully executed we need to reboot the OpenWrt Router.
  • Reboot OpenWrt.
reboot -f
  • Once the reboot finish, you can log in 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
  • 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 the LAN connection.
  • After we need to change the protocol to DHCP and click on switch protocol. Once it has 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 :
opkg update

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 and then type these commands.
opkg update opkg install luci
opkg install luci-ssl
  • After the installation has completed, the LuCI web GUI will be available at


  • You are all set to use OpenWrt on your Raspberry Pi.

Therefore, you need to restart your Raspberry Pi and start using OpenWrt. If you have any suggestions regarding this article please mention in the comment section down below. Smile (“_”)

You may also Like our other articles

Did you find us helpful?

Subscribe our YouTube Channel YouTube
Support us on Patreon Patreon
Like us on Facebook facebook
Share This Article with others

Harish Kumar

As a founder of the PcMac YouTube channel and website, Our goal is to provide Free Technical help to people and spread knowledge to everyone.
5 1 vote
Article Rating
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Animal Lover
Animal Lover
3 years ago

Then run Wireless Network Watcher to check the IP Address of Raspberry Pi.

what makes the Raspberry PI suddenly connected to your network after flashing? how did your network allowed raspberry pi to join your network? may be you can elaborate in details.


2 years ago

Do I need to install Raspberry Pi OS before I install openwrt?