How to reach my router's configuration page?

3

1

I've set up a router in my room (It's a TP-LINK W8980). I'm inside a college room, so I connected the WAN to the ethernet ports of my room, and the router is creating a wifi network. It's using PPPoE without DHCP.

When setting it up I connected it to my laptop using an ethernet cable, I opened http://192.168.1.1/ on a browser and I've reached the configuration page and I was able to login with the default user and password and set up the wifi networks I was looking for (and they are working fine).

I'd like to change some settings (especially the password...). However, right now, I cannot reach http://192.168.1.1/. It never lands on the login page (ping 192.168.1.1 gives an unknown host error). I've already tried:

  • disconnecting from the wifi network and only connect directly to the router via ethernet on a LAN port.
  • disconnecting the router from the WAN.
  • connecting the laptop to the WAN port of the router (in this case I get an error message about missing IP configuration, which is probably due to not having DHCP enabled in the router?).

So, my question: how the heck am I supposed to change the settings of the router now? It seems way too strange that the only way to setup a router after the initial configuration is to factory reset it and restart from zero...

Note: I've used all default settings for the networks and the router except that I had to select PPPoE and Dynamic IP and disable DHCP to make internet work on the wifi networks.

Note: In order to access Internet I have to go through a captive login portal.

Note: This is my first time ever setting up a router, or doing any kind of network configuration. So things like "Set a fixed IP for your laptop..." or basically any kind of language regarding network configuration to me sounds like "take your magic wand and touch laptop/router".

So: explain! If I have to change a setting in some system file tell me which file, and how to modify it. If I have to change some setting using some command line tool tell me which command line tool. If I have to change some system setting, try to give me some hints on how I can recognize it.


Some more information about my laptop configuration.

When I have the laptop connected via ethernet to a LAN port of the router (no wifi):

$ip route
default via 158.110.96.1 dev eth0  proto static 
158.110.96.0/24 dev eth0  proto kernel  scope link  src 158.110.96.145  metric 1 
172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.42.1 
$ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 1c:75:08:48:59:95 brd ff:ff:ff:ff:ff:ff
    inet 158.110.96.145/24 brd 158.110.96.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::1e75:8ff:fe48:5995/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 5c:ac:4c:3c:5d:b2 brd ff:ff:ff:ff:ff:ff
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 56:84:7a:fe:97:99 brd ff:ff:ff:ff:ff:ff
    inet 172.17.42.1/16 scope global docker0
       valid_lft forever preferred_lft forever

Trying to access 192.168.1.1 triggers the captive portal login, but I cannot access the config page.


Here's the output when the ethernet cable is connected to the WAN of my router and my laptop is connected to the wifi network of the router (ideally I'd like to be able to access router settings from this configuration, without having to add cables to my router etc.):

$ip route
default via 158.110.96.1 dev wlan0  proto static 
158.110.96.0/24 dev wlan0  proto kernel  scope link  src 158.110.96.119  metric 9 
172.17.0.0/16 dev docker0  proto kernel  scope link  src 172.17.42.1
$ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 1c:75:08:48:59:95 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::1e75:8ff:fe48:5995/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 5c:ac:4c:3c:5d:b2 brd ff:ff:ff:ff:ff:ff
    inet 158.110.96.119/24 brd 158.110.96.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::5eac:4cff:fe3c:5db2/64 scope link 
       valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 56:84:7a:fe:97:99 brd ff:ff:ff:ff:ff:ff
    inet 172.17.42.1/16 scope global docker0
       valid_lft forever preferred_lft forever

Trying to access 192.168.1.1 triggers the captive portal login, but I cannot access the config page.


With my current configuration trying to connect the laptop via ethernet to the WAN of the router fails saying that IP configuration is missing.


Note that I only care about being able to access the internet and to access the router configuration page. I don't care about other things in the network configuration.

Bakuriu

Posted 2015-02-06T06:58:50.920

Reputation: 127

1Can you share the currently assigned IP/Netmask/Default Gateway for your computer when connected via Ethernet? – heavyd – 2015-02-06T08:04:54.120

@heavyd Currently I'm not in my college room, I'll be back there on monday. I have no idea how to obtain that information, I'm not a system administrator and I'm not practical in configuring networks. I use KDE's network manager with all options to "Automatic". If you would tell me which configuration files contain that information or how to retrieve it I may be able to post it here (although, I repeat, I'm currently not connected to that router and I wont be until monday). – Bakuriu – 2015-02-06T15:59:50.320

Open a terminal window and include the out from ip addr and ip route – heavyd – 2015-02-06T16:06:33.097

As your IP address on wlan0 is 192.168.0.111, it could be that the wireless clients are allocated addresses starting from 192.168.0.100. Try all http://192.168.0.x addresses for x in the range of 100-110. – harrymc – 2015-03-13T19:59:50.567

Does http://tplinklogin.net work for you?

– Vinayak – 2015-03-15T03:36:05.510

@Vinayak: tplinklogin.net says "This domain may be for sale". Why did you recommend it? – harrymc – 2015-03-15T07:25:03.720

@harrymc That domain would only redirect to the router configuration page if you use a TP-Link router. – Vinayak – 2015-03-15T07:54:05.300

@Vinayak No, it doesn't work. That website is mentioned in the instructions of the router, in the configuration about shared USB devices. – Bakuriu – 2015-03-16T07:37:13.310

Answers

2

To connect to the TP-LINK W8980, set your computer's (laptop's) IP manually to 192.168.1.2, mask to 255.255.255.0, and gateway to 192.168.1.1 for the computer's eth0 interface. Then try to access the router via 192.168.1.1.

Setting IP, mask, and gateway varies from one system to another. In general though in the upper right or lower right of ones screen there will be a network icon. Left or right click to get menu under which you select network settings or something similar. Select options for your wired interface and then IPv4. Set method to manual and input settings as above. You can get here too from the control/system panel by selecting the network icon there.

Alternatively from the linux command line something like this as root or use sudo:

ip address add 192.168.1.2/24 dev eth0
route add default gw 192.168.1.1

Check your OS, release, and distribution for specifics on manual configuration. Setting the gateway may not be necessary.

You should have a wired connection from your computer (laptop) to the LAN side of the TP-LINK W8980. Try another OS or OS distribution on another computer as well if you're still not able to connect.

If that doesn't work, I would reset the TP-LINK W8980 and access as you did originally and try enabling the unit's DHCP server (or keeping it enabled) on the LAN side. The unit should be a DHCP client on the WAN side. And make sure you don't have the TP-LINK W8980 in bridge mode. Unless your intent is bridged mode. But it sounds like you may want your own private LAN.

JonathanS

Posted 2015-02-06T06:58:50.920

Reputation: 499

The problem is that he cannot access his router. – harrymc – 2015-03-14T12:14:40.097

1Reset it to default, then you can access it. – Overmind – 2015-03-16T06:02:07.837

I have no idea how to set the ip of my computer. Nor how to set a mask or gateway etc. I know what these things are, I know what DHCP does but how to configure all these stuff is outside my knowledge. Please explain how to perform the configuration steps, not just which configuration should fix the problem. – Bakuriu – 2015-03-16T08:15:14.710

@Bakuriu: What OS and distribution and release are you running on your laptop? For instance Ubuntu 14.04.2 LTS or Windows 7. I've updated my answer to provide some guidance on how to set the IP, mask, and gateway, but it may not be adequate. – JonathanS – 2015-03-16T13:45:29.630

1@JonathanS I'm using ubuntu 14.04 (although I'm a kde user, so I've actually installed the kubuntu-desktop package which makes the OS pretty much kubuntu 14.04). In this moment I don't have time, but later I'll try what you suggest and report the results. – Bakuriu – 2015-03-16T17:01:50.460

1@JonathanS I've tried the commands you provided me and, finally, I can access the route configuration page! When connected to the router I cannot access the Internet though. Is this normal, or is there a way to have both things? – Bakuriu – 2015-03-17T07:35:27.107

@Bakuriu: Great. Glad you're able to connect. Yes this is normal. You're on a different network that doesn't have access to the other one. A private network between yourself and your router. Your wireless network can probably still connect to the university network via your router. Did you try enabling it at the same time? Also you can setup virtual interfaces (aka ip aliasing) on your eth0. See http://www.tecmint.com/create-multiple-ip-addresses-to-one-single-network-interface/ for details. This may work as well but is more complicated.

– JonathanS – 2015-03-18T02:37:18.070

Could your solution slow down the wifi network? In the last 2 days the speed of my connection is quite unstable and the speed, for most of the time, is orders of magnitude slower than before (I passed from ~ 5+ MB/s to a lot of time where I cannot go over 50-100kB...). I'm not sure which is the cause; I'm wondering whether setting the default gateway could have such an effect or if I should investigate more and eventually open a new question. – Bakuriu – 2015-03-19T16:15:29.330

@Bakuriu: It should not slow down your wifi network. Depending the configurations for your laptop network interfaces, there may be an increased delay in finding a route or doing a DNS lookup. Best thing to do is undo the changes and see if your speed goes back up. Do you require a constant connection to your TP-LINK W8980 configuration interface? If not, then you'll be better off removing the changes when you don't need them and benefiting from the potential increased speed of a wired connection. As mentioned previously you could setup virtual interfaces as well. Investigate more, let me know. – JonathanS – 2015-03-19T21:37:44.780

@JonathanS To undo should I do route add default gw 158.110.96.1? (The IP is taken from what was the output of route before). I'll try to investigate more and, probably open a new question about that if I can't fix it. – Bakuriu – 2015-03-19T21:42:40.110

@Bakuriu: '/etc/init.d/networking stop; /etc/init.d/networking start' might be the easiest. It should then just request the gateway and IP via DHCP when the network restarts and you should be pretty much back where you started. If not, a new question wouldn't hurt and it probably wouldn't be long before you got an answer. – JonathanS – 2015-03-20T01:54:50.980

0

From your stated output, 192.168.0.1 seems to be your router's IP address. Try to access that address.

Also, the outputs mentioned in the comment above should help with more information.

Overmind

Posted 2015-02-06T06:58:50.920

Reputation: 8 562

I've added the output of ip addr and ip route in the "default setting" (i.e. router accesses WAN via ethernet and my laptop is connected with the wifi of the router). I'd like to access the router settings from that configuration. I believe the other output referred to when I connected to the router by putting an ethernet cable between router's WAN port and my laptop. – Bakuriu – 2015-03-13T10:43:15.683

Note that trying to connect to http://158.110.96.1 opens up a ZeroShell page (the network uses "captive login" stuff...), and it looks like an administrator page or something like that (at least, is not the usual captive login page and my credentials don't work there). – Bakuriu – 2015-03-13T10:46:03.107

That may be the provider end-user gateway. Try to assign a different net to the initial 192.168.1.1. There may be a conflict causing the router to reallocate to 0.1. Try 192.168.2.1 for example.Apply that change ONLY and then try to access the new address. If it works, then other settings should be possible if nothing in the router is broken. – Overmind – 2015-03-13T12:29:51.157

@Bakuriu: What happens when you try to reach http://192.168.0.1/ ? – harrymc – 2015-03-13T19:29:42.517

Yes Bakuriu - you need to update your question for the 192.168.0.x network. Naturally pinging 192.168.1.x would fail, that's not on your network. – nod – 2015-03-15T06:57:35.020

@Overmind I really have no idea what you are talking about. I'm a complete newbie at network configuration and to me saying "assign a different net to the initial 192.168.1.1" is just like saying "tap the laptop with your magic wand". Anyway I've updated the question with a bit more information. – Bakuriu – 2015-03-16T08:12:37.900

@Bakuriu: You still haven't said what happens when you try to reach http://192.168.0.1/. – harrymc – 2015-03-16T08:28:47.740

@harrymc Nothing. The browser just keeps loading. Using ping 192.168.0.1 simply tells me that all the packets are lost. – Bakuriu – 2015-03-16T08:34:29.613

0

Try to reset it to default configuration and assign a fixed IP (IP must be from your range network) by accessing it through a wired connection.Make sure to enable DHCP for your router clients. In case you reset it and you are not able to access it , this means that the router firmware is probably damaged.

Scorpion99

Posted 2015-02-06T06:58:50.920

Reputation: 1 023

I can do the first step (reset to default configuration), however I have no idea what you mean with all the rest of the stuff. How can I enable DHCP? Every time I tried the network didn't work at all. Disabling it made the network work. I highly doubt the firmware is damaged, I believe it's a configuration problem. Note that I'm inside a college building so there the configuration of the building network may not be the "default" one people are used to see, which is probably why the default router configuration doesn't work. – Bakuriu – 2015-03-16T07:40:34.007

0

Please note that when you disable the DHCP server in your router, it will request an IP address from whatever other DHCP server that it can find on the connected network. If it doesn't find such a server, it will choose some default. Its address in both cases will therefore no longer be 192.168.1.1.

A network scan of the entire college network to locate the router is not practical, because first it's quite unclear how to identify it, and second it could raise some red flags with the network administrator and get you banned as a hacker.

From the posted info, it is possible that your router's new IP is http:\\158.110.96.1 (or possibly this the college's main router). If this address doesn't work, you will need to reset the router in order to make it accessible again. A factory reset of the router will undo all your changes and will enable you to reach your router configuration page just as before, using the default user-name and password.

From the TD-W8980 manual :

With the modem router powered on, use a pin to press and hold the Reset button for at least 5 seconds. And the Router will reboot to its factory default settings.

The Reset pinhole is marked as such at the back of your router. A paper-clip is the simplest tool for pressing on it.

One solution might be to assign the router a fixed IP, for example 192.168.1.2, before disabling DHCP. However, the puzzling fact is that as far as I can see, your college's network is 158.110.96.x/24, which seems too small, with a maximum of only 252 connected computers possible. You might ask the network administrator of the college for a static IP address to which you can set your router so as to be able to reach it while it is on the college network. Using for the router a static IP address which is not on the same network segment as your computer will make it again unreachable.

However, in all cases where the router becomes unreachable, Factory Reset will will return you to a known working state.

See also: How to Configure WDS Bridging on TP-LINK Dual Band Routers

harrymc

Posted 2015-02-06T06:58:50.920

Reputation: 306 093