ubnt解决方案
楼主: dgser

[无线运维] 300台终端的拓补图

[复制链接]

49

回帖

225

积分

70 小时

在线时间

少尉

注册时间
2010-12-9
金币
161 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2013-8-17 21:18 |显示全部楼层
dgser 发表于 2013-8-17 21:09
好点的路由指什么功能?有能自动分配超过254台终端的路由器吗?

掩码是控制IP地址数量的 255.255.255.0是254个IP 255.255.0.0是65000个IP 楼主是怕一个路由负担不了超过254个ip吧 其实没必要 掩码大一些 一个路由搞定
回复

使用道具 举报

28

回帖

963

积分

94 小时

在线时间

中尉

注册时间
2013-7-22
金币
924 个
威望
0 个
荣誉
0 个
累计签到:100 天
连续签到:0 天
[LV.100]试剑无线
发表于 2013-8-17 21:18 |显示全部楼层
无线龙哥 发表于 2013-8-17 21:14
一台路由器,开启两个端口的DHCP功能就可以了

一台路由器,怎么开启两个端口的DHCP功能,请详细说明,跪谢!
过来看看
回复

使用道具 举报

28

回帖

963

积分

94 小时

在线时间

中尉

注册时间
2013-7-22
金币
924 个
威望
0 个
荣誉
0 个
累计签到:100 天
连续签到:0 天
[LV.100]试剑无线
发表于 2013-8-17 21:23 |显示全部楼层
yuanyll 发表于 2013-8-17 21:18
掩码是控制IP地址数量的 255.255.255.0是254个IP 255.255.0.0是65000个IP 楼主是怕一个路由负担不了超过2 ...

做过测试了,路由器不会从下一个网段开始分配IP的,终端多次试图获取IP地址,均告失败!

点评

只能说明你路由器是垃圾  发表于 2013-10-5 22:40
过来看看
回复

使用道具 举报

593

回帖

1733

积分

600 小时

在线时间

上尉

注册时间
2012-12-13
金币
1078 个
威望
0 个
荣誉
0 个
累计签到:2 天
连续签到:1 天
[LV.20]漫游旅程
发表于 2013-8-17 21:33 |显示全部楼层
dgser 发表于 2013-8-17 21:16
这个是假想用在宾馆覆盖的,如果DHCP用电脑做服务器就得24小时开机状态,一是费电,二是对电脑性能要求高 ...

300个客户端并发,那你去看一下路由器的价格就知道了。
回复

使用道具 举报

1179

回帖

1万

积分

1066 小时

在线时间

高级工程师

高级工程师

注册时间
2011-12-30
金币
8955 个
威望
2 个
荣誉
0 个
累计签到:848 天
连续签到:0 天
[LV.1095]铁杆粉丝
发表于 2013-8-17 22:10 |显示全部楼层
dgser 发表于 2013-8-17 18:43
如何开启两个端口的DHCP?求指导!

你的路由器要有两个或者以上端口才行
MESH企业级无线AP和网桥, 电话:137 23456 585 QQ:1059414936 工程交流群:292712223
回复

使用道具 举报

28

回帖

963

积分

94 小时

在线时间

中尉

注册时间
2013-7-22
金币
924 个
威望
0 个
荣誉
0 个
累计签到:100 天
连续签到:0 天
[LV.100]试剑无线
发表于 2013-8-17 22:19 |显示全部楼层
lanwen14 发表于 2013-8-17 22:10
你的路由器要有两个或者以上端口才行

两个端口是指2个以上WAN口吗?
过来看看
回复

使用道具 举报

641

回帖

2887

积分

1721 小时

在线时间

少校

注册时间
2010-1-31
金币
2029 个
威望
5 个
荣誉
1 个

尚未签到

发表于 2013-8-18 10:39 |显示全部楼层
没这么大的环境啊,现在也就用rtn16刷shibby tomato公司平时接入也就60台左右。

dd tt固件实现这种所谓的2端口dhcp很简单吧。但是一般没人推荐在一个网络里采用两台dhcp进行分配吧。
很多核心交换机都是用vlang tag划成多网段再用其它支持vlan划分的像tplink wa801都可以实现。如果纯粹dhcp我建议你可以尝试dd tt 内置的dnsmasq linux系统的高效经常很意外,不会比那么夸张的什么企业级效果差。
  1. Da login: root
  2. Password:


  3. Tomato v1.28.0000 MIPSR2-110 K26 USB AIO
  4. ========================================================
  5. Welcome to the Asus RT-N16 [Da]
  6. Uptime:  10:37:26 up 11 days, 14:48
  7. Load average: 0.02, 0.03, 0.00
  8. Mem usage: 22.9% (used 28.33 of 123.78 MB)
  9. WAN : 116.226.36.165/32 [url=home.php?mod=space&uid=610341]@[/url] 00:01:6C:7C:5E:82
  10. LAN : 192.168.10.254/24 @ DHCP: 192.168.10.200 - 192.168.10.240
  11. LAN1: 192.168.3.1/24 @ DHCP: 192.168.3.101 - 192.168.3.150
  12. LAN2: 192.168.4.1/24 @ DHCP: 192.168.4.101 - 192.168.4.150
  13. LAN3: 192.168.5.1/24 @ DHCP: 192.168.5.101 - 192.168.5.150
  14. WL0 : Da @ ch: 6 @ EC:88:8F:EC:16:D9
  15. ========================================================

  16. root@Da:/tmp/home/root#
复制代码
回复

使用道具 举报

50

回帖

670

积分

138 小时

在线时间

中尉

注册时间
2012-7-9
金币
585 个
威望
0 个
荣誉
0 个
累计签到:59 天
连续签到:0 天
[LV.100]试剑无线
发表于 2013-8-18 18:37 |显示全部楼层
dgser 发表于 2013-8-17 21:09
好点的路由指什么功能?有能自动分配超过254台终端的路由器吗?

磊科的路由 你可以网上去看下
回复

使用道具 举报

1382

回帖

4197

积分

1221 小时

在线时间

高级工程师

注册时间
2010-11-20
金币
2560 个
威望
10 个
荣誉
3 个

尚未签到

发表于 2013-8-18 19:04 |显示全部楼层
这个什么坑爹方案。用两台路由两个DHCP,没事自己找事。开个B类地址不行吗。254以上就没办法了吗? 1000台能也分配地址。实在不行开A类地址
回复

使用道具 举报

18

回帖

557

积分

77 小时

在线时间

中尉

注册时间
2011-7-27
金币
524 个
威望
1 个
荣誉
0 个
累计签到:42 天
连续签到:0 天
[LV.50]初入江湖
发表于 2013-8-18 19:49 |显示全部楼层
一台路由也不错
回复

使用道具 举报

28

回帖

963

积分

94 小时

在线时间

中尉

注册时间
2013-7-22
金币
924 个
威望
0 个
荣誉
0 个
累计签到:100 天
连续签到:0 天
[LV.100]试剑无线
发表于 2013-8-19 14:43 |显示全部楼层
本帖最后由 dgser 于 2013-8-19 14:48 编辑

路由器固件是DD的,在网上查到了如下方法:
Setup desired:
VLAN1 = 10.0.0.0 - Ports 1,2,3 and WiFi - DHCP enabled + access to WAN only
VLAN2 = 10.10.10.0 - Port 4 - DHCP enabled + access to WAN only
Steps used to achieve desired setup:
1. Basic working setup with PPPoE for WAN, Wireless with security in place and DHCP running for 10.0.0.0 initially.
2. Altered Setup>VLAN page so that VLAN0 has ports 1, 2 and 3 checked. VLAN2 has port 4 checked. VLAN1 has WAN checked.
3. Telnet to device on 10.0.0.1. Enter User Name: root and password. Enter the following commands at the console. (These are the only ones you should have to enter in the console.)
nvram set vlan0ports="3 2 1 5*"
nvram set vlan2hwname=et0
nvram set vlan2ports="0 5"
Don't forget the following two commands to make the nvram changes permanent.
nvram commit
reboot
NOTE: The port numbers I use are not the same as the physical ports.
==========================================================
vlan.ports numbers reference
0 = Physical port 4
1 = Physical port 3
2 = Physical port 2
3 = Physical port 1
4 = WAN
5 = CPU internal
5* = CPU internal default
port.vlans reference
port5vlan = CPU
port4vlan = Physical port 4
port3vlan = Physical port 3
port2vlan = Physical port 2
port1vlan = Physical port 1
port0vlan = WAN port
==========================================================
3. Added the following on the Administration>Commands page.
Startup (enter the line in the command window and click "Save Startup")
ifconfig vlan2 10.10.10.1 netmask 255.255.255.0 broadcast 10.10.10.255
Firewall (enter the line in the command window and click "Save Firewall")
iptables -t nat -I PREROUTING -i vlan2 -d 10.0.0.0/24 -j DROP
iptables -t nat -I PREROUTING -i br0 -d 10.10.10.0/24 -j DROP
iptables -I FORWARD -i ppp0 -o vlan2 -j ACCEPT
iptables -I FORWARD -i vlan2 -o ppp0 -j ACCEPT
4. In the Setup>Networking page, in the Ports section, select "Unbridged" for VLAN2 and supply the following settings: IP Address - 10.10.10.1, Subnet Mask - 255.255.255.0.
5. In the Setup>Networking page, in the DHCPD section, under Multiple DHCP Server, click Add and select "VLAN2" as the interface. (Once the page refreshes, it should also show the IP address of the interface. i.e. - "Interface vlan2: IP 10.10.10.1/255.255.255.0"
What this achieves:
VLAN1 gets it's default DHCP assignments and can reach the internet with the firewall in place.


VLAN2 gets it's default DHCP assignments and can reach the internet with the firewall in place.


VLAN1 and VLAN2 can not communicate directly, thus isolating the two VLANs from each other while still allowing each

to access the WAN.
以上方法可以实现端口4(vlan2)单独分配另一个网段的IP,但存在一个问题,有些网站变得无法访问了,ping得通,很是奇怪,比如这个论坛通过端口4就是访问不了,换其他3个端口(vlan0)都可以访问。有高手帮忙看下,问题出在哪儿了?
过来看看
回复

使用道具 举报

804

回帖

1782

积分

258 小时

在线时间

上尉

注册时间
2009-11-22
金币
950 个
威望
0 个
荣誉
0 个
累计签到:6 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2013-8-20 20:53 |显示全部楼层
楼主你这个是理论拓扑。

实际操作,300个终端的话,一定要分区。

不是1个交换机1个网搞定的。  向你这样1个交换机1个路由器,带300个终端。  你的交换机和路由器要很贵。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2026-12-5 14:18

返回顶部 返回列表