add a script to gen ip list based on netmask