I have an TP Link Archer C7 v2 router which I have flashed with OpenWRT yesterday. I have uploaded a quick and dirty network diagram to help diagnosis.
I had got it set up with USB tethering on my Android phone by creating a new interface that listens to the USB0 port. I then bridged it to the existing LAN connection to the existing LAN interface that connected to the DLink Router.
I thought that if I just looked at the default gateway when I connected to the internet I could use this to connect to the router but it didnt seem to be the case. Entering this into the web browser gets the "refused to connect" screen
I then disconnected the phone and the TP Link Router from the DLink Router and tried to access 192.168.1.1. This did not work either. Probably because i turned DHCP off as I wanted IP Addresses to be assigned by the Dlink Router (it connects to the internet)
I then thought that connecting everything and logging into the DLink Router would tell me which IP Address has been assigned to the router. The TP Link OpenWRT router did not even appear in the list.
I then thought of doing a factory reset by holding the reset button down for about 30 seconds. Still nothing.
I have also tried to SSH into 192.168.42.129 (default gateway with phone) and 192.168.1.1. Still no luck. I know it is connecting to the router as elbit slow, i do get internet access from the desktop PC.
Did I semi-brick my router? Is there anything that can be done?
CURRENT IPCONFIG: Android phone plugged into TPLink USB Port
Connection-specific DNS Suffix . :
IPv6 Address: 2001:8004:1400:1695:c8b0:7f28:82e6:2a58
Temporary IPv6 Address: 2001:8004:1400:1695:5dea:52e6:f234:72b3
Link-local IPv6 Address : fe80::c8b0:7f28:82e6:2a58%7
IPv4 Address: 192.168.42.51
Subnet Mask: 255.255.255.0
Default Gateway : fe80::1053:dcff:fe32:d6fd%7
192.168.42.129
I would love to but to do that I would need to connect to the router. I don't know what the routers IP address is and the standard factory reset (pressing reset button for a long time) isnt doing anything.
192.168.x.y
X must be equal as router's gateway. Y can be 0 to 254.
For instance your gateway is 192.168.42.129, then you may set the static IP as 192.168.42.2.
Now you can try to access Luci using openwrt.lan or the router's gateway
After each test I tried to ping the default gateway, if the request timed out i cancelled and moved onto the next configuration. None of these configurations worked.
As the DLink was operating on the 192.168.1.1 IP. I needed to set the Static IP Address before to 1.2.
Tested 1.1 and 0.1 as the settings could have been reverted during reset that did not quite work.
If it was then why cant i connect to it when i type the IP address into the browser? Only conclusion i can make is that 42.129 is the phone and not the router? I have however completed a ping of all ip addresses on the 42 subnet and only 51 (the pc) and 129 (the router/android phone?) returned any responses.
EDIT: I tried using the 42.129 as default gateway address anyway and was able to access the internet but still unable to connect to the OpenWRT web or ssh interface
I have tried setting my PCs static ip to 192.168.42.50 and the gateway to 192.168.42.129 then tried to connect to the router by typing 192.168.42.129 into the browser and putty. This does not work. I thought the gateway of my router was one of the following:
192.168.1.1
192.168.1.2
192.168.0.1
192.168.42.129
none of these have worked. on each attempt I have made the IP address of my desktop PC .50 on the relevant subnet.
Default gateway is the machine that is a link to the Internet. For the usual home router LAN to WAN setup that IP also is your router.
You're not doing that though.
You're letting the phone do all the routing, so it is the default gateway. The OpenWrt box is serving as a media converter from wifi or Ethernet to USB. It is switching packets, not routing them. This is known as a dumb AP. There is only one network active in a dumb AP, the LAN.
The OpenWrt LAN network should have an IP address in the 192.168.42 range. It could be statically set or obtained from the phone by DHCP. This IP is only for logging in to administer. It is not a gateway route.
Overall this is probably not what you want to do. Your wired ISP is not being used at all.
Ended up biting the bullet and doing a TFTP reset and then restoring it with OpenWRT. This worked fine and now I have an OpenWRT router back. Will attempt USB tethering again another time. Wondering if it is possible/desirable to have a USB tethered connection and use both a lan/wired internet connection together with the tethered connection for maximum speed. Will probably look into this another time.
A second line generally can’t get a home user more speed for each individual connection. This is because TCP/IP is address-based and each of the lines has a different IP address.
A second line can be used for fail-over or for sending some connections over one line and the rest over the other. The mwan3 package is one starting point.