[Olsr-users] AHCP
Outback Dingo
(spam-protected)
Wed Feb 25 04:19:39 CET 2009
Im not quite sure how you figure that as every devices has a unique mac
address
why would one bother to clone a MAC to match an address space, now you have
just made more work. This method does work and id be sure we would need a
mathmatician to prove it wrong, quite simply in a startup script with some
variables
set by setting a base range and using using ipcalc
IP_INT="${INT_PREFIX}.$(hex2dec -c10-11).$(hex2dec -c13-14).$(hex2dec
-c16-17)"
which gives me
config 'interface' 'mesh'
option 'ifname' 'ath2'
option 'proto' 'static'
option 'netmask' '255.0.0.0'
option 'ipaddr' '5.174.108.95'
config 'interface' 'public'
option 'ifname' 'ath0'
option 'proto' 'static'
option 'netmask' '255.255.255.128'
option 'ipaddr' '10.108.95.1'
config 'interface' 'private'
option 'ifname' 'ath1'
option 'proto' 'static'
option 'netmask' '255.255.255.192'
option 'ipaddr' '10.108.95.129'
notice, at least two of the octects in every interface are the same, being
108.95 as derived from the interface MAC
00:15:6D:AD:6C:5F
On Wed, Feb 25, 2009 at 8:40 AM, Robert Keyes <(spam-protected)> wrote:
>
>
> On Wed, 25 Feb 2009, Derek C wrote:
>
> Hi OD,
>>
>> You mentioned, last month, that you are automatically configuring your
>> node's IP addresses based on the MAC address (I think that's what you
>> mean).
>>
>> Would you be able to detail how you do it? (is it a shell script that
>> does it?).
>>
>> I'm interesting it doing this too if possible to save on having to
>> allocate IPs manually - I'm interested to know how you base the IPs on the
>> MAC and know that you won't ever have IP duplication.
>>
>
> 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.
>
> 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.
>
>
>
> thanks,
>>
>> Derek
>>
>> On Fri, January 23, 2009 2:40 pm, Outback Dingo wrote:
>>
>>> basically a script that runs ipcalc and the mac address of the interface,
>>> to create address space
>>>
>>> --
>> Derek C
>> In Ireland
>>
>>
>>
>> --
>> Olsr-users mailing list
>> (spam-protected)
>> http://lists.olsr.org/mailman/listinfo/olsr-users
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20090225/1e74ea90/attachment.html>
More information about the Olsr-users
mailing list