Re: dhcp-users Digest, Vol 133, Issue 4

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: dhcp-users Digest, Vol 133, Issue 4

Cayab, Jefrey E.
Hi,

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

subnet 0.0.0.0 netmask 0.0.0.0 {
}

It was taken from the comment above it; I thought I could just put anything - I'd appreciate if someone can give me what's the proper Subnet/Netmask to put there. Does the comment above means that if my dhcp server is in 10.16.5.0/24 - this is the subnet and netmask I need to put there?

Please refer to the attached file for the dhcpd.conf

Thank you



On Mon, Nov 11, 2019 at 8:00 PM <[hidden email]> wrote:
Send dhcp-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: dhcpd restart takes almost 7 minutes in CentOS7 (Simon Hobson)


----------------------------------------------------------------------

Message: 1
Date: Sun, 10 Nov 2019 21:18:39 +0000
From: Simon Hobson <[hidden email]>
To: Users of ISC DHCP <[hidden email]>
Subject: Re: dhcpd restart takes almost 7 minutes in CentOS7
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=us-ascii

Please keep the right subject line when quoting from a digest. Also, make sure you trim everything but what you are replying to.

> Cayab, Jefrey E. <[hidden email]> wrote:

> subnet 0.0.0.0 netmask 0.0.0.0 {
> }

Stop right there - what's that doing there ?
You also need to post at least some of the bit where you've written "the rest here are the dhcp scopes", you may assume that it's not important, but it may well be critical to seeing the problem.




------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 133, Issue 4
******************************************

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

dhcpd.txt (44K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [EXT] Re: dhcp-users Digest, Vol 133, Issue 4

Anderson, Charles R
On Mon, Nov 11, 2019 at 08:26:27PM +0800, Cayab, Jefrey E. wrote:

> Hi,
>
> # No service will be given on this subnet, but declaring it helps the
> # DHCP server to understand the network topology.
>
> subnet 0.0.0.0 netmask 0.0.0.0 {
> }
>
> It was taken from the comment above it; I thought I could just put anything
> - I'd appreciate if someone can give me what's the proper Subnet/Netmask to
> put there. Does the comment above means that if my dhcp server is in
> 10.16.5.0/24 - this is the subnet and netmask I need to put there?

Yes.  Your subnet statements must reflect reality and yes you do need a subnet for your dhcp server local interface.

The long loading time is because you have a HUGE number of IPs in ranges.  Added up, you have about 656,000 IP addresses the server has to keep track of.  Do you really need each subnet to handle 65534 dynamic IPs?


> Please refer to the attached file for the dhcpd.conf
> # FCC1-1 - VLAN165$
> subnet 10.151.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.151.0.1;$
>   option broadcast-address 10.151.255.255;$
>   range 10.151.0.2 10.151.255.254;$
> }$
> $
> # FCC1-2 - VLAN166$
> subnet 10.152.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.152.0.1;$
>   option broadcast-address 10.151.255.255;$
>   range 10.152.0.2 10.152.255.254;$
> }$
> $
> # FCC1-3 - VLAN167$
> subnet 10.153.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.153.0.1;$
>   option broadcast-address 10.153.255.255;$
>   range 10.153.0.2 10.153.255.254;$
> }$
> $
> # GARN-1 - VLAN168$
> subnet 10.154.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.154.0.1;$
>   option broadcast-address 10.154.255.255;$
>   range 10.154.0.2 10.154.255.254;$
> }$
> $
> # GARN-2 - VLAN169$
> subnet 10.155.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.155.0.1;$
>   option broadcast-address 10.155.255.255;$
>   range 10.155.0.2 10.155.255.254;$
> }$
> $
> # GARN-3 - VLAN170$
> subnet 10.156.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.156.0.1;$
>   option broadcast-address 10.156.255.255;$
>   range 10.156.0.2 10.156.255.254;$
> }$
> $
> # H1BD13-1 - VLAN171$
> subnet 10.157.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.157.0.1;$
>   option broadcast-address 10.157.255.255;$
>   range 10.157.0.2 10.157.255.254;$
> }$
> $
> # H1BD13-2 - VLAN172$
> subnet 10.158.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.158.0.1;$
>   option broadcast-address 10.158.255.255;$
>   range 10.158.0.2 10.158.255.254;$
> }$
> $
> # H1BD13-3 - VLAN173$
> subnet 10.159.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.159.0.1;$
>   option broadcast-address 10.159.255.255;$
>   range 10.159.0.2 10.159.255.254;$
> }$
> $
> # H1BD14-1 - VLAN174$
> subnet 10.160.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.160.0.1;$
>   option broadcast-address 10.160.255.255;$
>   range 10.160.0.2 10.160.255.254;$
> }$
> $
> # H1BD14-2 - VLAN175$
> subnet 10.161.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.161.0.1;$
>   option broadcast-address 10.161.255.255;$
>   range 10.161.0.2 10.161.255.254;$
> }$
> $
> # H1BD14-3 - VLAN176$
> subnet 10.162.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.162.0.1;$
>   option broadcast-address 10.162.255.255;$
>   range 10.162.0.2 10.162.255.254;$
> }$
> $
> # H1BD15-1 - VLAN177$
> subnet 10.163.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.163.0.1;$
>   option broadcast-address 10.163.255.255;$
>   range 10.163.0.2 10.163.255.254;$
> }$
> $
> # H1BD15-2 - VLAN178$
> subnet 10.164.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.164.0.1;$
>   option broadcast-address 10.164.255.255;$
>   range 10.164.0.2 10.164.255.254;$
> }$
> $
> # H1BD15-3 - VLAN179$
> subnet 10.165.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.165.0.1;$
>   option broadcast-address 10.165.255.255;$
>   range 10.165.0.2 10.165.255.254;$
> }$
> $
> # H1BD16-1 - VLAN180$
> subnet 10.166.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.166.0.1;$
>   option broadcast-address 10.166.255.255;$
>   range 10.166.0.2 10.166.255.254;$
> }$
> $
> # H1BD16-2 - VLAN181$
> subnet 10.167.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.167.0.1;$
>   option broadcast-address 10.167.255.255;$
>   range 10.167.0.2 10.167.255.254;$
> }$
> $
> # H1BD16-3 - VLAN182$
> subnet 10.168.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.168.0.1;$
>   option broadcast-address 10.168.255.255;$
>   range 10.168.0.2 10.168.255.254;$
> }$
> $
> # H2BD13-1 - VLAN183$
> subnet 10.169.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.169.0.1;$
>   option broadcast-address 10.169.255.255;$
>   range 10.169.0.2 10.169.255.254;$
> }$
> $
> # H2BD13-2 - VLAN184$
> subnet 10.170.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.170.0.1;$
>   option broadcast-address 10.170.255.255;$
>   range 10.170.0.2 10.170.255.254;$
> }$
> $
> # H2BD13-3 - VLAN185$
> subnet 10.171.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.171.0.1;$
>   option broadcast-address 10.171.255.255;$
>   range 10.171.0.2 10.171.255.254;$
> }$
> $
> # H2BD14-1 - VLAN186$
> subnet 10.172.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.172.0.1;$
>   option broadcast-address 10.172.255.255;$
>   range 10.172.0.2 10.172.255.254;$
> }$
> $
> # H2BD14-2 - VLAN187$
> subnet 10.173.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.173.0.1;$
>   option broadcast-address 10.173.255.255;$
>   range 10.173.0.2 10.173.255.254;$
> }$
> $
> # H2BD14-3 - VLAN188$
> subnet 10.174.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.174.0.1;$
>   option broadcast-address 10.174.255.255;$
>   range 10.174.0.2 10.174.255.254;$
> }$
> $
> # H2BD15-1 - VLAN189$
> subnet 10.175.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.175.0.1;$
>   option broadcast-address 10.175.255.255;$
>   range 10.175.0.2 10.175.255.254;$
> }$
> $
> # H2BD15-2 - VLAN190$
> subnet 10.176.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.176.0.1;$
>   option broadcast-address 10.176.255.255;$
>   range 10.176.0.2 10.176.255.254;$
> }$
> $
> # H2BD15-3 - VLAN191$
> subnet 10.177.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.177.0.1;$
>   option broadcast-address 10.177.255.255;$
>   range 10.177.0.2 10.177.255.254;$
> }$
> $
> # H2BD16-1 - VLAN192$
> subnet 10.178.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.178.0.1;$
>   option broadcast-address 10.178.255.255;$
>   range 10.178.0.2 10.178.255.254;$
> }$
> $
> # H2BD16-2 - VLAN193$
> subnet 10.179.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.179.0.1;$
>   option broadcast-address 10.179.255.255;$
>   range 10.179.0.2 10.179.255.254;$
> }$
> $
> # H2BD16-3 - VLAN194$
> subnet 10.180.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.180.0.1;$
>   option broadcast-address 10.180.255.255;$
>   range 10.180.0.2 10.180.255.254;$
> }$
> $
> # H3BD13-1 - VLAN195$
> subnet 10.181.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.181.0.1;$
>   option broadcast-address 10.181.255.255;$
>   range 10.181.0.2 10.181.255.254;$
> }$
> $
> # H3BD13-2 - VLAN196$
> subnet 10.182.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.182.0.1;$
>   option broadcast-address 10.182.255.255;$
>   range 10.182.0.2 10.182.255.254;$
> }$
> $
> # H3BD13-3 - VLAN197$
> subnet 10.183.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.183.0.1;$
>   option broadcast-address 10.183.255.255;$
>   range 10.183.0.2 10.183.255.254;$
> }$
> $
> # H3BD14-1 - VLAN198$
> subnet 10.184.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.184.0.1;$
>   option broadcast-address 10.184.255.255;$
>   range 10.184.0.2 10.184.255.254;$
> }$
> $
> # H3BD14-2 - VLAN199$
> subnet 10.185.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.185.0.1;$
>   option broadcast-address 10.185.255.255;$
>   range 10.185.0.2 10.185.255.254;$
> }$
> $
> # H3BD14-3 - VLAN200$
> subnet 10.186.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.186.0.1;$
>   option broadcast-address 10.186.255.255;$
>   range 10.186.0.2 10.186.255.254;$
> }$
> $
> # H3BD15-1 - VLAN201$
> subnet 10.187.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.187.0.1;$
>   option broadcast-address 10.187.255.255;$
>   range 10.187.0.2 10.187.255.254;$
> }$
> $
> # H3BD15-2 - VLAN202$
> subnet 10.188.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.188.0.1;$
>   option broadcast-address 10.188.255.255;$
>   range 10.188.0.2 10.188.255.254;$
> }$
> $
> # H3BD15-3 - VLAN203$
> subnet 10.189.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.189.0.1;$
>   option broadcast-address 10.189.255.255;$
>   range 10.189.0.2 10.189.255.254;$
> }$
> $
> # H3BD16-1 - VLAN204$
> subnet 10.190.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.190.0.1;$
>   option broadcast-address 10.190.255.255;$
>   range 10.190.0.2 10.190.255.254;$
> }$
> $
> # H3BD16-2 - VLAN205$
> subnet 10.191.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.191.0.1;$
>   option broadcast-address 10.191.255.255;$
>   range 10.191.0.2 10.191.255.254;$
> }$
> $
> # H3BD16-3 - VLAN206$
> subnet 10.192.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.192.0.1;$
>   option broadcast-address 10.192.255.255;$
>   range 10.192.0.2 10.192.255.254;$
> }$
> $
> # H4BD13-1 - VLAN207$
> subnet 10.193.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.193.0.1;$
>   option broadcast-address 10.193.255.255;$
>   range 10.193.0.2 10.193.255.254;$
> }$
> $
> # H4BD13-2 - VLAN208$
> subnet 10.194.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.194.0.1;$
>   option broadcast-address 10.194.255.255;$
>   range 10.194.0.2 10.194.255.254;$
> }$
> $
> # H4BD13-3 - VLAN209$
> subnet 10.195.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.195.0.1;$
>   option broadcast-address 10.195.255.255;$
>   range 10.195.0.2 10.195.255.254;$
> }$
> $
> # H4BD14-1 - VLAN210$
> subnet 10.196.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.196.0.1;$
>   option broadcast-address 10.196.255.255;$
>   range 10.196.0.2 10.196.255.254;$
> }$
> $
> # H4BD14-2 - VLAN211$
> subnet 10.197.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.197.0.1;$
>   option broadcast-address 10.197.255.255;$
>   range 10.197.0.2 10.197.255.254;$
> }$
> $
> # H4BD14-3 - VLAN212$
> subnet 10.198.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.198.0.1;$
>   option broadcast-address 10.198.255.255;$
>   range 10.198.0.2 10.198.255.254;$
> }$
> $
> # H4BD15-1 - VLAN213$
> subnet 10.199.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.199.0.1;$
>   option broadcast-address 10.199.255.255;$
>   range 10.199.0.2 10.199.255.254;$
> }$
> $
> # H4BD15-2 - VLAN214$
> subnet 10.200.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.200.0.1;$
>   option broadcast-address 10.200.255.255;$
>   range 10.200.0.2 10.200.255.254;$
> }$
> $
> # H4BD15-3 - VLAN215$
> subnet 10.201.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.201.0.1;$
>   option broadcast-address 10.201.255.255;$
>   range 10.201.0.2 10.201.255.254;$
> }$
> $
> # H4BD16-1 - VLAN216$
> subnet 10.202.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.202.0.1;$
>   option broadcast-address 10.202.255.255;$
>   range 10.202.0.2 10.202.255.254;$
> }$
> $
> # H4BD16-2 - VLAN217$
> subnet 10.203.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.203.0.1;$
>   option broadcast-address 10.203.255.255;$
>   range 10.203.0.2 10.203.255.254;$
> }$
> $
> # H4BD16-3 - VLAN218$
> subnet 10.204.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.204.0.1;$
>   option broadcast-address 10.204.255.255;$
>   range 10.204.0.2 10.204.255.254;$
> }$
> $
> # H5BD13-1 - VLAN219$
> subnet 10.205.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.205.0.1;$
>   option broadcast-address 10.205.255.255;$
>   range 10.205.0.2 10.205.255.254;$
> }$
> $
> # H5BD13-2 - VLAN220$
> subnet 10.206.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.206.0.1;$
>   option broadcast-address 10.206.255.255;$
>   range 10.206.0.2 10.206.255.254;$
> }$
> $
> # H5BD13-3 - VLAN221$
> subnet 10.207.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.207.0.1;$
>   option broadcast-address 10.207.255.255;$
>   range 10.207.0.2 10.207.255.254;$
> }$
> $
> # H5BD14-1 - VLAN222$
> subnet 10.208.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.208.0.1;$
>   option broadcast-address 10.208.255.255;$
>   range 10.208.0.2 10.208.255.254;$
> }$
> $
> # H5BD14-2 - VLAN223$
> subnet 10.209.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.209.0.1;$
>   option broadcast-address 10.209.255.255;$
>   range 10.209.0.2 10.209.255.254;$
> }$
> $
> # H5BD14-3 - VLAN224$
> subnet 10.210.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.210.0.1;$
>   option broadcast-address 10.210.255.255;$
>   range 10.210.0.2 10.210.255.254;$
> }$
> $
> # H5BD15-1 - VLAN225$
> subnet 10.211.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.211.0.1;$
>   option broadcast-address 10.211.255.255;$
>   range 10.211.0.2 10.211.255.254;$
> }$
> $
> # H5BD15-2 - VLAN226$
> subnet 10.212.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.212.0.1;$
>   option broadcast-address 10.212.255.255;$
>   range 10.212.0.2 10.212.255.254;$
> }$
> $
> # H5BD15-3 - VLAN227$
> subnet 10.213.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.213.0.1;$
>   option broadcast-address 10.213.255.255;$
>   range 10.213.0.2 10.213.255.254;$
> }$
> $
> # H5BD16-1 - VLAN228$
> subnet 10.214.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.214.0.1;$
>   option broadcast-address 10.214.255.255;$
>   range 10.214.0.2 10.214.255.254;$
> }$
> $
> # H5BD16-2 - VLAN229$
> subnet 10.215.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.215.0.1;$
>   option broadcast-address 10.215.255.255;$
>   range 10.215.0.2 10.215.255.254;$
> }$
> $
> # H5BD16-3 - VLAN230$
> subnet 10.216.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.216.0.1;$
>   option broadcast-address 10.216.255.255;$
>   range 10.216.0.2 10.216.255.254;$
> }$
> $
> # H6BD13-1 - VLAN231$
> subnet 10.217.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.217.0.1;$
>   option broadcast-address 10.217.255.255;$
>   range 10.217.0.2 10.217.255.254;$
> }$
> $
> # H6BD13-2 - VLAN232$
> subnet 10.218.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.218.0.1;$
>   option broadcast-address 10.210.255.255;$
>   range 10.218.0.2 10.218.255.254;$
> }$
> $
> # H6BD13-3 - VLAN233$
> subnet 10.219.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.219.0.1;$
>   option broadcast-address 10.219.255.255;$
>   range 10.219.0.2 10.219.255.254;$
> }$
> $
> # H6BD14-1 - VLAN234$
> subnet 10.220.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.220.0.1;$
>   option broadcast-address 10.220.255.255;$
>   range 10.220.0.2 10.220.255.254;$
> }$
> $
> # H6BD14-2 - VLAN235$
> subnet 10.221.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.221.0.1;$
>   option broadcast-address 10.221.255.255;$
>   range 10.221.0.2 10.221.255.254;$
> }$
> $
> # H6BD14-3 - VLAN236$
> subnet 10.222.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.222.0.1;$
>   option broadcast-address 10.222.255.255;$
>   range 10.222.0.2 10.222.255.254;$
> }$
> $
> # H6BD15-1 - VLAN237$
> subnet 10.223.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.223.0.1;$
>   option broadcast-address 10.223.255.255;$
>   range 10.223.0.2 10.223.255.254;$
> }$
> $
> # H6BD15-2 - VLAN238$
> subnet 10.224.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.224.0.1;$
>   option broadcast-address 10.224.255.255;$
>   range 10.224.0.2 10.224.255.254;$
> }$
> $
> # H6BD15-3 - VLAN239$
> subnet 10.225.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.225.0.1;$
>   option broadcast-address 10.225.255.255;$
>   range 10.225.0.2 10.225.255.254;$
> }$
> $
> # H6BD16-1 - VLAN240$
> subnet 10.226.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.226.0.1;$
>   option broadcast-address 10.226.255.255;$
>   range 10.226.0.2 10.226.255.254;$
> }$
> $
> # H6BD16-2 - VLAN241$
> subnet 10.227.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.227.0.1;$
>   option broadcast-address 10.227.255.255;$
>   range 10.227.0.2 10.227.255.254;$
> }$
> $
> # H6BD16-3 - VLAN242$
> subnet 10.228.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.228.0.1;$
>   option broadcast-address 10.228.255.255;$
>   range 10.228.0.2 10.228.255.254;$
> }$
> $
> # H6BD18-1 - VLAN243$
> subnet 10.229.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.229.0.1;$
>   option broadcast-address 10.229.255.255;$
>   range 10.229.0.2 10.229.255.254;$
> }$
> $
> # H6BD18-2 - VLAN244$
> subnet 10.230.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.230.0.1;$
>   option broadcast-address 10.230.255.255;$
>   range 10.230.0.2 10.230.255.254;$
> }$
> $
> # H6BD18-3 - VLAN245$
> subnet 10.231.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.231.0.1;$
>   option broadcast-address 10.231.255.255;$
>   range 10.231.0.2 10.231.255.254;$
> }$
> $
> # MAG-1 - VLAN246$
> subnet 10.232.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.232.0.1;$
>   option broadcast-address 10.232.255.255;$
>   range 10.232.0.2 10.232.255.254;$
> }$
> $
> # MAG-2 - VLAN247$
> subnet 10.233.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.233.0.1;$
>   option broadcast-address 10.233.255.255;$
>   range 10.233.0.2 10.233.255.254;$
> }$
> $
> # MAG-3 - VLAN248$
> subnet 10.234.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.234.0.1;$
>   option broadcast-address 10.234.255.255;$
>   range 10.234.0.2 10.234.255.254;$
> }$
> $
> # MO3-1 - VLAN249$
> subnet 10.235.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.235.0.1;$
>   option broadcast-address 10.235.255.255;$
>   range 10.235.0.2 10.235.255.254;$
> }$
> $
> # MO3-2 - VLAN250$
> subnet 10.236.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.236.0.1;$
>   option broadcast-address 10.236.255.255;$
>   range 10.236.0.2 10.236.255.254;$
> }$
> $
> # MO3-3 - VLAN251$
> subnet 10.237.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.237.0.1;$
>   option broadcast-address 10.237.255.255;$
>   range 10.237.0.2 10.237.255.254;$
> }$
> $
> # MPHBD-1 - VLAN252$
> subnet 10.238.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.238.0.1;$
>   option broadcast-address 10.238.255.255;$
>   range 10.238.0.2 10.238.255.254;$
> }$
> $
> # MPHBD-2 - VLAN253$
> subnet 10.239.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.239.0.1;$
>   option broadcast-address 10.239.255.255;$
>   range 10.239.0.2 10.239.255.254;$
> }$
> $
> # MPHBD-1 - VLAN254$
> subnet 10.240.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.240.0.1;$
>   option broadcast-address 10.240.255.255;$
>   range 10.240.0.2 10.240.255.254;$
> }$
> $
> # PERI-1 - VLAN255$
> subnet 10.241.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.241.0.1;$
>   option broadcast-address 10.241.255.255;$
>   range 10.241.0.2 10.241.255.254;$
> }$
> $
> # PERI-2 - VLAN256$
> subnet 10.242.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.242.0.1;$
>   option broadcast-address 10.242.255.255;$
>   range 10.242.0.2 10.242.255.254;$
> }$
> $
> # PERI-3 - VLAN257$
> subnet 10.243.0.0 netmask 255.255.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.243.0.1;$
>   option broadcast-address 10.243.255.255;$
>   range 10.243.0.2 10.243.255.254;$
> }$
> $
> # WiFi-Free - VLAN280$
> subnet 10.250.0.0 netmask 255.254.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.250.0.1;$
>   option broadcast-address 10.251.255.255;$
>   range 10.250.0.2 10.251.255.254;$
> }$
> $
> # WiFi-Silver - VLAN281$
> subnet 10.252.0.0 netmask 255.254.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.252.0.1;$
>   option broadcast-address 10.253.255.255;$
>   range 10.252.0.2 10.253.255.254;$
> }$
> $
> # WiFi-Gold - VLAN282$
> subnet 10.254.0.0 netmask 255.254.0.0 {$
>   default-lease-time 28800;$
>   max-lease-time 86400;$
>   option domain-name-servers 10.16.5.106;$
>   option routers 10.254.0.1;$
>   option broadcast-address 10.255.255.255;$
>   range 10.254.0.2 10.255.255.254;$
>   group {$
>     host first { hardware ethernet 24:ee:9a:5c:58:78; fixed-address 10.255.255.252; }$
>     host second { hardware ethernet 24:ee:9a:5c:ca:b5; fixed-address 10.255.255.253; }$
>     host third { hardware ethernet dc:71:96:70:51:16; fixed-address 10.255.255.254; }$
>   }$
> }$



Move these group and host statements to global scope (not inside any subnet).
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: dhcpd restart takes almost 7 minutes in CentOS7 (Was: dhcp-users Digest, Vol 133, Issue 4)

Simon Hobson
In reply to this post by Cayab, Jefrey E.
Please don't top post, and PLEASE set the subject back to what it should be. It's really annoying an impolite to just use the Digest title as it means nothing at all to anyone.

Cayab, Jefrey E. <[hidden email]> wrote:

> # No service will be given on this subnet, but declaring it helps the
> # DHCP server to understand the network topology.
>
> subnet 0.0.0.0 netmask 0.0.0.0 {
> }
>
> It was taken from the comment above it; I thought I could just put anything - I'd appreciate if someone can give me what's the proper Subnet/Netmask to put there. Does the comment above means that if my dhcp server is in 10.16.5.0/24 - this is the subnet and netmask I need to put there?

Yes, it would normally be the subnet for the server's interface - if not elsewhere defined.

> Please refer to the attached file for the dhcpd.conf

> # FCC1-1 - VLAN165
> subnet 10.151.0.0 netmask 255.255.0.0 {
>   default-lease-time 28800;
>   max-lease-time 86400;
>   option domain-name-servers 10.16.5.106;
>   option routers 10.151.0.1;
>   option broadcast-address 10.151.255.255;
>   range 10.151.0.2 10.151.255.254;
> }

And as already mentioned, your problem is immediately obvious - you WILL have slow server startup with that config. It's a known issue.
I count something like 95 subnets with 65k pools, that makes over 6.1 millions addresses.

When the server is loading the config, it builds data tables containing a lease record for every address included in a pool - whether used or not. This takes both memory (have you looked at memory usage ?) and time - hence your 7 minute startup time. I would suggest you take another look at the network configuration and see if there is any scope for reducing the number of addresses in use. You said that some events could attract 60k visitors - is there scope for only provisioning that number of addresses when needed ?

Also, I don't know the details, but there are some optimisations you should make for handling such large IP lists. The internal tables are hashed, and the hashing is configured for more typical list sizes. IIRC there are compile time options to configure the hashing to be more efficient for very large lists.


There is another issue you need to address or it will bite you in the backside sooner or later.

> # WiFi-Gold - VLAN282
> subnet 10.254.0.0 netmask 255.254.0.0 {
>   default-lease-time 28800;
>   max-lease-time 86400;
>   option domain-name-servers 10.16.5.106;
>   option routers 10.254.0.1;
>   option broadcast-address 10.255.255.255;
>   range 10.254.0.2 10.255.255.254;
>   group {
>     host first { hardware ethernet 24:ee:9a:5c:58:78; fixed-address 10.255.255.252; }
>     host second { hardware ethernet 24:ee:9a:5c:ca:b5; fixed-address 10.255.255.253; }
>     host third { hardware ethernet dc:71:96:70:51:16; fixed-address 10.255.255.254; }
>   }
> }

Host statements are ALWAYS global in scope regardless of where you define them. You have posted log entries showing a warning about this.
What happens is that a device can connect to a different subnet, matches the host statement, but the fixed-address isn't valid. The device will get a dynamic address appropriate to the subnet to which it is connected - but it will inherit options from where it is defined, something that AFAIK no-one has come up with a use case for !
So move all your host declarations to the global scope and avoid the problems it could cause you in the future.


_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users