<div><div><a href="https://serverfault.com/questions/272299/dnsmasq-mapping-2-mac-addresses-to-the-same-ip-address">https://serverfault.com/questions/272299/dnsmasq-mapping-2-mac-addresses-to-the-same-ip-address</a></div><br></div><div dir="auto">Configuring both with the same clientID. <br></div><div dir="auto">Specifying two MAC addresses on one line. </div><div dir="auto"><br></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">That serverfault discussion might help but not really convinced unless your switch knows how to handle it somehow. </span><br></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">How would arp responses work exactly? Whichever node responds quickest is what it would do. Probably best to set MACs to be same at BIOS and OS levels.</span></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 24, 2020 at 12:43 AM john doe <<a href="mailto:johndoe65534@mail.com">johndoe65534@mail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On 12/23/2020 7:08 PM, Arthur Wiebe wrote:<br>
> From reading the man page, and my understanding of the statement "Only one<br>
> hostname can be given in a --dhcp-host option, but aliases are possible by<br>
> using CNAMEs. (See --cname )" I've been attempting to implement this<br>
> without any success so far.<br>
><br>
> My goal is to have two names get assigned the same IP via DHCP. The purpose<br>
> of this is transitioning IPSec IDs as I have strongswan using dnsmasq to<br>
> assign static IPs to mobile clients.<br>
><br>
> In this example I would like both DEVICE_V1 and DEVICE_V2 to get the same<br>
> IP address 10.1.2.3 and my current attempted configuration is as follows.<br>
><br>
> /etc/hosts contains:<br>
><br>
> 10.1.2.3 DEVICE_V1<br>
><br>
> --<br>
><br>
> dnsmasq conf file contains:<br>
><br>
> cname=DEVICE_V2,DEVICE_V1<br>
> dhcp-host=DEVICE_V1,10.1.2.3,infinite<br>
><br>
<br>
Couple of thoughts here and this assumes that DEVICE_V1 is having the<br>
correct IP before fiddling with cnames:<br>
<br>
- Does it help if you remove the line from /etc/hosts file and only use<br>
the 'dhcp-host' statement?<br>
<br>
With 'dhcp-host' as shown above, the client presenting the hostname<br>
'DEVICE_V1' should get the fixed address shown above.<br>
<br>
The cname option that you have, will let DNS resolve 'DEVICEV1' or<br>
'DEVICE_V2'.<br>
<br>
So 'host DEVICE_V1' or 'host DEVICE_V2' should show for both the IP of<br>
DEVICE_V1.<br>
<br>
<br>
- When Dnsmasq starts, is DEVICE_V1 present in the lease file?<br>
<br>
Cnames are only created if the hostname is known to Dnsmasq when starting.<br>
<br>
<br>
--<br>
John Doe<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div></div>