[Solved] Snapshot + ssh + no internet

Classic problem: I flashed openwrt snapshot to my TP-LINK RE450 v2 ( Worked great. ssh and ping lan machine works. But I have no internet connection. (needed because I love Luci).
My "mainrouter" has on it's wan side a static route (
My usb-dongle ( is connected to to my "mainrouter" via DMZ.
I tried to set a default route on my machine TP-LINK RE450 v2 (, but that does not help.
Please help, thx.

So that it is clearer, would you post the output of ip route from your main router?

It is probably the case that your RE450v2 needs a default route of

Here we go:

default via dev eth2 proto static dev br-lan proto kernel scope link src dev wlan1-1 proto kernel scope link src dev eth2 proto kernel scope link src 

Your "main router" knows how to reach "TP-LINK RE450 v2 (" as well as having a route to your other segments and a default route.

A default route on your RE450v2 of (and confirming that it is connected to your "LAN" ports) should resolve the issue.

Question remains: How do I set a default route on my RE 450v2.
I tried:

ip route add default via dev br-lan

results in ip: RTNETLINK answers: Network unreachable

Rather than using ip commands that will be lost after an interface flap, better use uci or edit the /etc/config/network directly.
option gateway '192.168.X.Y'
uci set network.LOGICAL_INTERFACE_NAME.gateway='your-gateway-address'
uci commit && service network restart

1 Like

I add option gateway ' to my config interface 'lan'?
like this?

config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'static'
option ipaddr ''
option netmask ''
option ip6assign '60'
option gateway ''

Update: ping: sendto: Network unreachable


1 Like

Thank you Jeff.
I changed it to Now I can ping (I had to fill in custom dns server as well).
Unfortunately opkg update is still not working.

option dns ''

Okay thank you guys, now I am online.
I am trying to describe what's necessary to gain internet connectivity with a freshly installed Snapshot-image.

  1. I am assuming we need to flash a factory image. Log-in to the web-interface. In my case it is a TP-link device. Usually it is Default user/PW is admin/admin.
  2. Flash from openWRT webpage downloaded image file.
  3. After successful flash we are done with the browser because snap-images come without Luci-interface. (and that is needed to use a web-interface).
  4. Log-in to your TP-link device via ssh. (now your device has a new IP, so ssh root@ does the trick.
  5. Now check-out your /etc/config/network file.
config interface 'lan'
	option type 'bridge'
	option ifname 'eth0'
	option proto 'static'
	option ipaddr '' ##IP from my IP-Link Device, I changed it from
	option netmask ''
	option ip6assign '60'
	option gateway ''##IP from my "main-router"
	option dns ''
  1. The last 2 entries from my config interface 'lan' are necessary to establish internet connectivity. You have to add them manually with a text editor. I used vim.
  2. Now type reboot in your console window and after rebooting your device you will be able to use opkg update and install luci consequently (opkg install luci).

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.