What's new

Bind same IP with multiple MACs

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

PeterLiljedahl

Occasional Visitor
Hello members of this forum my name is Peter.
As we know many devices these days have both an ethernet and a wifi interface present.
Could it be possible to allow DHCP reservation using one IP with multiple MACs?.
It would only allow one connection at any given time of course.

If the device has been given an IP using wifi and user plugs in ethernet then router will
drop wifi and reconnect using ethernet instead.

If the device has been given an IP using ethernet and user switches on wifi then router will
ignore/reject wifi and keep ethernet connection.

We can have a small switch for the devices in the DHCP server menu to allow which
type ethernet/wifi takes precedence over the other.

Since we have a wireless MAC filter which can be very useful indeed, for completions sake,
it would be nice with an ethernet MAC filter too.

Kindly Peter
 
DNSMasq already supports the ability to have multiple MAC addresses assignable to the same IP, specifically using the dhcp-host directive. I've been using it for years. However, most GUIs don't support it directly (FreshTomato being an exception). So you have to configure the dhcp-host directive yourself.

Code:
dhcp-host=6f:aa:07:f4:53:01,b5:38:18:20:ff:72,192.168.1.100,somehostname,24h

Note: hostname and lease time are optional.

This could be added to DNSMasq w/ a postconf file, specifically /jffs/configs/dnsmasq.conf.add.
 
Last edited:
Thanks man will look into DNSMasq, I have recently installed this firmware so..
Good there is an alternate way to fix this.
Thanks again eibgrad.
 
Note that with the dnsmasq solution, it's up to the host (or you manually) to make sure that both interfaces/macs aren't enabled at the same time.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top