Linux Network Configuration: ip, nmcli, Netplan and Troubleshooting
On modern Linux, use the ip command (iproute2) to view and make temporary network changes, and your distribution's network manager for permanent configuration: NetworkManager with nmcli on RHEL, Fedora and many desktops; Netplan YAML files on Ubuntu Server, which hand off to systemd-networkd or NetworkManager. Configure an IP address, gateway and DNS, then verify with ip addr, ip route, resolvectl status and ping.