<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><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>
Need to configure DHCP server for multiple leases on different
Class C networks. <br>
</font></p>
<p><font face="Arial, Helvetica">Googled and tried multiple ways,
none of them worked. <br>
</font></p>
<p><font size="2" face="Arial, Helvetica"><b>Contents of
/etc/dhcpd/dhcpd.conf file </b>
</font><font size="2" face="Arial, Helvetica"><br>
</font></p>
<p><font size="2" face="Arial, Helvetica">authoritative;</font></p>
<font size="2">
</font>
<div><font size="2" face="Arial, Helvetica">shared-network
companynetwork { </font></div>
<font size="2">
</font><font face="Arial, Helvetica"><font size="2">
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>
</font><br>
</font>
<p><font face="Arial, Helvetica">With the above configuration, DHCP
addresses get issued from192.168.40.0 pool only, not from other
pools. </font></p>
<p><font face="Arial, Helvetica">
Any help is greatly appreciated </font></p>
<font face="Arial, Helvetica"></font><font face="Arial, Helvetica">Thanks
in advance </font>
<pre class="moz-signature" cols="72">Regards,
पं. विष्णु शंकर P. Vishnu Sankar
टीम लीडर Team Leader-Network Operations
सी-डॉट C-DOT
इलैक्ट्रॉनिक्स सिटी फेज़ I Electronics City Phase I
होसूर रोड बेंगलूरु Hosur Road Bengaluru – 560100
फोन Ph 91 80 25119466
------------------------------------------------------
Disclaimer :
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
The sender does not accept liability for any errors or omissions in the contents of this message, which arise as a result.</pre>
</body>
</html>