大约一年前我们搬进了我们的新房子,我非常兴奋,因为我用Cat 6 电缆和遍布各处的以太网端口连接了它!(cable and Ethernet ports)
对我来说不幸的是,我没有意识到所有这些连接都来自一个位置,而那恰好是我的主卧室壁橱(master bedroom closet)!是的,当 AT&T 的人出来连接我的互联网(Internet)时,他不得不把无线路由器(wireless router)放在我壁橱的墙上。
这无论如何都不理想,原因如下:
1. 为什么我要把我的无线路由器(wireless router)塞进壁橱的墙上?我不能方便地访问它来重置它或检查灯光等。
2. 壁橱不在房子的中心,因此信号几乎无法到达房子的对面,在楼上也不能很好地工作。
最终,我决定必须购买另一个无线路由器,并以某种方式将(wireless router and somehow set)其设置为第二个无线路由器(wireless router),以补充主无线网络(wireless network)。
在这篇文章中,我将向您展示如何将第二个无线路由器(wireless router)添加到与第一个路由器位于不同子网的网络中,但仍将使用主路由器作为网关连接到Internet 。
在以后的文章(future post)中,我还将写一篇关于如何设置第二个无线路由器(wireless router)的教程,它只是主无线路由器(wireless router)的扩展,这意味着两者都将使用相同的子网和相同的 IP 地址范围。
设置第二个无线路由器
您首先需要的是另一个无线路由器(wireless router)。本教程将使用两个单独的子网的原因是因为配置第二个路由器更容易,您可以购买任何无线路由器(wireless router),而不必找到充当无线网桥(wireless bridge)或无线中继器(wireless repeater)的特定路由器。
这也是一种选择,但很多时候您至少需要两个完全相同的路由器或来自同一制造商的两个路由器。
无需担心设置网桥和中继器,配置要容易得多,我们可以使用任何我们想要的无线路由器。
如果您希望两台路由器在同一子网中工作,您还必须担心在一台路由器上禁用DHCP等。我们可以使用这种双子网方法将所有选项保留为默认值。
此外,由于我们将使用路由器,因此两个网络都可以相互通信。因此,如果您在Subnet A上有一台服务器,并且您想使用Subnet B上的计算机访问该服务器上的文件,您将能够做到这一点。
就我而言,我继续购买了Netgear N600 无线双频路由器(Netgear N600 Wireless Dual Band router)。我通常发现Netgear似乎比LinkSys 和 D-Link 路由器(LinkSys and D-Link routers)工作得更好,但这并不重要。
现在是有趣的部分!请记住(Remember),为了使其正常工作,您将需要在家中某处的另一个以太网插座(Ethernet outlet),您可以将您的第二个物理连接到该插座。
您要做的第一件事是拆开路由器包装并将其插入(router and plug)。一旦它启动并运行,除了我们当前的无线网络之外,您还应该拥有一个不安全但正常工作的无线(wireless network)网络(wireless network)。
此时,我们需要连接路由器,并在网络浏览器中访问(web browser)配置页面(configuration page)。继续连接到您的PC 或 Mac上的(PC or Mac)无线路由器(wireless router)。阅读路由器随附的说明。
它应该告诉您默认IP 地址(IP address)是什么以及如何使用您的网络浏览器连接到(web browser)管理页面(admin page)。通常,它类似于 10.0.0.1 或 192.168.1.254 等。它应该如下所示:
现在,在我们继续之前,我们必须确保两个网络使用不同的子网范围。例如,如果您的主路由器使用 192.168.1.1-254 范围,那么您需要确保第二台路由器使用不同的范围,例如 10.0.0.1-254。
我假设正在阅读本文的人都有一些技术知识并且理解我在说什么。如果您需要更改路由器的IP 地址(IP address)范围,请转到配置页面(configuration page)上的LAN TCP/IP setup:
IP 地址(IP Address)是路由器的IP地址(IP address),在我的例子中是 10.0.0.1。这对我来说很好,因为我当前的无线网络(wireless network)使用的是 192.168.1.x IP 地址(IP address),所以没有冲突的机会。
如果您想使用不同的IP 地址(IP address)范围,请查看这篇文章,其中列出了三个主要的私有 IP 范围:http://en.wikipedia.org/wiki/Private_network。
确认子网不同后,我们现在可以将无线路由器(wireless router)配置为使用第一个路由器(连接到Internet的主路由器)作为默认网关和 DNS 服务器(default gateway and DNS server)。
基本上,第二台路由器的“互联网(Internet)”将成为第一台路由器本身。第一个路由器的Internet是您的ISP。
为了让它工作,我们首先需要将第二个路由器物理连接到第一个路由器的网络。您可以通过将以太网电缆(Ethernet cable)从第一个路由器的LAN端口连接到第二个路由器的(LAN port)WAN 端口(WAN port)来实现此目的。
当然,这只有在您的房屋与房屋周围的以太网(Ethernet)端口连接时才有意义,否则将您的第一个和第二个路由器彼此相邻是没有意义的。或者,如果您没有其他选择,您可以购买一条 100 英尺长的以太网电缆(Ethernet cable),然后以这种方式将两者连接在一起。
上图中的黄色端口是我的 Netgear N600 路由器上的(N600 router)WAN 端口(WAN port),它充当我的第二个无线路由器。我基本上拿了一根电缆,将一端插入墙上的以太网端口(Ethernet port)插孔,另一端插入Netgear 路由器(Netgear router)上的WAN 端口(WAN port)。
同样,如果您的墙上没有插孔,则必须将电缆从第一个路由器上的LAN 端口(LAN port)(上图中的黑色端口)连接到第二个路由器上的WAN 端口(WAN port)。
一旦你有了物理连接,我们需要做的就是告诉新路由器指向第一个路由器来访问互联网(Internet access)。您可以通过转到第二个路由器的路由器配置中的(router configuration)WAN 设置(WAN setup)来执行此操作。
根据您拥有的路由器,可能不会这样称呼它。基本上(Basically),您正在寻找指定Internet IP 地址(Internet IP address)的部分。通常,这设置为从 ISP 自动获取(Get Automatically from ISP),但在我们的例子中,我们希望新路由器指向我们网络上的第一个路由器。
首先,您需要给您的第二台路由器一个“ Internet IP 地址(Internet IP address)”。这与LAN IP 地址(LAN IP address)不同,您在上面看到的是我的路由器的 10.0.01。Internet IP 地址(Internet IP Address)就是您的第一个无线网络(wireless network)上的任何可用IP 地址(IP address)。
我随机选择了 192.168.1.145,因为我知道在我的第一个无线网络(wireless network)上没有具有该IP 地址(IP address)的设备。只需选择(Just pick)2 到 253 之间的任何值,但最好选择更高的值,例如 100 的值。如果您有点技术,您可以先 ping 该地址以确保没有设备响应。
重要的部分是将网关 IP 地址(Gateway IP Address )和主 DNS 服务器(Primary DNS Server)更改为第一个路由器的IP 地址(IP address),在我的例子中是 192.168.1.254。基本上,这是告诉第二个路由器将所有Internet 流量(Internet traffic)路由到第一个路由器。
网关 IP 地址(Gateway IP Address)也指向第一个路由器,它基本上允许第二个网络与第一个网络通信(network and communicate)并与第一个网络上的设备通信。
就是这样!真的没有什么其他的了。将笔记本电脑连接到新网络后,您应该重新启动第二个路由器并尝试浏览Internet 。您可能还必须重新启动您的第一个无线网络(wireless network)才能让一切正常工作。
如果您无法使其正常工作,请发表评论,我会尽力提供帮助。确保提供有关您的网络和配置(network and configuration)等的详细信息。享受吧!
Setup a Second Wireless Router on Your Home Network
We moved into our new house about a year аgo and I was super excited because I had it all wired up with Cat 6 cable and Ethernet ports all over the place!
Unfortunately for me, I didn’t realize that all of those connections would be coming from one location and that happened to be my master bedroom closet! Yes, when the AT&T guy came out to connect my Internet, he had to put the wireless router inside the wall of my closet.
This was not ideal by any means for several reasons:
1. Why would I want my wireless router stuffed into a wall in my closet? I can’t access it conveniently to reset it or check the lights, etc.
2. The closet is not in the center of the house and therefore the signal barely reaches the opposite side of the house and doesn’t work very well upstairs either.
Eventually, I decided that I would have to get another wireless router and somehow set it up as a second wireless router to complement the main wireless network.
In this post, I am going to show you how you can add a second wireless router to the network that will be on a different subnet then the first router, but will still connect to the Internet using the main router as a gateway.
In a future post, I will also write up a tutorial on how to setup a second wireless router that is simply an extension of the main wireless router, meaning both would be using the same subnet and same range of IP addresses.
Setup Second Wireless Router
The first thing you’ll need is another wireless router. The reason why this tutorial will use two separate subnets is because it’s easier to configure the second router and you can buy any wireless router rather than having to find a specific router that will act as a wireless bridge or as a wireless repeater.
That’s also an option, but a lot of times you need two of the exact same routers or two routers from the same manufacturer, at least.
Without worrying about setting up bridges and repeaters, the configuration is much easier and we can use any wireless routers we want.
If you want both routers to work on the same subnet, you also have to worry about disabling DHCP on one router, etc. We can leave all the options to default using this dual-subnet method.
Also, since we will be using a router, both networks will be able to talk to each other. So if you have a server on Subnet A and you want to access files on that server using a computer on Subnet B, you will be able to do that.
In my case, I went ahead and purchased a Netgear N600 Wireless Dual Band router. I’ve usually found that Netgear seems to work much better than LinkSys and D-Link routers, but it really doesn’t matter.
Now for the fun part! Remember that in order for this to work, you will need another Ethernet outlet somewhere in your house that you can physically connect your second your to.
The first thing you’ll want to do is unpack your router and plug it in. Once it is up and running, you should have an unsecured, but working wireless network in addition to our current wireless network.
At this point, we need to connect to the router and visit the configuration page in the web browser. Go ahead and connect to the wireless router on your PC or Mac. Read the instructions that come with the router.
It should tell you what the default IP address is and how to connect to the admin page using your web browser. Usually, it’s something like 10.0.0.1 or 192.168.1.254, etc. It should look something like this:
Now before we can go any further, we have to make sure the two networks are using separate subnet ranges. If your primary router is using the 192.168.1.1-254 range, for example, then you need to make sure the second router is using a different range, such as 10.0.0.1-254.
I’m assuming whoever is reading this has some technical knowledge and understands what I am talking about. If you need to change the IP address range for the router, go to LAN TCP/IP setup on the configuration page:
The IP Address is the IP address of the router, which in my case is 10.0.0.1. This worked out fine for me because my current wireless network was using a 192.168.1.x IP address, so there were no chances of conflict.
If you want to use a different IP address range, check out this post which lists the three main private IP ranges: http://en.wikipedia.org/wiki/Private_network.
Once you’ve confirmed the subnets are different, we can now configure the wireless router to use the first router (your main router that is connected to the Internet) as the default gateway and DNS server.
Basically, the “Internet” for the second router is going to be the first router itself. The Internet for the first router is your ISP.
In order to get this working, we first need to physically connect the second router to the first router’s network. You can do this by taking an Ethernet cable from the LAN port on your first router to the WAN port on the second router.
Of course, this really only makes sense if your house is wired with Ethernet ports around the house, otherwise having your first and second router right next to each other don’t make sense. Or if you don’t have any other choice, you can go buy a 100ft Ethernet cable and then connect the two together that way.
The yellow port in the diagram above is the WAN port on my Netgear N600 router, which is acting as my second wireless router. I basically took a cable and plugged one end into the Ethernet port jack in my wall and plugged the other end into the WAN port on the Netgear router.
Again, if you don’t have jacks in your wall, you will have to connect a cable from a LAN port (the black ports in the above diagram) on the first router to the WAN port on the second router.
Once you have that physical connect, all we need to do is tell the new router to point to the first router for Internet access. You can do this by going to WAN setup in the router configuration for the second router.
Depending on which router you have, it may not be called that. Basically, you are looking for the section where you specify the Internet IP address. Normally, this is set to Get Automatically from ISP, but in our case we want the new router to point to the first router on our network.
Firstly, you need to give your second router an “Internet IP address”. This is different than the LAN IP address, which you saw above is 10.0.01 for my router. The Internet IP Address will simply be any available IP address on your first wireless network.
I randomly chose 192.168.1.145 because I knew there was no device on my first wireless network with that IP address. Just pick anything from 2 to 253, but preferably something higher like in the 100’s. If you are slightly technical, you can ping that address first to make sure there is no device that responds.
The important part is to change the Gateway IP Address and Primary DNS Server to the IP address of the first router, which in my case is 192.168.1.254. Basically, this is telling the second router to route all Internet traffic to the first router.
The Gateway IP Address also points to the first router, which basically allows the second network to talk to the first network and communicate with devices on the first network.
And that’s it! There’s really not much else to it. You should restart the second router once and try browsing the Internet once you connect a laptop to the new network. You may have to restart your first wireless network too in order to get everything to work.
If you are having trouble getting this to work, post a comment and I will try my best to help. Make sure to give details about your network and configuration, etc. Enjoy!