Hi, when you just flash an openWRT firmware on the router, you may find internet connection problem. To install the follow up packages like luci or even for ‘opkg update‘ you need internet. What you can do to solve the problem, at least temporarily depending on your goal, is to change the ‘lan‘ ip address to a different address (e.g. 192.168.1.150), rather than the default value ‘192.168.1.1’. You can use the following commands to edit the ‘etc/config/network’ file for this setting. After the reboot of the router you will be able to access the internet.
ssh root@192.168.1.1 vi /etc/config/network
press ‘i’ to edit the file. Change only the lan.ipaddr field.
Press ‘:wq’ to save and close the file.
reboot
Once rebooted you can access the router using the static IP you assigned. For example with 192.168.1.150, in this tutorial.
ssh root@192.168.1.150 opkg update
Cheers !!! 🙂