How to Configure Static IP Address on Rocky Linux 9

To configure a static IP address on Rocky Linux 9, follow the steps below.

Step 1 : Obtain a list of network interfaces along with their UUIDs.

Step 2 : Edit the configuration for the desired interface, setting the IP address to 192.168.1.30 with a subnet mask of /24.

Step 3 : Set the gateway for the interface.

Step 4 : Configure DNS servers for the interface.

Step 5 : Set the connection method to manual.

Step 6 : Restart the network service to apply the changes.

Step 7 : Verify the configuration by displaying the IP address of the interface.

Congratulations! You have successfully configured a static IP address on Rocky Linux 9.