What's new

Where is the cache of known MAC addresses stored?

  • 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!

bibikalka

Senior Member
Sorry if trivial question - could not find it with a few minutes of search.

If I plug in a rare device that was offline for a while, DHCP will still assign the same IP address to it as last time - many reboots ago.

It sort of seems this info has to be cached somewhere. Any idea?
 
Last edited:
It doesn't work like that.
dnsmasq uses a hash of the client's MAC address to choose an IP address for it.
So, unless there's a clash, a client will get the same IP address each time.

See here ...

OK, this makes sense.

I was chasing a warm reboot bug for Diversion, and changing the IP of the DNS server that did not filter anything fixed the issue:

I guess it could be some memory leftover that does not get purged between reboots or something ...
 
It doesn't work like that.
dnsmasq uses a hash of the client's MAC address to choose an IP address for it.
So, unless there's a clash, a client will get the same IP address each time.

See here ...

Not only that, some clines request the same IP they previously used.

The answer to your question if there is a list of mac addresses stored, every device has an ARP table has a list of MAC addresses and there associated IP. You can see it using arp -a on many systems.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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