Reconfiguring network interfaces automatically