Cannot connect to internet

Hardware - Linksys WRT1900acs, Dray Tek 130 modem.
Problem:

I have installed OpenWRT on the Linksys but cannot connect to the internet. I can ssh into the OpenWRT software and ping the router successfully but attempts to reach the internet fail. I have an ethernet connection to the router. WiFi is off.

As a consequence I cannot load Luci to set up the router to access the internet. I seem to be in a catch22 situation.

Can anybody say what has gone wrong and how I might correct it? My reading around this suggests that ultimately I should move to LEDE but any steps in this direction are not possible without a solution to this problem. Thanks.

I guess you will not get much help unless you post some details...

Thanks. I am a newbie in this area. What details would you have wished to see?

the config files are always helpful, delete passwords and so on
they are located under /etc/config/

a picture/drawing how the router is connected to the dray tek

Also, how did you connect to the internet before installing LEDE?

OK. I have taken copies of all of the config files. I can attach their
listings but which are of particular interest?
What do you mean exactly by delete passwords? So that I can learn from
this what exactly are you looking for?

The connections are relatively simple.
I have an ethernet lead between my computer and the Linksys router socket
2, not the internet socket. The internet socket is connected by ethernet
lead to the only ethernet socket (marked LAN) on the DrayTek Vigor 130.
Its DSL socket is then connected to the telephone line.

The article I have been following to prepare the OpenWRT and router for use
states that I should update opkg.
If attempt this I obtain the following:

*root@OpenWrt:~# opkg update*
*Downloading
http://downloads.openwrt.org/snapshots/trunk/mvebu/generic/packages/base/Packages.gz
<http://downloads.openwrt.org/snapshots/trunk/mvebu/generic/packages/base/Packages.gz>.*
*Failed to establish connection*
*Downloading
http://downloads.openwrt.org/snapshots/trunk/mvebu/generic/packages/base/Packages.sig
<http://downloads.openwrt.org/snapshots/trunk/mvebu/generic/packages/base/Packages.sig>.*
*Failed to establish connection*
*Signature check failed.*
*Remove wrong Signature file. *

This is repeated several times before before aborting the attempt. I can
find not mention of signature in the config files.

To reply to Eduardo's question, I have installed only OpenWRT and flashed
the firmware in doing this. I have not installed LEDE. It was only when
searching for a solution to my failure to connect that I became aware that
a move to LEDE is recommended.
My connection to the internet is through an old Linksys WAG200 router.
Using it I downloaded the shelby factory image for OpenWRT.

I hope this makes things a little clearer.

Thanks
Tim

I don't understand. Whhich one is the router connected to the internet, the draytek or the wag200?
As I wrote some posts ago, a drawing of your network would be helpfull. also the output of

ifconfig 

and

route -n

Can you access your router (the linksys 1900) via webbrowser?

Due to the almost total lack of information this is pure guess work, but in case of VDSL (which would be one possible match for the Draytek Vigor 130), you'll most likely have to configure vlan tagging for your PPPoE session (the same is increasingly valid for ADSL on BNG platforms). You can either configure the vigor 130 to add/ strip the vlan tags transparently or configure the tagged vlan for your LEDE WAN interface (the former is probably easier, the later more flexible and "better").

When I need the internet I use the ADSL service on my Linksys WAG200. This
is a router/modem and does not need the draytek. When I am trying to setup
the Linksys 1900 and connect it to the internet the draytek is required,
the WAG200 is then powered down and its ADSL line transferred to the
Draytek.

A diagram of the connections is attached.

I cannot connect to the router using my browser. It is refused.
See attached.

The results of ifconfig and route are:

root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 14:91:82:31:8D:47
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1691:82ff:fe31:8d47/64 Scope:Link
inet6 addr: fdd4:416a:f300::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:783 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:57183 (55.8 KiB) TX bytes:8206 (8.0 KiB)

eth0 Link encap:Ethernet HWaddr 16:91:82:31:8D:47
inet addr:192.168.2.10 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::1491:82ff:fe31:8d47/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:759 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:6480 (6.3 KiB) TX bytes:61144 (59.7 KiB)
Interrupt:35

eth1 Link encap:Ethernet HWaddr 14:91:82:31:8D:47
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:878 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:82469 (80.5 KiB) TX bytes:7100 (6.9 KiB)
Interrupt:37

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0 frame:0
TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:6584 (6.4 KiB) TX bytes:6584 (6.4 KiB

route -n

root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0

In response to slh I do not have VDSL so I rather hope that I do not have
to follow what is proposed there but thank for the mail.

Tim

why isn't it possible to use the linksys 1900 with the wag200?

what happens when the 1900 wan/internet port is connect to one of the lan/ethernet ports of the wag200?

can you post the network config file?
who has the ip 192.168.2.1

I don't see the diagram.

If you are using ADSL (instead of VDSL), you need to configure the correct VCI and VPI settings for your ISP - furthermore your Vigor 130 can be flashed with different (OEM) modem firmwares according to the needs of your ISP; vlan setups might still (also) be an issue. You should find the necessary configuration for your ISP on their homepage or external parties, alternatively it should also be possible to read out the required settings from your old modemrouter.

While one usually won't buy a vigor 130 for this purpose, the vigor 130 firmware has everything needed for standalone router mode (the Draytek firmware is pretty capable, but complex and might be confusing) - so you can use it as that for testing as well. The information you have provided so far isn't sufficient to orivide advice.

Your Draytek is apparently in router mode (usually the default) since it has provided a private IP address (192.168.2.10) to the 1900. This is not ideal but you should have Internet access.

Try the following:
ping 192.168.2.1
ping 8.8.8.8
ping google.com

The first one pings the modem.
The second one pings a Google server that should always exist.
The third one checks if DNS is working.

If pinging to the modem works, but pinging to the Internet does not, it could be that your DSL provider is not properly connecting with the modem. You can log into the modem's configuration pages by using a web browser (on a PC that is connected to the 1900) to http://192.168.2.1 and check its WAN / DSL connection status.

Thank you all for the points and suggestions you have made.
I apologise for my delays in responding to your questions. Both time and
practical difficulties make it a slow process. I have just moved into a
new house and the demands arising from this together with the location of
the ASDL outgoing point in a cupboard under the stairs means that I have to
connect up and disconnect my hardware each time I wish to test things.

I have established that I can connect to the modem on 192.168.2.1 using the
browser but cannot get beyond it. I shall have to suspend my efforts to
get the new router up and running for a few days now and hope you will
excuse me.

I was wondering whether there is a means of reverting to the original
firmware through the reset button. If so I could save you all a lot of
effort by starting again and going directly down the LEDE route.

Many thanks
Tim

wait, what?