You are here

Why differnet IP address range when changing host quatity?

3 posts / 0 new
Last post
wa2ise
wa2ise's picture
Why differnet IP address range when changing host quatity?
Was wondering why I'd get a very different IP address range if I change the number of hosts on my node's LAN from say 5 to 13.
When it was set to 5 it gave me a range of IP addresses 10.113.10.xxx, and I needed more hosts so I changed it to 13 hosts, and it
gave me a very different IP range, 10.226.21.xxx.  I would have thought I'd just get a few more IP addresses added to the ones I had before, when I had selected 5 hosts.  Not a big deal, but was wondering why. 
AE6XE
AE6XE's picture
It's the algorithm in use
KG6JEI
More specifically to the "why
More specifically to the "why" is that we need to jump to different ranges.

If you have two devices with sequential MAC addresses (very possible if thy come in the same order) if you reserve X addresses then the next mesh node expects to be able to use the next range up (e.g. It starts giving out addresses st X+1) if we arbitrarily allowed a node to allocate addresses there would be a higher collision probability while if we use a separate  modification for nodes in the 1/5/15 ranges each node can calculate where it should be without two sequentially manufactured devices colliding with each other.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer