Networking configuration for devices