Portal Home Knowledgebase Server Configuration Guides How to Update IP Address on AlmaLinux Servers (AlmaLinux 8 & 9)

How to Update IP Address on AlmaLinux Servers (AlmaLinux 8 & 9) Print

  • 0

Instructions:

  1. Connect to your server via SSH.
  2. Open the network interface configuration file:

 

sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0

(If the interface is named differently, adjust accordingly.)

  1. Edit or add the following lines:

IPADDR=YourNewIP

GATEWAY=YourNewGateway

Example:

IPADDR=104.160.9.57

GATEWAY=104.160.9.1

  1. Save and exit the file:
  • Press Ctrl+X, then Y, then Enter
  1. Restart the network service to apply changes:

sudo systemctl restart network

 

Important:

  • If you require any help, feel free to contact support via your client portal.

Was this answer helpful?

« Back