Im not quite sure how you figure that as every devices has a unique mac address<br>why would one bother to clone a MAC to match an address space, now you have<br>just made more work. This method does work and id be sure we would need a <br>
mathmatician to prove it wrong, quite simply in a startup script with some variables <br>set by setting a base range and using using ipcalc<br><br>IP_INT="${INT_PREFIX}.$(hex2dec -c10-11).$(hex2dec -c13-14).$(hex2dec -c16-17)"<br>
<br>which gives me<br><br>config 'interface' 'mesh'<br> option 'ifname' 'ath2'<br> option 'proto' 'static'<br> option 'netmask' '255.0.0.0'<br>
option 'ipaddr' '5.174.108.95'<br><br>config 'interface' 'public'<br> option 'ifname' 'ath0'<br> option 'proto' 'static'<br> option 'netmask' '255.255.255.128'<br>
option 'ipaddr' '10.108.95.1'<br><br>config 'interface' 'private'<br> option 'ifname' 'ath1'<br> option 'proto' 'static'<br> option 'netmask' '255.255.255.192'<br>
option 'ipaddr' '10.108.95.129'<br><br>notice, at least two of the octects in every interface are the same, being 108.95 as derived from the interface MAC<br><br>00:15:6D:AD:6C:5F<br><br><br><div class="gmail_quote">
On Wed, Feb 25, 2009 at 8:40 AM, Robert Keyes <span dir="ltr"><<a href="mailto:bob@xa.net">bob@xa.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<br>
On Wed, 25 Feb 2009, Derek C wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi OD,<br>
<br>
You mentioned, last month, that you are automatically configuring your<br>
node's IP addresses based on the MAC address (I think that's what you<br>
mean).<br>
<br>
Would you be able to detail how you do it? (is it a shell script that<br>
does it?).<br>
<br>
I'm interesting it doing this too if possible to save on having to<br>
allocate IPs manually - I'm interested to know how you base the IPs on the<br>
MAC and know that you won't ever have IP duplication.<br>
</blockquote>
<br></div>
I don't believe this is possible in IPv4 space. But with a small number of nodes, you can make it unlikely that there will be IP duplication.<br>
<br>
Considering that most devices of recent manufacture can have their MAC address set, it may be better to modify the MAC address to match the IP address than the other way around. Doing so also can reduce the IP space used, and allow for the use of public IP space. Am I making sense? I can give a more detailed explanation if needed.<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
thanks,<br>
<br>
Derek<br>
<br>
On Fri, January 23, 2009 2:40 pm, Outback Dingo wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
basically a script that runs ipcalc and the mac address of the interface,<br>
to create address space<br>
<br>
</blockquote>
--<br>
Derek C<br>
In Ireland<br>
<br>
<br>
<br></div>
-- <br><div class="Ih2E3d">
Olsr-users mailing list<br>
<a href="mailto:Olsr-users@lists.olsr.org" target="_blank">Olsr-users@lists.olsr.org</a><br>
<a href="http://lists.olsr.org/mailman/listinfo/olsr-users" target="_blank">http://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
<br>
<br>
</div></blockquote>
</blockquote></div><br>