Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: mgb on October 24, 2011, 10:50:22 AM

Title: I need to DHCP 1000 pc
Post by: mgb on October 24, 2011, 10:50:22 AM

  7.5 SME IP 192.168.0.1
 Larger field settings
 Dissolve all the computers in 1000
 And daily renewal of the list


Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.183.0   *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.0.0     U     0      0        0 eth0
Title: Re: I need to DHCP 1000 pc
Post by: johnp on October 24, 2011, 01:55:55 PM
A subnet mask 255.255.252.0 will give you 1022 hosts i.e 192.168.0.1 - 192.168.3.254
You may want to use 255.255.248.0 to leave space for statics. You would then have usable hosts from 192.168.0.1 - 192.168.7.254 for a total of 2046
Title: Re: I need to DHCP 1000 pc
Post by: mgb on October 26, 2011, 11:45:48 AM
It works great thanks
 But I can see the amount of actual working address
 Of dhcp
Title: Re: I need to DHCP 1000 pc
Post by: mmccarn on October 26, 2011, 01:39:40 PM
dhcpactiv.sh in the bug tracker that will list all active DHCP leases plus the current arp table on the SME (part of an aging new feature request to add this functionality to server-manager: http://bugs.contribs.org/show_bug.cgi?id=2641)

From a server command prompt:
Code: [Select]
wget -O /usr/local/bin/dhcpactiv.sh http://bugs.contribs.org/attachment.cgi?id=947
chmod 755 /usr/local/bin/dhcpactiv.sh

Now list active leases and currently connected hardware (by arp table) using:
Code: [Select]
dhcpactiv.sh
Or count active dhcp leases using:
Code: [Select]
dhcpactiv.sh |grep -c dhcpd.leases