<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div style="direction:ltr"><br>
</div>
<div style="direction:ltr">How about multiple virtual nics, all bount via a bridge to the same physical device?</div>
<div style="direction:ltr"><br>
</div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0 0 0">
<div><br>
<b>From: </b>"pvs via ubuntu-users" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>
<b>Date:</b> Thursday, 23 February 2023 at 10:26:03<br>
<b>To: </b>"ubuntu-users@lists.ubuntu.com" <<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>
<b>Cc: </b>"pvs" <<a href="mailto:pvs@cdot.in">pvs@cdot.in</a>><br>
<b>Subject:</b> ISC DHCP Server configuration for multiple pools on Ubuntu 18.04</div>
</div>
<br>
<div>
<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>
</div>
<br>
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid
 voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
<br>
<br>
This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind
 resulting from the risks inherent in the electronic transmission of messages.
</body>
</html>