[Librecmc-users] Tried to upgrade my router and failed :(

Christopher Howard christopher.howard at qlfiles.net
Tue Mar 13 21:03:10 EDT 2018


Hi, especially I want to see the output of command

```
ip addr
```

But these might also be useful:

```
uci show network
uci show firewall
uci show dhcp
```

Goal here is to see what is not right in your IPv4 network
configuration.

On Tue, 2018-03-13 at 19:43 +0100, Simon Lydell wrote:
> Thank you so much for taking the time to help me!
> 
> 
> $ ip neigh
> fe80::6a1c:a2ff:fe01:ec3a dev eno1 lladdr 68:1c:a2:01:ec:3a router
> STALE
> 
> $ ssh root at fe80::6a1c:a2ff:fe01:ec3a%eth0
> ssh: Could not resolve hostname fe80::6a1c:a2ff:fe01:ec3a%eth0: Name
> or service not known
> 
> $ ssh root at fe80::6a1c:a2ff:fe01:ec3a%eno1
> root at fe80::6a1c:a2ff:fe01:ec3a%eno1's password:
> 
> 
> BusyBox v1.25.1 () built-in shell (ash)
> 
> 
>                     ____  _____  ____
>   _ _ _            |  __||     ||  __|
>  | (_) |__ _ _ ___ | |   | | | || |
>  | | | '_ \ '_/ -_)| |__ | | | || |__
>  |_|_|_.__/_| \___||____||_|_|_||____|
>  -----------------------------------------
>  r109-690eebcef4 Version: v1.4.2-legacy
> 
> root at libreCMC:~#
> 
> 
> ssh:ing into the router works!
> 
> How do you recommend I proceed?
> 
> 2018-03-12 1:46 GMT+01:00 Christopher Howard <christopher.howard at qlfi
> les.net>:
> > I'm curious, for my part, if maybe it is just a soft brick where
> > something got screwed up in the networking settings so you cannot
> > reach
> > it through IPv4. But I wonder if you might be able to ssh into it
> > over
> > IPv6, which has link-scope stateless autoconfiguration.
> > 
> > After powering up router and connecting eth cable to LAN port, can
> > you
> > run the `ip neigh` command? And post the output?
> > 
> > A link-local address might be visible which starts with `fe80::`.
> > The
> > maybe you could reach it with the IPv6 link local address and the
> > proper interface. On my network, e.g.:
> > 
> > ```
> > christopher at nightshade:~$ ip neigh
> > 10.16.0.1 dev eth0 lladdr e4:95:6e:4e:f0:a0 REACHABLE
> > fd58:c37c:549c::1 dev eth0 lladdr e4:95:6e:4e:f0:a0 router STALE
> > fe80::225:90ff:fe92:7851 dev eth0  FAILED
> > fe80::e695:6eff:fe4e:f0a0 dev eth0 lladdr e4:95:6e:4e:f0:a0 router
> > REACHABLE
> > fe80::225:90ff:fe92:7850 dev eth0  FAILED
> > christopher at nightshade:~$ ssh root at fe80::e695:6eff:fe4e:f0a0%eth0
> > 
> > BusyBox v1.25.1 () built-in shell (ash)
> > 
> > 
> >                     ____  _____  ____
> >   _ _ _            |  __||     ||  __|
> >  | (_) |__ _ _ ___ | |   | | | || |
> >  | | | '_ \ '_/ -_)| |__ | | | || |__
> >  |_|_|_.__/_| \___||____||_|_|_||____|
> >  -----------------------------------------
> >  unknown Version: v1.4.2
> > 
> > root at maedhros:~#
> > ```
> > 
> > On Sat, 2018-03-03 at 11:55 +0100, Simon Lydell wrote:
> > > Hi!
> > > 
> > > If somebody would like to help me with a failed upgrade or
> > > examine a
> > > potential flaw, read on. :)
> > > 
> > > TL;DR: Upgraded from 1.3.2 to 1.4.2. It worked for a couple of
> > > minutes. Now cannot access the web UI anymore. Cannot telnet into
> > > it.
> > > 
> > > Details:
> > > 
> > > I've been using a TPE-NWIFIROUTER2, which uses LibreCMC, for two
> > > years
> > > now and it’s been great! Thanks for working on this project!
> > > https://www.thinkpenguin.com/gnu-linux/free-software-wireless-n-b
> > > road
> > > band-router-gnu-linux-tpe-nwifirouter2
> > > 
> > > Since I bought it, I haven't touched it really.
> > > 
> > > Lately I've started to worry that my router isn’t secure anymore.
> > > As
> > > far as I could tell, I was using version 1.3.2. Now, 1.4.2 is
> > > available, as is shown in a red banner at the top of
> > > https://librecmc.org/ saying "Please upgrade soon."
> > > 
> > > I feel pretty confident fiddling with computers and I'm used to
> > > using
> > > the command line, so I decided to try to upgrade. I’m not so good
> > > at
> > > how networks work, though.
> > > 
> > > I found a guide on how to upgrade LibreCMC:
> > > https://www.thinkpenguin.com/gnu-linux/librecmc-free-software-wir
> > > eles
> > > s-n-broadband-router-gnu-linux
> > > 
> > > Before starting, I went to "System -> Backup / Flash Firmware" in
> > > the
> > > web user interface and downloaded a backup of the config. The
> > > file
> > > was
> > > automatically named “backup-libreCMC-2016-04-25.tar.gz”.
> > > 
> > > I downloaded this image:
> > > https://librecmc.org/librecmc/downloads/snapshots/v1.4.2-legacy/a
> > > r71x
> > > x/generic/librecmc-ar71xx-generic-tl-wr841-v8-squashfs-
> > > sysupgrade.bin
> > > 
> > > I then followed the instructions in the mentioned guide:
> > > 
> > > 1. I went to "System -> Backup / Flash Firmware" ...
> > > 2. ... unchecked "Keep Settings" ...
> > > 3. ... browsed for the downloaded image ...
> > > 4. ... clicked "Restore Image" ...
> > > 5. ... waited for 2 minutes (a "flashing in progress" page
> > > appeared)
> > > ...
> > > 6. ... and opened the web user interface again in a new tab.
> > > 7. The settings had reset as expected so there was no password
> > > needed
> > > to login anymore.
> > > 8. I went to "Backup / Restore" and clicked “Browse.”
> > > 9. However, I didn't select a "librecmc-default.tar.gz file" (as
> > > mentioned in the guide) because I don’t know where to get such a
> > > file.
> > > Instead, I selected the backup file I made before starting.
> > > 
> > > After that my login password came back, as well as the name of my
> > > wifi
> > > network. I could see on the summary page that "v1.4.2 Frivolous
> > > Fred"
> > > was running. All seemed fine – except there was no Internet
> > > connection.
> > > 
> > > I started clicking around in the web user interface just to
> > > explore
> > > what's there, but I didn’t change anything. At the same time I
> > > was
> > > searching on the Internet (using a hotspot from my phone) for
> > > what I
> > > could do about the missing Internet connection.
> > > 
> > > After a little while, perhaps 15 minutes or less, when I clicked
> > > a
> > > link in the web user interface Firefox showed its "Unable to
> > > connect"
> > > page instead of taking me to another settings section as before.
> > > Since
> > > then, I cannot connect to 192.168.10.1 anymore. I always get the
> > > “Unable to connect” page.
> > > 
> > > In those ~15 minutes I rebooted the router once using the
> > > "Reboot"
> > > menu item at the top, in case that makes a difference. (I figured
> > > the
> > > good old “Restart your system” trick could fix the Internet
> > > connection.)
> > > 
> > > The LEDs on the router are lit mostly as usual: PWR, SYS, WLAN
> > > and 1,
> > > but not WAN.
> > > 
> > > I then proceeded to try the "Resetting a libreCMC Router Method B
> > > (if
> > > you can't get to the router's web user interface use this method
> > > to
> > > 'unbrick' router" guide on
> > > https://www.thinkpenguin.com/gnu-linux/librecmc-free-software-wir
> > > eles
> > > s-n-broadband-router-gnu-linux
> > > 
> > > 1. I powered off the router ...
> > > 2. ... disconnected all ethernet cables ...
> > > 3. ... powered it on again ...
> > > 4. ... waited for the SYS light to start blinking ...
> > > 5. ... held down the WPS/Reset button ...
> > > 6. ... until the SYS light started blinking faster.
> > > 7. I connected an ethernet cable from one of the yellow LAN ports
> > > to
> > > my computer.
> > > 
> > > Then I tried to configure the wired connection according to the
> > > guide.
> > > I did this on Ubuntu 17.10 (I have also tried on 16.04 after
> > > that).
> > > Here's what I did:
> > > 
> > > 1. I clicked the network icon in the top right of the screen ...
> > > 2. ... and clicked "Wired Settings".
> > > 3. In the settings window that opens, I clicked the gear icon
> > > under
> > > "Wired".
> > > 4. In the smaller settings window that opens, I went to the IPv4
> > > tab.
> > > 5. There, I switched from the "Automatic (DHCP)" radio button to
> > > “Manual”.
> > > 6. That made an "Addresses" section appear, which let me fill in
> > > Address, Netmask and Gateway.
> > > 7. I filled in those three as requested in the guide:
> > > 192.168.1.189,
> > > 255.255.255.0 and 0.0.0.0 respectively.
> > > 8. Then I clicked "Apply" which closed the smaller settings
> > > window.
> > > 
> > > The next step is to use telnet to get into the router. telnet
> > > seems
> > > to
> > > come pre-installed with Ubuntu.
> > > 
> > > I opened a terminal, typed "telnet 192.168.1.1" and hit enter.
> > > 
> > > However, telnet wasn't able to connect. This is what happened:
> > > 
> > > $ telnet 192.168.1.1
> > > Trying 192.168.1.1...
> > > telnet: Unable to connect to remote host: No route to host
> > > 
> > > If I try telnet without the router connected I get a different
> > > error,
> > > so it seems like the computer is able to do _something_ with
> > > 192.168.1.1 at least:
> > > 
> > > $ telnet 192.168.1.1
> > > Trying 192.168.1.1...
> > > telnet: Unable to connect to remote host: Network is unreachable
> > > 
> > > I tried searching the Internet for telnet stuff, OpenWRT (gives
> > > more
> > > search results than LibreCMC) unbricking stuff and lots of
> > > networking
> > > stuff but never managed to get past this step.
> > > 
> > > I use another router for now, so I do have Internet access again
> > > and
> > > there's no immediate rush getting the LibreCMC router going.
> > > 
> > > 1. Could somebody help me "unbrick" my router?
> > > 2. Why, do you think, did the router become bricked? Did I do
> > > something wrong? Or is there a bug in 1.4.2?
> > > 3. If I manage to get the router going again, should I try to
> > > update
> > > LibreCMC again? Is the older version safe enough?
> > > 
> > > (I've contacted ThinkPenguin but haven't received an answer so
> > > far.)
> > > 
> > > Thanks for reading!
> > > _______________________________________________
> > > Librecmc-users mailing list
> > > Librecmc-users at lists.librecmc.org
> > > https://lists.librecmc.org/mailman/listinfo/librecmc-users
> > 
> > --
> > https://u.fsf.org/user-liberation
-- 
http://upgradefromwindows.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.librecmc.org/pipermail/librecmc-users/attachments/20180313/f35f4fd4/attachment.sig>


More information about the Librecmc-users mailing list