To configure a static IP address on CentOS Stream 10, follow these simple steps.
Step 1 : Run the following command to display the available network interfaces and their UUIDs:
Step 2 : Assign a static IP address (e.g., 192.168.1.30/24
) to your interface using the following command:
Replace <enp0s3>
with the appropriate name from Step 1.
Step 3 : Set the default gateway using this command:
Replace 192.168.1.1
with your network's gateway IP.
Step 4 : Specify the DNS server for your connection. For example, to use Google's DNS:
Step 5 : Ensure the IP configuration method is set to manual:
Step 6 : Apply the changes by restarting the network connection:
Step 7 : Check the current IP settings to confirm the configuration:
Congratulations! You have successfully configured a static IP address on CentOS Stream 10.