User Tools

Site Tools


doc:walkthrough_login

Log into your Router Running OpenWrt

We've installed OpenWrt but now is time to get our router configured. Visit your router's administration page. No matter what the address was before, OpenWrt simplifies this by setting the administration address to be http://192.168.1.1. At that page you should see a login page: (correct as of Barrier Breaker)

As you'll see, there's a notification that "root" user's password is not set. root is the username of the main administrative user on OpenWrt. We'll need to set that after we login. Log in with the username of root and leave the password field empty.

OpenWrt Default Features

Any freshly installed "vanilla" OpenWrt Image, will start with these defaults:

  • The internal interface lan and the wireless interface/interfaces wlan0 / wlan1 are bridged together to br-lan
  • wifi is disabled
  • the IP address of the internal interface/bridge of the OpenWrt-device is 192.168.1.1/24
  • dnsmasq is running; it allocates IP addresses in the range of 192.168.1.100 to .250 on the internal interface to connected hosts
  • dropbear does not accept connections (releases up to Chaos Calmer 15.05 and trunk builds before r46809)
  • telnet daemon is running on standard port 23 (releases up to Chaos Calmer 15.05 and trunk builds before r46809)
  • ssh daemon is running on standard port 22 (trunk builds after r46809)
OpenWrt will keep booting into this state until you set a password:

Status page

Once you've logged in, you'll see the main status page. From here you can get a high-level view of your routers status. We'll go through some of the information viewable on this page.

In the first screen shot, you can see some basic system information like the version of OpenWrt and the web interface packages of OpenWrt, which is named LuCI. Additionally, you can see the uptime for the router since last reboot, the current clock time on the router and how much of the router's processor is used ("load"). Let's scroll down a little.

In the second screenshot, you see the router's memory usage. As services are started on the router, the "total available memory" will go down. In the case of the screenshot, there's lot of memory still available. If the amount is very low, the router could slow down and behave erratically. In that case, one would need to stop and disable services on the router. That's beyond the scope of this walkthrough but it's important to know.

Next we'll see the Network section. The Network section shows information the network interface of the router, particularly as it applies to IP addresses. Additionally, you'll see the transmission speed of data going through those interfaces. At the end of the network section, you'll see how many network connections are going through the router compared to the maximum supported by the router.

In this final screen shot, you'll see the DHCP leases computers on the router. Without getting into details, DHCP leases represent temporary IP addresses that the router will give out to client computers. Lastly there is information about the wireless networks for your router. You may have a different number than in this screen shot depending on your router model but all of them will be disabled for initial security purposes. Don't worry, we'll turn them on in just little bit.

Now that we have a sense of the information on the status page, we need to fix that lack of a root password. We can do that but scrolling back up to the top of the page and clicking "Go to password configuration…" in the box titled "No password set!"

Set up root password

Before we actually do anything else, we need to set the root password. As we mentioned, root is the username of the administrative user in OpenWrt. Since this is an extremely powerful account, we need to provide a strong password that you'll remember. Once you have a new password, type it into the "password" field and then repeat it into the "confirmation" field. Make sure to remember this password; when you log into the router again, you'll need this password.

While not absolutely necessary, it's useful to set up SSH access with Dropbear. Without getting into detail SSH, allows you to login via a command line. In some rare situations, you may need to login to the diagnose problems without visiting the web administration. In that case you would use SSH so it's important to have that setup. Fortunately, the default settings allow that so we won't have to change anything.

Lastly, we click "Save & Apply" to finalize our changes on this page.

Now that we've set our root password, we only have to turn on and secure our wifi networks and we'll be done.

Next step: Secure and Turn On Wifi ->

doc/walkthrough_login.txt · Last modified: 2017/05/30 14:56 by tmomas