Raspberry Pi OS Bookworm uses Network Manager by default so this Answer is no longer current but still applies on other OS. See How do I set up networking on Raspberry Pi OS - Bookworm for NetworkManager setup. This tutorial describes how to setup networking using the default network manager dhcpcd included in Raspbian since 2015-05-05 and Raspberry Pi OS. It applies to the Foundation releases of