Operating Systems

How to Configure a Static IP Address in Rocky Linux 9

Introduction

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.

Prerequisites

Step 1 - Identify Network Interface

Identify the active network interface before making any configuration changes.


ip addr

Step 2 - Configure Static IP<

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

Troubleshooting

Conclusion

Your Rocky Linux server is now configured with a static IP address using NetworkManager. Static addressing is recommended for production systems and infrastructure services.

Continue Reading

← Previous

Operating Systems Home

Next →

Join Rocky Linux to FreeIPA