dhcpd-4.2.2 maxsocks problem

Glenn Satchell glenn.satchell at uniq.com.au
Sat Jan 14 09:19:11 UTC 2012


On a completely different approach - you could unconfigure some (or all) 
of the VLANs so that there was < 1024 on the dhcp server. Then use a 
router and dhcp relay to forward requests from the other VLANs.

This is like treating all the VLANs as physical subnets, and not having 
an interface on each of those subnets.

Not sure if this is practical to do in your situation, but it would be 
another option to get around the problem.

I seem to remember this being mentioned many years ago, but the limit 
then was more like 16 or 32 networks :)

regards,
-glenn

On 01/13/12 00:51, Jan Markus wrote:
> Hello,
>
> we have isc-dhcpd 4.2.2 from ports on FreeBSD 8.2. We have cca 1050 Vlan
> interfaces:
>
>
> ifconfig vlan1234 create inet 10.0.0.1/29 vlan 1234 vlandev igb1
>
>
> and the same number of dhcpd declarations like this:
>
> shared-network vlan1234 {
> subnet 10.0.0.0 netmask 255.255.255.248 {
> range 10.0.0.2 10.0.0.5;
> option routers 10.0.0.1;
> }
> }
>
> But our DHCP server refuses to start, saying:
>
> ../../../../lib/isc/unix/socket.c:958: INSIST(fd >= 0 && fd <
> (int)manager->maxsocks) failed, back trace
> #0 0x52a5ca in ??
> #1 0x52a77a in ??
> #2 0x54768b in ??
> #3 0x548f63 in ??
> #4 0x46fc80 in ??
> #5 0x445cfb in ??
> #6 0x40de69 in ??
> #7 0x40c38e in ??
> #8 0x8006bc000 in ??
> Abort trap (core dumped)
> /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
>
> My kernel sockets limits are:
>
> # sysctl -a | grep soc
> kern.ipc.maxsockbuf: 16777216
> kern.ipc.maxsockets: 204800
> kern.ipc.numopensockets: 17
> net.inet.ip.mcast.maxsocksrc: 128
>
> Please, what should I do?
>
> Thank you very much for your time.
> -Jan
> _______________________________________________



More information about the dhcp-users mailing list