You have an off-by-one error. Specifying one increment shows the start value and no increments.
>perl macIncrementor.pl 65535 1 2 00:00:00:00:FF:FF <-- Should be 00:00:00:01:00:00 00:00:00:01:00:00 <-- Should be 00:00:00:01:00:01
It really sucks to have to convert the address to decimal before being able to use the program.
>perl macIncrementor.pl 999 1 2 00:00:00:00:03:E7 00:00:00:00:03:E8 <-- Should be 00:00:00:00:09:9A
And most importantly, it only works for 0.000015 of the address space on a 32-bit Perl.
>perl macIncrementor.pl 17179869184 1 2 00:00:FF:FF:FF:FF 00:00:FF:FF:FF:FF <-- Should be 00:04:00:00:00:01
In reply to Re: MAC Address Incrementor
by ikegami
in thread Increment MAC address
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |