我正在尝试在我的家庭网络中设置两个路由器,但在这里我很困惑。
我的系统看起来像这样:
所以路由器2连接到线路上。我(我的 PC 是)连接到路由器 1。当我输入 192.168.1.1 时,我连接到路由器 2 的配置页面。那么如何连接到路由器 1 的配置页面呢?我ipconfig在 Windows 的 CMD 中尝试过,但没有帮助。
那么我怎样才能找到路由器 1 的 ip 呢?
笔记:
192.168.1.2 说禁止
您无权访问 / 在此服务器上。
小智 8
根据这个线程:
您可以使用ARP命令来查找连接到另一台路由器的路由器的详细信息。
arp -a输出可能如下所示:
? (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]
您可能会列出多个接口,请参阅与计算机 IP 地址匹配的接口。
这给我留下了两种可能性。在我的主路由器(图中的路由器 2)配置中查找“DHCP 客户端表”,我看到 192.168.1.145 作为我的 NAS
因此,通过排除,192.168.1.101 是我充当接入点的另一个路由器。
只需对路由器 2 另一端的 IP 运行跟踪路由(如果在 Linux 上则为 Traceroute,如果在 Windows 上则为 Tracert)
从您的图表来看,路由器 2 似乎已连接到互联网,因此您可以输入:
traceroute www.google.com
Run Code Online (Sandbox Code Playgroud)
您将得到与此类似的输出:
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
Run Code Online (Sandbox Code Playgroud)
在本例中,192.168.5.1 是我的“路由器 1”,您的路由器 2 应出现在该行下方,并且可能是您的公共 IP 地址。