Basic Linux IP Config Rocky - Foren-Ken/tech-journal GitHub Wiki
How to set Static IP in Linux for CentOS:
- Use the command
nmtui
- Select "Edit a Connection" and press enter
- Choose the Ethernet device and on the right, select "Edit..."
- Change IPv4 Configuration (assuming IPv4 is in use) to .
- Change the address to the desired IP address, ensure to select a net mask by doing /[bits to reserve].
- Set the Gateway to the gateway's IP address
- Set the DNS Server in case there is a DNS
- Set Search Domains if there are domains.
- Ensure "Automatically connect" and "Available to all users" is selected for an easier time.
- Select "OK"
- Select "Back"
- Select "Quit"