[Solved] Unable to connect to my router through SSH or WEB GUI

Hello there,
I'm trying to create a 5G Wann cellular modem router from a minipc to get internet from my camper van.

I followed the getting started tutorial to install x86 target, and everything seemed fine.

I've been trying to connect to the web ui interface or SSH from another device to configure everything, but I never manage to do it. Here are some issues I've had:

  • With the minipc openwrt connected to the main modem by LAN to LAN cable, I get internet, pings fine, and can install opkg packages.

    • The problem is that I cannot connect to the minipc from my macbook by running ssh@192.168.1.10 (that's the ip it appers by running ifconfig. I always get connection refused.
    • I cannot access to https://192.168.1.10 nor http://192.168.1.10, it says this site can't be reached.
  • With the minipc openwrt offline, but connected through LAN cable to my macbook, in the macbook I always get a self assigned IP '169.254.9.216', I get

Even after:

uci set netwoork.lan.proto="dhcp"
uci commit network
service network restart

Or setting

uci set network.lan.ipaddr="192.168.3.1"
uci commit network
service network restart

If anyone could show some light on what I'm doing wrong I would appreciate it, it's been days.

Thanks!

how many ethernet ports does the minipc have ?

it has 4 LAN and 1 console

the port you use when you can DL openwrt packages, is the WAN port.
you'll never be able to connect to the minipc through that port, unless you reconfigure it/the firewall.

one of the remaining three ports will be LAN.

The default IP address of OpenWrt is 192.168.1.1 -- have tried that?

With the mini-pc connected to your mac, what IP address does your Mac get? And what does it show as the gateway/router address?

Hey thanks for answering.
I always tried first the 192.168.1.1, but I can never get a proper IP from the minipc connected directly to it with a LAN port.
With the Lan connected to any of the 4 ethernet lan ports I get a "Self assigned IP".
Summarized:

  • ports 1 & 2, I get a Self assigned IP such as "169.254.48.177"
  • Ports 3 and 4 look like disconnected, no light appears in it (I don't care much about LAN ports). No connection.
  • Console port nothing happens.

run logread -f in the console, pull and reconnect the ethernet cable(s), see which ports generate some kind of reaction in the logs.

btw, are all four ports using the same NIC hw ?

Are you connecting to the minipc via keyboard and display? or serial?

@frollic
only ports 1 and 2 give show logs, both containing "interface": "lan"

@psherman
Currently the only way for me to connect since ssh and web gui are not working is through keyboard and display.

that could be because of you playing with the config.

I'd reset, or reinstall.

ok... since the only way we can see your working configuration is via literal photos (this is far from ideal, but will do the trick for now), please take photos of your screen for the following (be sure you get the entire file contents).

ubus call system board
cat /etc/config/network | more

(we'll work with the other files when needed).

ubus call system board

cat /etc/config/network | more

ok, so your LAN interface is on 192.168.3.1, but proto should be static, not dhcp.

2 Likes

Ok... so this indicates you have your lan on eth0 -- you'll need to figure out which port that is (physically) on your device. The address is 192.168.3.1

Let's move on to the other critical files:

cat /etc/config/dhcp | more
cat /etc/config/firewall | more

good catch! Yes, this is key!

I changed back to proto static.
This is the config for firewall and dhcp. I never touched them, they should be the default ones :s

Looks good. Restart your router and plug your computer directly into eth0. If you don't know which one is eth0, you may have to try them sequentially.

Your mac should get an IP of 192.168.3.x when you get the right port.

Just tried again, and now I can get a "Connected" status from the lan port 2, the lan port 1 says self assigned still.
The IP I get in lan port 2 is 192.168.3.233 and I can access to 192.168.3.1 finally both gui and ssh!

Now I can start another tutorial to configure the WANN modem :slight_smile:

Thanks a lot!

you're welcome... glad it's running now.

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile: