added network assignment logic for second interface