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

The following instructions give the OpenWrt device an IP address in the same network of the ISP modem, then set the ISP modem's IP address as “gateway” and “dns server” for the OpenWrt device, which is providing internet access to it's clients.

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

For example that the ISP modem has IP address; 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 notebook and connect it to the ISP modem's 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: 2022/01/08 06:43
  • by sorcun