creating tables based on a switches subnet