Basic Linux IP Config Rocky - Foren-Ken/tech-journal GitHub Wiki

How to set Static IP in Linux for CentOS:

  1. Use the command nmtui
  2. Select "Edit a Connection" and press enter
  3. Choose the Ethernet device and on the right, select "Edit..."
  4. Change IPv4 Configuration (assuming IPv4 is in use) to .
  5. Change the address to the desired IP address, ensure to select a net mask by doing /[bits to reserve].
  6. Set the Gateway to the gateway's IP address
  7. Set the DNS Server in case there is a DNS
  8. Set Search Domains if there are domains.
  9. Ensure "Automatically connect" and "Available to all users" is selected for an easier time.
  10. Select "OK"
  11. Select "Back"
  12. Select "Quit"
⚠️ **GitHub.com Fallback** ⚠️