Create a simple .sql file with all the insert commands for each IP if you want to do it the basic way. You can use eg for, do, done, echo and seq in the right combination to do this trivially for a whole /16 alan