Query Help

I need a scripts to generate the test data with 1 million records for ip address..

Thanks for your help..

Are we talking IPv4 or IPv6?
What should output be (string/bigint/4 tinyint/4 integer)?
What should the start address be?
Whats the purpose of this table (what should it be used for)?