17

I'm trying to setup two routers in my home network, and I'm confused here.

My system looks like this:

enter image description here

So the router 2 is connected to the line. And I'm (my PC is) connected to router 1. When I type 192.168.1.1, I connect to router 2's config page. So how can I connect to router 1's config page? I tried ipconfig in Windows' CMD, but it does not help.

So how can I find the ip of router 1 ?

Note:

192.168.1.2 says Forbidden

You don't have permission to access / on this server.

jeff
  • 599
  • 7
  • 18
  • 31

6 Answers6

9

As per this thread:

You may make use of the ARP command to find the details of your router connected to another router.

  1. Connect to your Access Point (or the router 1 in your diagram).
  2. Open a Command Prompt.
  3. Type in: arp -a

The output may look something like this:

? (192.168.1.1) at 48:f8:b3:36:1a:e8 on en0 ifscope [ethernet] ? (192.168.1.101) at 0:1b:da:29:0:7a on en0 ifscope [ethernet] ? (192.168.1.138) at a4:5e:60:e5:da:f5 on en0 ifscope permanent [ethernet] ? (192.168.1.145) at 0:90:a9:dd:a7:d9 on en0 ifscope [ethernet] ? (192.168.1.255) at (incomplete) on en0 ifscope [ethernet] ? (224.0.0.251) at 1:0:5e:0:0:fb on en0 ifscope permanent [ethernet]

You may have multiple Interfaces listed, refer to the one that matches the computer's IP address.

  • I know 192.168.1.1 is my other main router (router 2 in your diagram).
  • In this example, my computer is 192.168.1.138 (can be found out in several ways)
  • Addresses ending with .255 can't be the access point as it's the broadcast address for that subnet.

That leaves me with two possibilities. Looking up my "DHCP client table" in my main router (router 2 in your diagram) configuration, I see 192.168.1.145 as my NAS

So by elimination, 192.168.1.101 is my other router that is acting as an access point.

Jawad
  • 191
4

You are directly connected to Router1, so the corresponding interface's of Router1 is the range of your pc's interface.

For example your pc ip address is 192.168.5.10 and it subnet mask is 255.255.255.0. So connected interface of Router1 is in range 192.168.5.1-254. Just use some tools to scan your LAN to find ip addresses used. In must cases, your pc's default gateway is Router1 IP addresses.

Edit:

Tools to scan LAN:

oddone
  • 86
3

just run a traceroute (traceroute if you're on linux, tracert if windows) to an ip on the other side of router 2

From your diagram it looks like router 2 is connected to the internet, so you could type:

traceroute www.google.com

You will get output similar to this:

traceroute to www.google.co.uk (173.194.78.94), 30 hops max, 60 byte packets
 1  192.168.2.1 (192.168.5.1)  0.253 ms  0.247 ms  0.284 ms
 2  lo0-central10.pcl-ag01.blah.net (12.13.14.116)  17.208 ms  18.032 ms  18.029 ms
 3  link-b-central10.pcl-gw02.blah.net (212.159.2.162)  15.656 ms  16.099 ms  16.166 ms
4  194.core.access.blah.net (12.159.0.194)  15.654 ms  16.150 ms  16.077 ms
 5  ae2.pcl-cr01.blah.net (195.166.129.6)  16.388 ms ae1.ptw-cr02.blah.net 
95.166.129.2)  16.385 ms  16.797 ms
 6  ae1.ptw-cr01.blah.net (195.166.129.0)  17.062 ms 72.14.223.32 (172.14.223.32)  15.636 ms  15.977 ms
 7  72.14.222.97 (72.14.222.97)  15.967 ms 209.85.252.186 (209.85.252.186)  14.849 ms  15.273 ms

In this instance 192.168.5.1 is my "router 1", your router 2 should appear below this line, and may be your public ip address.

GeoSword
  • 254
1

I didn't have any luck with any of these answers but when I disconnected the second router from the network I was finally able to connect a device with Ethernet and login with the internal IP that was previously only showing the main router config page. I changed the "Operation Mode" from "Router" to "Access Point." Now my secondary router shows up in the list of connected devices and I can see the IP assigned to it.

0

None of the above command-line options worked for me, but I was able to successfully find my IP by doing the following from the Windows 7 GUI.

From the Start menu, search for View network computers and devices. In the window that opens, look for Router 1's name or brand name. Right-click on it, and click View device webpage - this will immediately open the router's gateway address in your browser, with its gateway IP in the address bar.

enter image description here

Hashim Aziz
  • 13,835
-1

I'm sure you have a smartphone and hopefully its a wireless router. Connect your smartphone to router 1 and then get the connected network's details from your smartphone. You'll end up with the router's IP address.

Otherwise, disconnect router 1 from all connections, inwards and outwards. Then reset the router and it'll use the default IP address that's on the back. If it's the same as router 2, go to "network" and then "LAN settings", and change the IP address. Now reconnect all the cables.

robinCTS
  • 4,407
Jake
  • 1