Detect network interfaces in linux