Use SSH to connect to the internet and install LuCI web interface

The following instructions give the OpenWrt device a IP address in the same network of the ISP modem, then set the ISP modem IP address as “gateway” and “dns” for the OpenWrt device, which is the device providing internet access to client devices.

The OpenWrt device will act as a client and will be accessible through its LAN port.

For example that the ISP modem has IP, so we can assign any IP that starts with I will assign to the OpenWrt device in the example.

uci set network.lan.ipaddr=""
uci set network.lan.gateway=""
uci set network.lan.dns=""
uci commit
/etc/init.d/network restart

This should save the setting and close the ssh connection as the IP address was changed.

You can also disconnect power from the OpenWrt device now, the setting is saved.

Disconnect the cable from the laptop and connect it to the ISP modem Ethernet port.

Connect the PC to the ISP modem with DHCP (normal “automatic IP” way), Wi-Fi or Ethernet should be the same. Connect to the OpenWrt device with ssh at IP

Now it should be able to install LuCI.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2020/09/20 21:09
  • by vgaetera