CoovaChilli - DHCP服务器限制问题

时间:2016-08-05 08:17:38

标签: coovachilli

我对CoovaChilli 1.2.5及其参数HS_NETMASK有疑问。 我以这种方式配置辣椒网络:

HS_WANIF=eth0              # WAN Interface toward the Internet
HS_LANIF=eth1          # Subscriber Interface for client devices
HS_NETWORK=10.100.100.0    # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=255.255.252.0   # HotSpot Network Netmask
HS_UAMLISTEN=10.100.100.1   # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990            # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990          # HotSpot UAM "UI" Port (on subscriber network, for embedded portal)

不幸的是,CoovaChilli继续只分配512,如命令所示:

chilli_query list | wc -l

当CoovaChilli启动时,它会使用correnct配置文件并使用正确的网络参数运行tun0:

tun0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
      inet addr:10.100.100.1  P-t-P:10.100.100.1  Mask:255.255.252.0
      UP POINTOPOINT RUNNING  MTU:1500  Metric:1
      RX packets:18475105 errors:0 dropped:0 overruns:0 frame:0
      TX packets:24707990 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:100
      RX bytes:2759781458 (2.5 GiB)  TX bytes:26712874647 (24.8 GiB)

我不明白为什么有512个IP的限制或者我必须修改的正确参数在哪里才能拥有更宽的DHCP范围。 我真的需要了解是否是软件错误/限制或配置中有什么问题。

感谢。

1 个答案:

答案 0 :(得分:3)

在文件src/cmdline.c中查找以下参数:

--maxclients=INT  Maximum number of clclients/subscribers     
                        (default=`512')",
args_info->maxclients_arg = 512

来自src/chilli_limits.h

MAX_REGEX_PASS_THROUGHS 512 /* Max number of allowed UAM pass-throughs */

MAX_IPSRC_PASS_THROUGHS 512 /* Max number of allowed IP source addresses, for Layer3 */