路由器作为中继或桥接无法连接手机上网的解决方法(亲测可用)
路由器桥接(WDS)无法从副路由无线上网的解决方法(DHCP设置)
注:本教程亲测可用,如发现问题请提出共同探讨~
很多人都会选择在自己家里或者公司里架设无线wifi网,但是因为需要传输的具体很大或者有墙壁的阻拦,导致远处能接收到的无线信号很弱。通常采用的解决方法就是多个无线路由器来进行桥接(WDS),扩大局域网的区域。下面以普联TP-Link产品做例子,说说无线桥接经常遇到的问题并给大家讲解一下解决办法,主要是DHCP的设置问题。
但是很多同学反映,路由器桥接是成功了,但还是只能从主路由(A路由)上网,却无法从副路由(B路由,从路由)上网,找遍了各种教程,依然无法解决,甚至有的同学弄了好几天也没弄好,又是气,又是无奈。
本教程将帮您解决路由器桥接,无法从副路由上网的问题。
目前绝大多数同学桥接是用的是WDS----无线分布式系统来桥接两台路由器,本教程主要针对WDS功能,Brigde功能本教程不一定能解决。
据了解,大部分同学桥接路由器的方法要么是从百度文库等地方查阅,要么就是参考路由器说明书,依本人看来,这些方法都是不靠铺的,都是不完整的,这些教程仅简单阐述了如何桥接两台路由器,却没有解决实际的上网问题。
很多教程都有这一步:在设置副路由(B路由,从路由)的时候都关闭了DHCP服务器-----动态主机设置
(能自动给设备分配IP地址),导致所有连接到副路由的设备都无法得到IP地址[有部分同学开启了,但没有进行设置,所以即使设备得道的IP地址也是无效的]。
解决方法有以下两个:
1.手动为设备设置IP地址(繁琐,不推荐)
从主路由获取以下信息:
主路由的LAN口IP地址
主路由的子网掩码(又叫网络掩码,地址掩码,子网络遮罩)
主路由的WAN口得到的DNS服务器地址,一共有2个
如图,以TP-LINK的路由器为例:
advantages, facing the Yangtze River Delta, Pearl River Delta, Shandong peninsula, Beijing-Tianjin-Tangshan area, targeted investment promotion several times. Industry-led unit and various town streets are developing detailed promotion plans, the basis of what is specific to each industry, has formed a kind of scale, need to bring in the kind of projects each town street has the kind of resources, what location, focus on the development of the kind of industries. Four stroke technology and science. Determinants of technology is the County's economic development through scientific and technological innovation, improve product value-added and improve economic competitiveness, is the inevitable way to achieve leapfrog development. Talent is the city center city's first resource, is the primary industry development, and revitalization of the social protection. So, in terms of skills: to catch ... Competitive. Encouraging enterprises to actively undertake science and technology projects, strengthening research cooperation, using advanced technology to increase the added value of their products to ensure that introduction of transforming scientific and technological achievements during the year ... ... New research enterprises ... ... Home, creating innovative platforms ... ... Generic classifier. In: first, we must strengthen the cultivation of talent, efforts to increase vocational education and training and meet the basic demand of enterprise development. Then introduced a number of the county needed scarce education, health professionals, meet social development needs to invest more in machinery, pharmaceutical manufacturing research and development in higher education, such as the introduction of talent to meet the need. Third, we must rely on ... ... Post-doctoral workstation, ... ... Food research station platform, to the XX University to find experts
2.手动配置副路由的DHCP服务器(较为简单,强烈推荐)。
从主路由获取以下信息:
主路由的LAN口IP地址。
主路由的子网掩码(又叫网络掩码,地址掩码,子网络遮罩)。 主路由的WAN口得到的DNS服务器地址,一共有2个。 主路由的DHCP服务器地址池(起始地址到结束地址叫做一个地址池)。
如图,以TP-LINK的路由器为例。
advantages, facing the Yangtze River Delta, Pearl River Delta, Shandong peninsula, Beijing-Tianjin-Tangshan area, targeted investment promotion several times. Industry-led unit and various town streets are developing detailed promotion plans, the basis of what is specific to each industry, has formed a kind of scale, need to bring in the kind of projects each town street has the kind of resources, what location, focus on the development of the kind of industries. Four stroke technology and science. Determinants of technology is the County's economic development through scientific and technological innovation, improve product value-added and improve economic competitiveness, is the inevitable way to achieve leapfrog development. Talent is the city center city's first resource, is the primary industry development, and revitalization of the social protection. So, in terms of skills: to catch ... Competitive. Encouraging enterprises to actively undertake science and technology projects, strengthening research cooperation, using advanced technology to increase the added value of their products to ensure that introduction of transforming scientific and technological achievements during the year ... ... New research enterprises ... ... Home, creating innovative platforms ... ... Generic classifier. In: first, we must strengthen the cultivation of talent, efforts to increase vocational education and training and meet the basic demand of enterprise development. Then introduced a number of the county needed scarce education, health professionals, meet social development needs to invest more in machinery, pharmaceutical manufacturing research and development in higher education, such as the introduction of talent to meet the need. Third, we must rely on ... ... Post-doctoral workstation, ... ... Food research station platform, to the XX University to find experts
开启副路由的DHCP服务器
将副路由DHCP的地址池设置成与主路由的没有交集的状态。
例如主路由是192.168.1.100到192.168.1.199
那么副路由可以是192.168.1.50-192.168.1.99或者192.168.1.200-192.168.1.225 地址池租期不用更改。
在副路由DHCP的网关处填写主路由的LAN口IP地址,一般都是192.168.1.1。
缺省域名一栏空着。
在副路由DHCP的主DNS服务器和备用DNS服务器处填写从主路由WAN口得到的DNS服务器地址。
如图:
advantages, facing the Yangtze River Delta, Pearl River Delta, Shandong peninsula, Beijing-Tianjin-Tangshan area, targeted investment promotion several times. Industry-led unit and various town streets are developing detailed promotion plans, the basis of what is specific to each industry, has formed a kind of scale, need to bring in the kind of projects each town street has the kind of resources, what location, focus on the development of the kind of industries. Four stroke technology and science. Determinants of technology is the County's economic development through scientific and technological innovation, improve product value-added and improve economic competitiveness, is the inevitable way to achieve leapfrog development. Talent is the city center city's first resource, is the primary industry development, and revitalization of the social protection. So, in terms of skills: to catch ... Competitive. Encouraging enterprises to actively undertake science and technology projects, strengthening research cooperation, using advanced technology to increase the added value of their products to ensure that introduction of transforming scientific and technological achievements during the year ... ... New research enterprises ... ... Home, creating innovative platforms ... ... Generic classifier. In: first, we must strengthen the cultivation of talent, efforts to increase vocational education and training and meet the basic demand of enterprise development. Then introduced a number of the county needed scarce education, health professionals, meet social development needs to invest more in machinery, pharmaceutical manufacturing research and development in higher education, such as the introduction of talent to meet the need. Third, we must rely on ... ... Post-doctoral workstation, ... ... Food research station platform, to the XX University to find experts
保存并重器副路由,再连接到副路由看看是不是能够上网了。
原理解说:
一台设备能够上网首先必须获得一个有效的IP地址(由IP地址,子网掩码和DNS服务器组成)。 一般主路由DHCP服务器是默认开启的,所以连接到主路由的设备都能够通过主路由DHCP服务器指派得到有效的IP地址从而能上网。
而若关闭了副路由的DHCP服务器,那么连接到副路由的设备将无法通过副路由DHCP服务器指派得到IP地址而不能上网。
即便开启了,由于副路由默认的DHCP服务器指派的IP地址仅适用于通过副路由WAN口上网的,所以此IP地址无法通过主路由WAN口上网,即是无效IP地址。
因此我们需要修改副路由的DHCP服务器设置,使得其分配的IP地址能通过主路由WAN口来上advantages, facing the Yangtze River Delta, Pearl River Delta, Shandong peninsula, Beijing-Tianjin-Tangshan area, targeted investment promotion several times. Industry-led unit and various town streets are developing detailed promotion plans, the basis of what is specific to each industry, has formed a kind of scale, need to bring in the kind of projects each town street has the kind of resources, what location, focus on the development of the kind of industries. Four stroke technology and science. Determinants of technology is the County's economic development through scientific and technological innovation, improve product value-added and improve economic competitiveness, is the inevitable way to achieve leapfrog development. Talent is the city center city's first resource, is the primary industry development, and revitalization of the social protection. So, in terms of skills: to catch ... Competitive. Encouraging enterprises to actively undertake science and technology projects, strengthening research cooperation, using advanced technology to increase the added value of their products to ensure that introduction of transforming scientific and technological achievements during the year ... ... New research enterprises ... ... Home, creating innovative platforms ... ... Generic classifier. In: first, we must strengthen the cultivation of talent, efforts to increase vocational education and training and meet the basic demand of enterprise development. Then introduced a number of the county needed scarce education, health professionals, meet social development needs to invest more in machinery, pharmaceutical manufacturing research and development in higher education, such as the introduction of talent to meet the need. Third, we must rely on ... ... Post-doctoral workstation, ... ... Food research station platform, to the XX University to find experts
网。
那么首先IP地址要与主路由在同一网段(一般只要保证IP地址最后3位不和主或副路由相同即可)。 由于主路由相当于一台服务器,那么网关就是其本身的LAN口IP地址,所以副路由DHCP的网关应该满足与主路由的LAN口IP地址一样。
接下来是DNS服务器,主路由能够上网还有一个条件就是有效的DNS服务器地址,一般通过WAN口拨号或者动态IP都能够得到2个DNS服务器地址,一个是主DNS服务器,另一个是备用DNS服务器。
那么我们还需给副路由的DHCP服务器设置DNS服务器地址,这样一来,通过副路由DHCP服务器指派得到的IP地址就能够通过主路由的WAN口上网,也就是说,通过副路由DHCP服务器指派得到的IP地址是有效的。
这样便解决无法从副路由上网的问题了。
本教程到此也就结束了,希望各有所收获,也不忘相互传阅,来帮助更多的人。 advantages, facing the Yangtze River Delta, Pearl River Delta, Shandong peninsula, Beijing-Tianjin-Tangshan area, targeted investment promotion several times. Industry-led unit and various town streets are developing detailed promotion plans, the basis of what is specific to each industry, has formed a kind of scale, need to bring in the kind of projects each town street has the kind of resources, what location, focus on the development of the kind of industries. Four stroke technology and science. Determinants of technology is the County's economic development through scientific and technological innovation, improve product value-added and improve economic competitiveness, is the inevitable way to achieve leapfrog development. Talent is the city center city's first resource, is the primary industry development, and revitalization of the social protection. So, in terms of skills: to catch ... Competitive. Encouraging enterprises to actively undertake science and technology projects, strengthening research cooperation, using advanced technology to increase the added value of their products to ensure that introduction of transforming scientific and technological achievements during the year ... ... New research enterprises ... ... Home, creating innovative platforms ... ... Generic classifier. In: first, we must strengthen the cultivation of talent, efforts to increase vocational education and training and meet the basic demand of enterprise development. Then introduced a number of the county needed scarce education, health professionals, meet social development needs to invest more in machinery, pharmaceutical manufacturing research and development in higher education, such as the introduction of talent to meet the need. Third, we must rely on ... ... Post-doctoral workstation, ... ... Food research station platform, to the XX University to find experts