OpenWrt : Installation on Raspberry Pi

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. In practice, this means that you can have all the features you need with none of the bloat, powered by a Linux kernel that's more recent than most other distributions.

Equipment Required

Raspberry Pi 3 Model B

Micro SD Card "Minimum 2 GB"

Power Supply

Ethernet Cord for LAN Connection


Raspberry Pi Case

OpenWrt Image Download

  • To start this project first of all we need to download the OpenWrt Raspberry Pi Image from the download link.
  • Once the image successfully downloaded we need to flash the image onto the SD Card.

  • Formating the SD Card

  • Now, We need SD Card Formatter tool to format the SD card.
  • Once, the card is plugged in, It will automatically detect by the computer then you need to click on format to format the Card.

  • Flashing the SD Card

  • After the SD card formated successfully then we use Etcher and flash the OpenWrt image to SD card.

  • Setting up Raspberry Pi

  • Now we need to plug in the SD card, connect the Ethernet Cable, Power Supply to complete the setup.
  • Its time to turn on the Raspberry Pi device it will take up-to 2 minute to boot the OpenWrt operating system.

  • After that we need to run Wireless Network Watcher to check the IP Address of Raspberry Pi.
    OpenWrt Default IP Address :

  • Now, you can directly access your OpenWrt router page by typing the default IP Address :
  • 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. Then 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
    Then we need to enter the new password 2 Time to change it.

    OpenWrt Default Username : root
    OpenWrt Default Password : blank

    Then we need to type the following commands to setup a static IP adress.

    1. uci set network.lan.ipaddr=
    2. uci commit
    3. /etc/init.d/network restart

    After the commands sucessusfully executed we need to reboot the OpenWrt router.
    Reboot OpenWRT : reboot -f

    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

    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 : 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.

    1. opkg update
    2. opkg install luci

    If SSL
    1. opkg install luci-ssl
    After the installation has completed, the LuCI web GUI will be available at

    Now your OpenWrt on Raspberry Pi 3 Model B is ready to use. Restart the Raspberry Pi and start using it.
    Smile ("_")

    Mr. PcMac

    Thanks for reading this article, Hope you Like it and your problem is resolved now.
    If you find any problem in the article Please Share your comments in the Message Box.
    Don't Forgot to Subscribe.