Login to the box is as simple as another router does. You can do it by telnet, ssh, or even web UI. By default, there is no password for administration user (root) so you must set it later (next article).
In any fresh installed system, it has following defaults:
- Internal interface lan and the wireless interface/interfaces wlan0/wlan1 are bridged together to br-lan
- wifi is disabled
- IP address for internal interface is 192.168.1.1/24
- dnsmasq is running; it allocates IP address in the range of 192.168.1.100 to 192.168.1.250 on the internal interface to connected hosts
- dropbear does not accept connections
- telnet daemon is running on standard port (23)
This default configuration will be kept until we set a password. And also the system will be reset to this state when we use failsafe mode.
In this article we will discuss two way to enter the machine:
- Login with Command Line Interface
- Login with WebUI
Login with Command Line Interface
Login with telnet is so easy. Just use you CLI or terminal and give following command:
You should be prompted by this screen (or similar to):
BusyBox v1.17.3 (2011-02-22 23:42:42 CET) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ATTITUDE ADJUSTMENT (bleeding edge, r26290) ---------- * 1/4 oz Vodka Pour all ingredents into mixing * 1/4 oz Gin tin with ice, strain into glass. * 1/4 oz Amaretto * 1/4 oz Triple sec * 1/4 oz Peach schnapps * 1/4 oz Sour mix * 1 splash Cranberry juice ----------------------------------------------------- [email protected]:~$
Telnet connection is considered unsecure, so we only use telnet connection for this time only.
By default, root account doesn’t have password assigned. Go assign a password for it.
We will be prompted to set a new password for the user root. Use a secure password for better security. After the password set, telnet daemon will be disabled. Type exit into the prompt. The telnet daemon is disabled but SSH is available automatically. Now use ssh to go back to router.
Login with WebUI
Mostly, WebUI is installed by default. To connect to router using WebUI, we can use any browser and go to 192.168.1.1 (default router address). Login using username root and empty password (if you have not change anything, using telnet).
LuCI is one of interface used for WebUI. Login to username root with an empty password. Then click on the left in the top bar on Administration and go to System in the bar underneath. You should see a page asking for new password. Write password you like on that page.
Another User Interface available. The WebUI will now ask you to set a password. Write your password into the New Password field and again into the Confirm Password field then click set
Similar to other WebUI method, we should connect to router using web browser. The username is admin OR root and the password is password. You can ssh to the router at the default address (192.168.1.1) the username is root the password is password. Unlike OpenWrt the telnet port is not open.
Can’t login? This might be a problem on firewall settings in Linux or Windows. Please check them or disable them (not recommended).embedded, openwrt