[Dnsmasq-discuss] Using the same IP for the wired and wireless interface of a laptop

Simon Kelley simon at thekelleys.org.uk
Mon Nov 30 17:23:52 GMT 2009

László Monda wrote:
> Hi List,
> I'm trying to bind two MACs which are the wired and the wireless
> interface of a laptop to one IP by specifying two related lines in
> /etc/ethers and one related line in /etc/hosts but it seems only the
> first MAC works.  I guess dnsmasq overrides the first with the second.
> It'd be nice to use the same IP for the laptop regardless whether the
> wired or the wireless interface used, altough I'm not sure that this
> is a really good idea because when both of the interfaces are active
> this can lead to troubles.
> What do you think?

You can make dnsmasq share the same IP address between two interfaces by 
putting both MAc addresses on one line in /etc/dnsmasq.conf

dhcp-host=<MAC 1>,<MAC 2>,<IP-address>

This will only work if you're careful to make sure that only one 
interface at a time is up.



More information about the Dnsmasq-discuss mailing list