ensure netmask is set when initialising an interface.