in reply to Automatic IP address Generation
It may make your life easier to assign groups based on base-2 rather than base-10.
--MidLifeXis