This site is not a script writing service. You are supposed to do some programming and problem solving yourself.
What have you tried to increase the third octet by 1 whenever the fourth octet reaches 254 and there are still IP addresses to be generated? It sounds to me as if nested loops would help you here, or simply treating an IP address as one number of four "digits" that go from 0 to 255 instead of treating it as four separate numbers.
In reply to Re^3: Generation of sequential IP addresses for Class B network
by Corion
in thread Generation of sequential IP addresses for Class B network
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |