[olug] adding a ton of IPs to one interface automaticly

Dan Linder dan at linder.org
Sat Feb 13 03:16:55 UTC 2010


How about a shell script counting from 1..255 to set the fourth octet,
and then an outer loop counting the third octet.  You might need to
keep an internal counter to keep the sub interface (the "X" ion
eth0:X), but that's not too hard.

I wonder if the sub-interface has a maximum of 255...?

Dan

On Fri, Feb 12, 2010 at 20:28, Charles Bird <cbird.omaha at gmail.com> wrote:
> Anyone got a good method of adding a /22 or /20 to eth0 without having to
> type out a bunch of BS??
>
> I got some ideas forming about how to go about this, but nothing concrete in
> mind yet, needing some perspective on this issue.
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>



-- 
***************** ************* *********** ******* ***** *** **
"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal
"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************



More information about the OLUG mailing list