Setting A Static IP In CentOS

Description:

Follow these steps to set a static IP in CentOS using the command line instead of GUI.

To Resolve:

1. Get your NIC name that you want to configure, in my case “eth0”

2. Open a terminal, type:

3. Configure the Default Gateway – Open a terminal, type:

3. Restart Network Interface – Open a terminal, type:

4. Configure DNS Server – Open a terminal, type:

5. (optional) If you want to change your hostname – Open a terminal, type: