<HTML>
<HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>

<font face="Arial, Helvetica">Hello, 
<br />
 
<br />
I am setting up new ISC DHCP Server (version 4.3.5)on Ubuntu 18.04. This system is configured with single NIC. 
<br />
 
<br />
Need to configure DHCP server for multiple leases on different Class C networks 
<br />
 
<br /><b>
Contents of  /etc/dhcpd/dhcpd.conf file  </b>
<br />
 
<br /></font>
<div><font face="Arial, Helvetica">
authoritative;</font></div>

<div><font face="Arial, Helvetica">shared-network companynetwork { </font></div>
<font face="Arial, Helvetica">
subnet 192.168.40.0 netmask 255.255.255.0{ 
<br />
 range 192.168.40.150 192.168.40.160 ; 
<br />
option domain-name-server 8.8.8.8; 
<br />
option subnet-mask 255.255.255.0; 
<br />
option routers 192.168.40.1; 
<br />
option broadcast-address 192.168.40.255; 
<br />
default-lease-time 600; 
<br />
max-lease-time 7200; 
<br />

<br />
subnet 10.10.10.0 netmask 255.255.255.0{ 
<br />
 range 10.10.10.10 10.10.10.20; 
<br />
 option subnet-mask 255.255.255.0; 
<br />
 option routers 10.10.10.1; 
<br />
 option broadcast-address 10.10.10.255; 
<br />
 default-lease-time 600; 
<br />
 max-lease-time 7200; 
<br />

<br />
subnet 192.168.37.0 netmask 255.255.255.0{ 
<br />
 range 192.168.37.131 192.168.37.140; 
<br />
 option subnet-mask 255.255.255.0; 
<br />
 option routers 192.168.37.1; 
<br />
 default-lease-time 600; 
<br />
 max-lease-time 7200; 
<br />

<br />

<br />
 
<br /><b>
Contents of/etc/netplan/50-cloud-init.yaml    -----   network configuration file </b>
<br />
 
<br />
network: 
<br />
    version: 2 
<br />
    ethernets: 
<br />
       ens160: 
<br />
               addresses: 
<br />
                   - 192.168.40.29/24 
<br />
               gateway4: 192.168.40.1 
<br />
               nameservers: 
<br />
                   addresses: [8.8.8.8] 
<br />
 
<br />
With this configuration, i get DHCP addresses from192.168.40.0 pool only, not from other pools. 
<br />
 
<br />
Googled and found some people suggesting to configure the system network for trunk to handle multiple network pools. 
<br />
 
<br />
Any help is greatly appreciated 
<br />
 
<br /></font>
<div><font face="Arial, Helvetica">
Thanks in advance 
<br /></font></div>

<div>
<br /></div>
<font face="Arial, Helvetica">
Regards, 
<br />
 
<br />
Mounika M 
<br />
 </font>
<br /><font size="2"><font size="2">

<br />### Please consider the environment and print this email only if 

necessary . Go Green ### 

<br />
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 

<br />
Disclaimer : 

<br />
This email and any files transmitted with it are confidential and intended 

<br />
solely for the use of the individual or entity to whom they are addressed. 

<br />
If you are not the intended recipient you are notified that disclosing, 

<br />
copying, distributing or taking any action in reliance on the contents of this 

<br />
information is strictly prohibited. The sender does not accept liability 

<br />
for any errors or omissions in the contents of this message, which arise as a 

<br />
result. 

<br />
 

<br />
-- 

<br />
Open WebMail Project (<a href="http://openwebmail.org/" target="_blank">http://openwebmail.org</a>) 

<br />

<br />
</font>

</font>

</BODY>
</HTML>