Configuring a static IP address is one of the first tasks performed after installing Rocky Linux. Servers should always use predictable network addressing to ensure reliable communication and service availability.
Identify the active network interface before making any configuration changes.
ip addr
Use NetworkManager to assign a static IP address.
nmcli connection modify ens192 \
ipv4.addresses 192.168.1.100/24 \
ipv4.gateway 192.168.1.1 \
ipv4.dns "8.8.8.8 1.1.1.1" \
ipv4.method manual
Your Rocky Linux server is now configured with a static IP address using NetworkManager. Static addressing is recommended for production systems and infrastructure services.
Operating Systems Home
Join Rocky Linux to FreeIPA